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

delete task and symlinks

2014-11-10 Thread Alan Snyder
I realize that I am late to the party and that there is an open RFE on this issue, but considering how long this problem has been in existence, I want to make some comments (and maybe rant a bit, too). First, I cannot tell you how surpr

RE: delete task question

2010-03-26 Thread Shawn Castrianni
al Message- From: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de] Sent: Friday, March 26, 2010 9:52 AM To: Ant Users List Subject: AW: delete task question Please show us, what you want to do! If you just want to delete everything under a certain dir it should work with "**&quo

RE: delete task question

2010-03-26 Thread Shawn Castrianni
Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de] Sent: Friday, March 26, 2010 9:52 AM To: Ant Users List Subject: AW: delete task question Please show us, what you want to do! If you just want to delete everything under a certain dir it should work with "**" in the

AW: delete task question

2010-03-26 Thread Knuplesch, Juergen
1 An: 'Ant Users List' Betreff: delete task question I am trying to use the task to delete files AND directories. I have turned on the includeemptydirs and am explicitly specifying a nested instead of relying on the implicit one created by tag itself. My question is about i

delete task question

2010-03-26 Thread Shawn Castrianni
I am trying to use the task to delete files AND directories. I have turned on the includeemptydirs and am explicitly specifying a nested instead of relying on the implicit one created by tag itself. My question is about includeemptydirs. It doesn't seem to work properly. Depending on wha

Re: Making the delete task behave like /bin/rm -rf vis-a-vis symlinks to directories

2009-07-02 Thread Francis GALIEGUE
On Tue, Jun 30, 2009 at 23:19, Andy Stevens wrote: > On 26/06/2009, jscripter wrote: >> >>  The main problem with this is that I don't want to keep track of which >>  symlinks to delete. >>  The tree I am deleting may have lots of symlinks. >> >>  I realize that Java doesn't know about symlinks an

Re: Making the delete task behave like /bin/rm -rf vis-a-vis symlinks to directories

2009-06-30 Thread Andy Stevens
> > >> > >> > >> However, I've noticed that delete is not deleting the symlinks. > >> > >> I'd like to get the same results as /bin/rm -rf under Unix, i.e. the > >> symlinks are deleted but not followed. Is there a way to do that with the > >> delete task? - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org

Re: Making the delete task behave like /bin/rm -rf vis-a-vis symlinks to directories

2009-06-26 Thread David Weintraub
he same results as /bin/rm -rf under Unix, i.e. the > symlinks are deleted but not followed. Is there a way to do that with the > delete task? > -- > View this message in context: > http://www.nabble.com/Making-the-delete-task-behave-like--bin-rm--rf-vis-a-vis-symlinks-to-directorie

Re: Making the delete task behave like /bin/rm -rf vis-a-vis symlinks to directories

2009-06-26 Thread jscripter
> >> I'd like to get the same results as /bin/rm -rf under Unix, i.e. the >> symlinks are deleted but not followed. Is there a way to do that with the >> delete task? >> -- >> View this message in context: >> http://www.nabble.com/Making-the-

Re: Making the delete task behave like /bin/rm -rf vis-a-vis symlinks to directories

2009-06-22 Thread Scot P. Floess
: However, I've noticed that delete is not deleting the symlinks. I'd like to get the same results as /bin/rm -rf under Unix, i.e. the symlinks are deleted but not followed. Is there a way to do that with the delete task? -- View this message in context: http://www.nabble.com/Making-the-d

Making the delete task behave like /bin/rm -rf vis-a-vis symlinks to directories

2009-06-22 Thread jscripter
Unix, i.e. the symlinks are deleted but not followed. Is there a way to do that with the delete task? -- View this message in context: http://www.nabble.com/Making-the-delete-task-behave-like--bin-rm--rf-vis-a-vis-symlinks-to-directories-tp24154698p24154698.html Sent from the Ant - Users mailing li

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 comman

AW: Delete task eagerness on Windows

2009-04-19 Thread Jan.Materne
> 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 > console. > > In cmd.exe, type: > > more >

Delete task eagerness on Windows

2009-04-19 Thread Michael Ludwig
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 console. In cmd.exe, type: more > ant-de

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 s

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

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

2009-02-26 Thread Dave
The following reduced test case shows the problem. I've tested this with Ant 1.7.1 and JDK 1.4.2_19 === === Can anyone help me with this? -- "A lot of people are afraid of heights. Not me, I'm afraid of widths."

RE: Ant Delete task - Deleting a file from a directory while comparing from another directory

2007-10-23 Thread Sangal, Arun
: David Weintraub [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 23, 2007 3:28 PM To: Ant Users List Subject: Re: Ant Delete task - Deleting a file from a directory while comparing from another directory Bold? Red? Unfortunately, like most mailing lists, this is a text only list. You'll have t

Re: Ant Delete task - Deleting a file from a directory while comparing from another directory

2007-10-23 Thread David Weintraub
> Brgds, > Arun Sangal > SCM 1 - (303) 397 6059 > [EMAIL PROTECTED] > > -- > View this message in context: > http://www.nabble.com/Ant-Delete-task---Deleting-a-file-from-a-directory-while-comparing-from-another-directory-tf4679976.html#a13372424 > Sent from the Ant - Us

Ant Delete task - Deleting a file from a directory while comparing from another directory

2007-10-23 Thread arunks
74 75 Brgds, Arun Sangal SCM 1 - (303) 397 6059 [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Ant-Delete-task---Deleting-a-file-from-a-directory-while-comparing-from-another-directory-tf4679976.html#a13372424 Sent from the Ant - Users

RE: delete task

2007-01-30 Thread Anderson, Rob (Global Trade)
nuary 27, 2007 7:40 PM > To: user@ant.apache.org > Subject: delete task > > Hi, > How can I use the delete task to remove the > 'dist/src/builddir' directory tree structure. and then use it > to create a

delete task

2007-01-27 Thread Erica A Ramsey
Hi, How can I use the delete task to remove the 'dist/src/builddir' directory tree structure. and then use it to create a new one from root '.' ? thanks, Erica - To unsubscribe, e-mail: [EMAIL PROTECTED] For

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

Delete task failed to remove French file name

2006-02-09 Thread Noel Sebastien (BIL)
Hi all, As you know, french language includes some stressed characters like é, à, etc I have a file called "BD_Modèle.sql" in a "src" folder. 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.r

Re: delete task in Ant

2006-01-06 Thread Ken Gentle
y need two includes in the fileset, like: Don't forget the quotes around the attribute value (name="") - I'm surprised you didn't get an error with the pattern as you have it below. Ken At 13:42 2006-01-06, you wrote: I have a file(s) that get created in the

Re: delete task in Ant

2006-01-06 Thread Alexey N. Solofnenko
Ken At 13:42 2006-01-06, you wrote: I have a file(s) that get created in the build directory that I want to delete, so I used the delete task The files that get created are: .#Test.log.1.23 .#Test.log.1.24 Why does the ant task not recognize these files? Is ther

Re: delete task in Ant

2006-01-06 Thread Ken Gentle
13:42 2006-01-06, you wrote: I have a file(s) that get created in the build directory that I want to delete, so I used the delete task The files that get created are: .#Test.log.1.23 .#Test.log.1.24 Why does the ant task not recognize these files? Is there someth

delete task in Ant

2006-01-06 Thread DHARNA, AJAY [AG/1000]
I have a file(s) that get created in the build directory that I want to delete, so I used the delete task The files that get created are: .#Test.log.1.23 .#Test.log.1.24 Why does the ant task not recognize these files? Is there something wrong with the pattern

RE: Using mappers with delete task

2005-11-09 Thread Juergen Hermann
On Wed, 9 Nov 2005 16:17:01 -0600, Brown, Carlton wrote: >I'm working from 2 print references and neither mentions that the present selector supports mappers. Obviously you've got better information, do you mind sharing a link to it? The HTML docs that are on the homepage and in the distribu

RE: Using mappers with delete task

2005-11-09 Thread Brown, Carlton
nesday, November 09, 2005 3:44 PM > To: Ant Users List; Brown, Carlton > Subject: RE: Using mappers with delete task > > On Wed, 9 Nov 2005 15:03:27 -0600, Brown, Carlton wrote: > > You need to tell if you want us to narrate the docs: > > The tag supports the use of a conta

RE: Using mappers with delete task

2005-11-09 Thread Juergen Hermann
. >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, November 09, 2005 2:24 PM >> To: Ant Users List; Brown, Carlton >> Subject: Re: Using mappers with delete task >> >> On Wed, 9 Nov 2005 12:46:27 -0600, Brown, Carlton

RE: Using mappers with delete task

2005-11-09 Thread Brown, Carlton
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 09, 2005 2:24 PM > To: Ant Users List; Brown, Carlton > Subject: Re: Using mappers with delete task > > On Wed, 9 Nov 2005 12:46:27 -0600, Brown, Carlton wrote: >

Re: Using mappers with delete task

2005-11-09 Thread Juergen Hermann
On Wed, 9 Nov 2005 12:46:27 -0600, Brown, Carlton wrote: >To accomplish this, I tried using a mapper with the delete task, but I >got an error saying the delete doesn't support the use of mappers. >Without a mapper, I can't see how this would be done. use delete with a fi

RE: Using mappers with delete task

2005-11-09 Thread RADEMAKERS Tanguy
you could use a nested fileset with an excludes attribute. something like: /t >-Original Message- >From: Brown, Carlton [mailto:[EMAIL PROTECTED] >Sent: Wednesday, November 09, 2005 7:46 PM >To: Ant Users List >Subject: Using mappers with delete task > &

Using mappers with delete task

2005-11-09 Thread Brown, Carlton
using a mapper with the delete task, but I got an error saying the delete doesn't support the use of mappers. Without a mapper, I can't see how this would be done. I checked the manual entry for delete as well as searched usenet, but nothing immediately suggested itself as a solution.

ANT 1.5.1 and 1.6.1 delete task problem

2005-08-25 Thread koden (sent by Nabble.com)
When running the delete task on ANT 1.5.1 I get a Unable to delete error, but on 1.6.1 I can delete. It has something to do with my remoteant task as well. The below code works on 1.6.1 fine, but on 1.5.1 it won't work. I'm testing this on localhost, could that be one of th

Ant delete task with files with acutes and space

2005-02-07 Thread Xose Ramon Sousa Vázquez
I have a problem with special characters in the name of my files. We use names with some characters like acutes ( á é í ó ú ) and spaces and Ç for example. I am using ant into a cruisecontrol process to clean the build directory. For example: I have tried to delete a file in Linux with its file

Re: quiet attribute of delete task

2004-12-16 Thread Jeffrey E Care
See here: http://issues.apache.org/bugzilla/show_bug.cgi?id=32738 -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere Build SWAT Team Lead WebSphere Build Tooling Lead (Project Mantis) https://w3.opensource.ibm.com/projects/mantis [EMAIL PROTECTED] wrote on 12/16/2004 04:30:55 PM: > If I specify q

quiet attribute of delete task

2004-12-16 Thread Nick_Gianakas
If I specify quiet="true" when deleting a file, it still prints the file: prints out: Deleting: path/to/foo.txt I'm invoking ant w/out the verbose flag (ie. ant build.xml) Regards, Nick G. - To unsubscribe, e-mail: [EMA

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

delete task ...

2003-10-14 Thread Thomas Lionel SMETS
In the ANT-docs, the delete-Task accepts a FileSet, with the following description: Attribute : includes Description : comma- or space-separated list of patterns of files that must be included; all files are included when omitted. Required : No But in the example they give