Martin Aliger wrote:

If this change is done, what about to lower verbosity when deleting
non-existing files/folders also? I think verbose level is ok for that
(todays it is error via BuildException).

Martin Aliger

Ant deals with this with a quiet="true":

quiet If the specified file or directory does not exist, do not display a diagnostic message (unless Ant has been invoked with the -verbose or -debug switches) or modify the exit status to reflect an error. When set to "true", if a file or directory cannot be deleted, no error is reported. This setting emulates the -f option to the Unix rm command. Default is "false". Setting this to "true" implies setting failonerror to "false".


This seems to work well, because sometimes if the file/directory you are trying to delete doesn't exist it flags an error... typo in the build file?




While the task is being changed anyway :-)

-- Troy


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to