RE: deltree does not work
Is ${destdir.dir} defined? Run ant with -debug and -verbose to see what is actually happening when the clean target is executed, and check that ${destdir.dir} is actually expanded to a reasonable value. Will -Original Message- From: Gene Margolin [mailto:[EMAIL PROTECTED]] Sent: 31 October 2001 19:59 To: Ant Users List Subject: deltree does not work Hi. Here is my xml ant file. By some reason target clean does not work. All directories which have to be deleted by that target are not deleted. What's wrong in my project? Thank you in advance. Gene. !-- Jmaf build file -- project name=jmaf default=compile basedir=. property name=src.dir value=ant/java/ property name=build.dir value=ant/java_classes/ property name=dist.dir value=ant/java_build/ property name=build.compiler value=classic/ property name=ant.home value=ant/ target name=compile mkdir dir=${build.dir}/ deltree dir=${src.dir}/com/futuresource/jmaf/charts/tests/ !-- NewsWatch -- mkdir dir=${build.dir}/NewsWatch/ javac srcdir=${src.dir} destdir=${build.dir}/NewsWatch classpath=${src.dir}/env/extern;${src.dir}/jars/capsapi_classes.zip includes=com/futuresource/newswatch/NewsWatch.java,com/future source/jmafkit/quantum/QuantumSession.java debug=off optimize=off / /target target name=clean depends=compile deltree dir=${destdir.dir}/com/futuresource/jmaf/charts/util/ deltree dir=${destdir.dir}/com/futuresource/jmaf/charts/*.class/ deltree dir=${destdir.dir}/com/futuresource/jmaf/lang/expression/ deltree dir=${destdir.dir}/com/futuresource/jmaf/tuple/ /target /project -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This e-mail, and any attachment, is confidential. If you have received it in error, please delete it from your system, do not use or disclose the information in any way, and notify me immediately. The contents of this message may contain personal views which are not the views of the BBC, unless specifically stated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: deltree does not work
The official Jakarta Ant hosted FAQ: http://jakarta.apache.org/ant/faq.html jGuru's Ant FAQ: http://www.jguru.com/faq/Ant I maintain the jGuru FAQ, and its highly interactive so if you submit a question to the Forum someone will answer it and if I deem it an FAQ then I promote it. And if you submit a patch to ant-dev for the official FAQ then I'm sure a committer would be more than happy to apply it. Erik - Original Message - From: Gary Keim [EMAIL PROTECTED] To: Ant Users List [EMAIL PROTECTED] Sent: Thursday, November 01, 2001 5:09 AM Subject: RE: deltree does not work I'm feeling weird that it took this long to inform this neophite (no offense, even if you are not a neophite). Is there an FAQ to which we can point people with such simple questions? I knew the answer but it seemed so obvious... -v. -Original Message- From: Will Dyke [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 01, 2001 2:10 AM To: 'Ant Users List' Subject: RE: deltree does not work Is ${destdir.dir} defined? Run ant with -debug and -verbose to see what is actually happening when the clean target is executed, and check that ${destdir.dir} is actually expanded to a reasonable value. Will -Original Message- From: Gene Margolin [mailto:[EMAIL PROTECTED]] Sent: 31 October 2001 19:59 To: Ant Users List Subject: deltree does not work Hi. Here is my xml ant file. By some reason target clean does not work. All directories which have to be deleted by that target are not deleted. What's wrong in my project? Thank you in advance. Gene. !-- Jmaf build file -- project name=jmaf default=compile basedir=. property name=src.dir value=ant/java/ property name=build.dir value=ant/java_classes/ property name=dist.dir value=ant/java_build/ property name=build.compiler value=classic/ property name=ant.home value=ant/ target name=compile mkdir dir=${build.dir}/ deltree dir=${src.dir}/com/futuresource/jmaf/charts/tests/ !-- NewsWatch -- mkdir dir=${build.dir}/NewsWatch/ javac srcdir=${src.dir} destdir=${build.dir}/NewsWatch classpath=${src.dir}/env/extern;${src.dir}/jars/capsapi_classes.zip includes=com/futuresource/newswatch/NewsWatch.java,com/future source/jmafkit/quantum/QuantumSession.java debug=off optimize=off / /target target name=clean depends=compile deltree dir=${destdir.dir}/com/futuresource/jmaf/charts/util/ deltree dir=${destdir.dir}/com/futuresource/jmaf/charts/*.class/ deltree dir=${destdir.dir}/com/futuresource/jmaf/lang/expression/ deltree dir=${destdir.dir}/com/futuresource/jmaf/tuple/ /target /project -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This e-mail, and any attachment, is confidential. If you have received it in error, please delete it from your system, do not use or disclose the information in any way, and notify me immediately. The contents of this message may contain personal views which are not the views of the BBC, unless specifically stated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: deltree does not work
1. deltree dir=${destdir.dir}/com/futuresource/jmaf/charts/*.class/ 2. I have never used deltree. I use delete to delete a directory including subdirs. Look it up in the manual. - Original Message - From: Gene Margolin [EMAIL PROTECTED] To: Ant Users List [EMAIL PROTECTED] Sent: Wednesday, October 31, 2001 12:58 PM Subject: deltree does not work Hi. Here is my xml ant file. By some reason target clean does not work. All directories which have to be deleted by that target are not deleted. What's wrong in my project? Thank you in advance. Gene. !-- Jmaf build file -- project name=jmaf default=compile basedir=. property name=src.dir value=ant/java/ property name=build.dir value=ant/java_classes/ property name=dist.dir value=ant/java_build/ property name=build.compiler value=classic/ property name=ant.home value=ant/ target name=compile mkdir dir=${build.dir}/ deltree dir=${src.dir}/com/futuresource/jmaf/charts/tests/ !-- NewsWatch -- mkdir dir=${build.dir}/NewsWatch/ javac srcdir=${src.dir} destdir=${build.dir}/NewsWatch classpath=${src.dir}/env/extern;${src.dir}/jars/capsapi_classes.zip includes=com/futuresource/newswatch/NewsWatch.java,com/futuresource/jmafkit /quantum/QuantumSession.java debug=off optimize=off / /target target name=clean depends=compile deltree dir=${destdir.dir}/com/futuresource/jmaf/charts/util/ deltree dir=${destdir.dir}/com/futuresource/jmaf/charts/*.class/ deltree dir=${destdir.dir}/com/futuresource/jmaf/lang/expression/ deltree dir=${destdir.dir}/com/futuresource/jmaf/tuple/ /target /project -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: deltree does not work
At 13:58 31/10/2001 -0600, you wrote: Here is my xml ant file. By some reason target clean does not work. All directories which have to be deleted by that target are not deleted. What's wrong in my project? Deltree is deprecated -- it is going to go away soon -- you should be using the delete task instead. deltree dir=${src.dir}/com/futuresource/jmaf/charts/tests/ try something like this instead: delete includeEmptyDirs=true fileset dir=dir=${src.dir}/com/futuresource/jmaf/charts/tests/ /delete Cheers, Bevan. -- Programming is an Art Form that Fights Back Bevan Arps (mailto:[EMAIL PROTECTED][EMAIL PROTECTED]) Senior OO Analyst, ACT Financial Systems This communication is confidential to ACT Financial Systems (Asia Pacific) and is intended for use only by the addressee. The views and opinions expressed in this email are the senders own and do not represent the views and opinions of ACT Financial Systems (Asia Pacific).
Re: deltree does not work
I've changed deltree by delete. The same result. No error messages. All directories are still here. Gene. T Master wrote: 1. deltree dir=${destdir.dir}/com/futuresource/jmaf/charts/*.class/ 2. I have never used deltree. I use delete to delete a directory including subdirs. Look it up in the manual. - Original Message - From: Gene Margolin [EMAIL PROTECTED] To: Ant Users List [EMAIL PROTECTED] Sent: Wednesday, October 31, 2001 12:58 PM Subject: deltree does not work Hi. Here is my xml ant file. By some reason target clean does not work. All directories which have to be deleted by that target are not deleted. What's wrong in my project? Thank you in advance. Gene. !-- Jmaf build file -- project name=jmaf default=compile basedir=. property name=src.dir value=ant/java/ property name=build.dir value=ant/java_classes/ property name=dist.dir value=ant/java_build/ property name=build.compiler value=classic/ property name=ant.home value=ant/ target name=compile mkdir dir=${build.dir}/ deltree dir=${src.dir}/com/futuresource/jmaf/charts/tests/ !-- NewsWatch -- mkdir dir=${build.dir}/NewsWatch/ javac srcdir=${src.dir} destdir=${build.dir}/NewsWatch classpath=${src.dir}/env/extern;${src.dir}/jars/capsapi_classes.zip includes=com/futuresource/newswatch/NewsWatch.java,com/futuresource/jmafkit /quantum/QuantumSession.java debug=off optimize=off / /target target name=clean depends=compile deltree dir=${destdir.dir}/com/futuresource/jmaf/charts/util/ deltree dir=${destdir.dir}/com/futuresource/jmaf/charts/*.class/ deltree dir=${destdir.dir}/com/futuresource/jmaf/lang/expression/ deltree dir=${destdir.dir}/com/futuresource/jmaf/tuple/ /target /project -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: deltree does not work
At 14:24 31/10/2001 -0600, you wrote: I've changed deltree by delete. The same result. No error messages. All directories are still here. target name=clean depends=compile deltree dir=${destdir.dir}/com/futuresource/jmaf/charts/util/ deltree dir=${destdir.dir}/com/futuresource/jmaf/charts/*.class/ deltree dir=${destdir.dir}/com/futuresource/jmaf/lang/expression/ deltree dir=${destdir.dir}/com/futuresource/jmaf/tuple/ /target These deltree lines say delete everything under ${destdir.dir}/com/futuresource/jmaf/charts/util Are you in fact wanting to delete everything under ${destdir.dir} instead? Cheers, Bevan. -- Programming is an Art Form that Fights Back Bevan Arps (mailto:[EMAIL PROTECTED][EMAIL PROTECTED]) Senior OO Analyst, ACT Financial Systems This communication is confidential to ACT Financial Systems (Asia Pacific) and is intended for use only by the addressee. The views and opinions expressed in this email are the senders own and do not represent the views and opinions of ACT Financial Systems (Asia Pacific).
Re: deltree does not work
No. I'd like to remove some classes BEFORE creating cab and jar archives. There are about 20 more folders in ${destdir.dir}. Gene. Bevan Arps wrote: At 14:24 31/10/2001 -0600, you wrote: I've changed deltree by delete. The same result. No error messages. All directories are still here. target name=clean depends=compile deltree dir=${destdir.dir}/com/futuresource/jmaf/charts/util/ deltree dir=${destdir.dir}/com/futuresource/jmaf/charts/*.class/ deltree dir=${destdir.dir}/com/futuresource/jmaf/lang/expression/ deltree dir=${destdir.dir}/com/futuresource/jmaf/tuple/ /target These deltree lines say delete everything under ${destdir.dir}/com/futuresource/jmaf/charts/util Are you in fact wanting to delete everything under ${destdir.dir} instead? Cheers, Bevan. -- Programming is an Art Form that Fights Back Bevan Arps (mailto:[EMAIL PROTECTED][EMAIL PROTECTED]) Senior OO Analyst, ACT Financial Systems This communication is confidential to ACT Financial Systems (Asia Pacific) and is intended for use only by the addressee. The views and opinions expressed in this email are the senders own and do not represent the views and opinions of ACT Financial Systems (Asia Pacific). -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: deltree does not work
--- Gene Margolin [EMAIL PROTECTED] wrote: I've changed deltree by delete. The same result. No error messages. All directories are still here. Try: target name=clean depends=compile delete includeEmptyDirs=yes fileset dir=${destdir.dir}/com/futuresource/jmaf include name=charts/*.class/ include name=lang/expression/**/ include name=tuple/**/ /fileset /delete /target If that doesn't work, try running with -verbose and sending the (relevant)output. Diane = ([EMAIL PROTECTED]) __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]