Hi

issue has been fixed,
there was already a function available to remove the read-only bits of a
file,
it was not called for this clean up task :-(


with kind regards
Ruben Willems


On Thu, Jan 15, 2009 at 3:10 PM, Ruben Willems <[email protected]>wrote:

> Hi
>
>
> read only can be altered, but suppose another user has copied in a file,
> and ccnet can not delete it because of OS security settings,
> or file is in use by some other process, ...
>
> I was thinking of placing the delete in a try cacth block, and
> log every failure of the delete, togeher witht the reason.
>
> so we know why the delete failed.
>
>
>
> with kind regards
> Ruben Willems
>
> On Thu, Jan 15, 2009 at 3:00 PM, markk <[email protected]> wrote:
>
>>
>> Hi:
>>
>> Thanks for taking on this change!  Perhaps the smart thing here would
>> be to give the task an arguement that allows the user to make that
>> determination.  If it is read only (or some other attribute for that
>> matter) change the attrib, and delete it.
>>
>> what do you think about that?
>>
>> Mark K
>>
>> On Jan 14, 9:39 am, Ruben Willems <[email protected]> wrote:
>> > Hi
>> >
>> > Thats good to know,
>> >
>> > now the big question : should the artifact cleanup remove the read-only
>> bit?
>> > the bit is there for a reason ;-)
>> >
>> > maybe we can skip the readonly files, but continue on deleteing other
>> ones,
>> > and report that file X was not deleted becaus it was readonly.
>> >
>> > What do you think?
>> >
>> > with kind regards
>> > Ruben Willems
>> >
>> > On Wed, Jan 14, 2009 at 3:33 PM, markk <[email protected]>
>> wrote:
>> >
>> > > Hi Ruben:
>> >
>> > > Changing the properties (no read only) worked for me.
>> >
>> > > Thanks for the help.
>> >
>> > > Mark K
>> >
>> > > On Jan 13, 4:46 pm, Ruben Willems <[email protected]> wrote:
>> > > > Hi
>> >
>> > > > this works for me,
>> > > > logDir specified or not, or you sure that you do not see anything in
>> the
>> > > > console window?
>> > > > I did notice that when there is a read only file in the log dir, the
>> > > > deletion stops.
>> >
>> > > > with kind regards
>> > > > Ruben Willems
>> >
>> > > > On Tue, Jan 13, 2009 at 9:28 PM, Ruben Willems <
>> [email protected]
>> > > >wrote:
>> >
>> > > > > Hi
>> >
>> > > > > this should not happen, I'll look into it
>> >
>> > > > > with kind regards
>> > > > > Ruben Willems
>> >
>> > > > > On Tue, Jan 13, 2009 at 6:45 PM, markk <
>> [email protected]>
>> > > wrote:
>> >
>> > > > >> Hi All:
>> >
>> > > > >> I have successfully set up cc.net 1.4.2.14 and want to take
>> advantage
>> > > > >> of the Artifact Cleanup task.  I have it in my ccnet.config as
>> such:
>> >
>> > > > >> <publisher>
>> > > > >>      <xmllogger logDir="pathtobuildlog"/>
>> > > > >>      <!-- this is where to add artifact cleanup publisher task
>> -->
>> > > > >>      <artifactcleanup cleanUpMethod="DeleteBuildsOlderThanXDays"
>> > > > >> cleanUpValue="7"/>
>> > > > >> <publisher/>
>> >
>> > > > >> To date I haven't seen ANY cleanup happening.  The log files
>> still
>> > > > >> exist as they did prior to the build.   I haven't seen any errors
>> > > > >> either.
>> >
>> > > > >> Can anyone give me a clue as to what I am doing wrong?
>> >
>> > > > >> Thanks
>> >
>> > > > >> Mark K
>>
>
>

Reply via email to