Re: delete task and symlinks

2014-11-11 Thread Matt Benson
It sucks that you were (nearly) bitten by this, and Ant's developers are happy to consider any notions you might have for addressing the issue, but litigation against a product that expressly comes with "NO WARRANTY" is not really much of a concern, so talk of lawsuits just doesn't add anything to

RE: delete task question

2010-03-26 Thread Shawn Castrianni
dependencies itself to prevent them from being locked. This is weird. I would guess it is NOT an ant bug? --- Shawn Castrianni -Original Message- From: Shawn Castrianni [mailto:shawn.castria...@halliburton.com] Sent: Friday, March 26, 2010 10:48 AM To: 'Ant Users List' Subject:

RE: delete task question

2010-03-26 Thread Shawn Castrianni
My code is: In this example, I do NOT have a "src" subdirectory so the exclude should do nothing. The first time I run it, everything is deleted UNDER dependencies except for a few empty directories. If I run a second time, then some more of tho

Re: Delete task eagerness on Windows

2009-04-20 Thread Michael Ludwig
jan.mate...@rzf.fin-nrw.de schrieb am 20.04.2009 um 06:49:04 (+0200): > > Ant (version 1.7.1), or more precisely: Ant's Delete task merrily > > deletes write-protected files and directories on Windows XP that > > cannot be deleted using the DEL (without /f) and RD commands from > > the cmd.exe cons

Re: Delete task should be failing for UNC path that does not exist

2009-02-26 Thread Matt Benson
--- On Thu, 2/26/09, David Weintraub wrote: > From: David Weintraub > Subject: Re: Delete task should be failing for UNC path that does not exist > To: "Ant Users List" > Date: Thursday, February 26, 2009, 2:20 PM > You need to set failonerror="true"

Re: Delete task should be failing for UNC path that does not exist

2009-02-26 Thread David Weintraub
You need to set failonerror="true" to kill the build when the delete fails. Of course, Ant is depending upon the OS to give it a "proper" exit value from the delete command. I can't say for certain whether UNC paths might be cause problems in this respect. BTW, why are you using UNC anyway. Normal

Re: Delete task should be failing for UNC path that does not exist

2009-02-26 Thread Dominique Devienne
On Thu, Feb 26, 2009 at 12:57 PM, Dave wrote: > Going by the first line of this, Ant should fail if the specified file or > directory does not exist, no? The manual is right, and my memory is faulty, that's all ;-) I think I always use quiet="true"... --DD ---

Re: Delete task should be failing for UNC path that does not exist

2009-02-26 Thread Dave
According to the Ant Manual, In relation to the quiet attribute of the delete task.. "If the specified file or directory does not exist, do not display a diagnostic message (unless Ant has been invoked with the -verbose or -debugswitches) or modify the exit status to reflect an error. When set to

Re: Delete task should be failing for UNC path that does not exist

2009-02-26 Thread Dominique Devienne
On Thu, Feb 26, 2009 at 12:09 PM, Dave wrote: > However, I'm still curious as to why delete is silent when the UNC path > passed to it does not exist? I think that's true of any dir, not just UNC ones. --DD - To unsubscribe, e-m

Re: Delete task should be failing for UNC path that does not exist

2009-02-26 Thread Dave
Hey guys, I had made a mistake in my test script to see if it failed when trying to deleted a directory that does exist. It does indeed fail, likely due to access permissions, as I cannot delete the file through explorer either. However, I'm still curious as to why delete is silent when the UNC pat

Re: Delete task should be failing for UNC path that does not exist

2009-02-26 Thread Dominique Devienne
On Thu, Feb 26, 2009 at 11:28 AM, Dave wrote: > The following reduced test case shows the problem. I've tested this with Ant > 1.7.1 and JDK 1.4.2_19 > === > >     value="\\my-unc-path-that-does-not-exist\tmp"/> >     > > === > > Can anyone help me with th

Re: Delete task should be failing for UNC path that does not exist

2009-02-26 Thread Dave
It doesn't fail when the directory exists or does not exist. However, when the directory does exist, it is not deleted. It should either succeed and deleted the directory, or fail if it can't delete the directory or the directory does not exist. However, it's succeeding for all cases. On Thu, Feb

Re: Delete task should be failing for UNC path that does not exist

2009-02-26 Thread David Weintraub
Does it fail when the directory does exist? Try printing out "out.parent.dir" and see what it is equal to: Maybe the backslashes are being misinterpreted somehow. Another possibility has to do with the way UNC paths work. Ant may not be playing so friendly with them. It could be that Ant is re

RE: delete task

2007-01-30 Thread Anderson, Rob (Global Trade)
It's all in the manual. http://ant.apache.org/manual/index.html http://ant.apache.org/manual/CoreTasks/delete.html http://ant.apache.org/manual/CoreTasks/mkdir.html -Rob Anderson > -Original Message- > From: Erica A Ramsey [mailto:[EMAIL PROTECTED] > Sent: Saturday, January 27, 2007

RE: Antwort: RE: Delete task failed to remove French file name

2006-02-10 Thread Noel Sebastien (BIL)
D] Sent: jeudi 9 février 2006 17:33 To: Ant Users List Subject: Re: Antwort: RE: Delete task failed to remove French file name sorry i can't reproduce You probably checked it before, but did you verify that you have the authorisation to delete it? did you try to delete it with success with

Re: Delete task failed to remove French file name

2006-02-09 Thread Stefan Bodewig
On Thu, 9 Feb 2006, Noel Sebastien <[EMAIL PROTECTED]> wrote: > I use Ant 1.6.5 on Unix and the task fails > saying : Unable to delete file > /export/home/wasapps/src/BD_Mod?le.sql at > org.apache.tools.ant.taskdefs.Delete.removeDir(Delete.java:594) at > org.apache.tools.ant.taskdefs.Delete.remov

Re: Antwort: RE: Delete task failed to remove French file name

2006-02-09 Thread Thomas Burdairon
icitly the filename. Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: jeudi 9 février 2006 16:34 To: Ant Users List Subject: Antwort: RE: Delete task failed to remove French file name do you try to delete the file with the name explicitly given in the buil

Re: Antwort: RE: Delete task failed to remove French file name

2006-02-09 Thread ar
ilename. Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: jeudi 9 février 2006 16:34 To: Ant Users List Subject: Antwort: RE: Delete task failed to remove French file name do you try to delete the file with the name explicitly given in the build.xml? or is i

RE: Antwort: RE: Delete task failed to remove French file name

2006-02-09 Thread Noel Sebastien (BIL)
e filename. Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: jeudi 9 février 2006 16:34 To: Ant Users List Subject: Antwort: RE: Delete task failed to remove French file name do you try to delete the file with the name explicitly given in the build.xml

Antwort: RE: Delete task failed to remove French file name

2006-02-09 Thread dvholten
do you try to delete the file with the name explicitly given in the build.xml? or is it somewhere in a filetree and some pattern find's it and fails to delete? what's your JRE-version ? ant-version ? dvholten

RE: Delete task failed to remove French file name

2006-02-09 Thread Bhatia Saurabh \(CHA\)
I think you should change the filename itself coz on many systems these characters cause problems. -Message d'origine- De : Noel Sebastien (BIL) [mailto:[EMAIL PROTECTED] Envoyé : jeudi, 9. février 2006 16:18 À : Ant Users List Objet : RE: Delete task failed to remove French file

RE: Delete task failed to remove French file name

2006-02-09 Thread Noel Sebastien (BIL)
Thank you, I tried but it failed. The right answer is probably something relating to the charset (or encoding), you are right. But the mailto:[EMAIL PROTECTED] Sent: jeudi 9 février 2006 16:02 To: Ant Users List Subject: Re: Delete task failed to remove French file name Hi What's the enc

Re: Delete task failed to remove French file name

2006-02-09 Thread ar
Hi What's the encoding specified in your build.xml file ? If it's UTF-8, you should try with ISO-8859-1 AR Le Thu, 09 Feb 2006 15:27:52 +0100, Noel Sebastien (BIL) <[EMAIL PROTECTED]> a écrit: Hi all, As you know, french language includes some stressed characters like é, à, etc

Re: delete task in Ant

2006-01-06 Thread Ken Gentle
That is what I get for making a snap answer... ;^) Alexey is absolutely correct. The multiple patterns will work, just for the record. Just not the better solution. Ken At 14:59 2006-01-06, you wrote: By default ANT ignores some files (CVS, backups,...). To make ANT see such files

Re: delete task in Ant

2006-01-06 Thread Alexey N. Solofnenko
By default ANT ignores some files (CVS, backups,...). To make ANT see such files add defaultexcludes="false" into element (see http://ant.apache.org/manual/CoreTypes/fileset.html ). Default excludes list: http://ant.apache.org/manual/dirtasks.html#defaultexcludes . - Alexey. Ken Gentle wrote

Re: delete task in Ant

2006-01-06 Thread Ken Gentle
The leading "." in the filenames (".#Test.log.1.23") is what is preventing this pattern from matching. That looks vaguely like an editor backup file or diff/merge tool backup file pattern. If you're trying to delete files that are named more conventionally (Test.log.1.23), you'll probably nee

Re: delete task ...

2003-10-14 Thread Stefan Bodewig
On Tue, 14 Oct 2003, Thomas Lionel SMETS <[EMAIL PROTECTED]> wrote: > Attribute : includes Description I'd like to underline *Attribute* here. > But in the example they give : > > > > > > Is there a typo & includes beca