ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peter.rei...@corvil.com>
Subject Re: Delete on exit attribute to <delete>
Date Wed, 09 Jun 2004 12:24:30 GMT
Stefan Bodewig wrote:

>On Tue, 08 Jun 2004, Peter Reilly <peter.reilly@corvil.com> wrote:
>
>  
>
>>I am adding a deleteonexit attribute to <delete>.
>>    
>>
>
>+1 in general, but I have an issue with the implementation.
>
>  
>
>>            If true, on failure to delete, note the error with a
>>            warning message and call File#deleteOnExit() causing the
>>            jvm to attempt to delete the file when the jvm process
>>            is exitting.  The warning message is "Failed to delete
>>            <filename>, calling deleteOnExit".
>>    
>>
>
>This isn't strong enough for me.  Ant may still fail to delete the
>file when exitting, so I'd rather like something stronger than
>"calling deleteOnExit".  Something that says - look whether the file
>has really gone after Ant stops.
>  
>
Ok, something like
"Failed to delete <filename>, calling deleteonexit. This attempts
to delete the file when the ant jvm has exited - this may not succeed.

>  
>
>>            The warning message will be suppressed with the "quiet"
>>            flag.
>>    
>>
>
>I'm not sure this is the correct behavior either.
>  
>
This is the current "quiet" behaviour when <delete> cannot delete a file.

Peter

>Stefan
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
>For additional commands, e-mail: dev-help@ant.apache.org
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message