RE: deltree does not work

2001-11-01 Thread Will Dyke

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

2001-11-01 Thread Erik Hatcher

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]




Contributing to FAQ (was deltree does not work)

2001-11-01 Thread Will Dyke

I know I'm asking for trouble here ;-) but how
do I contribute to the FAQ? There are questions
that I feel that I've seen/answered enough
times, that don't appear in the FAQ. 

At least then I could answer questions saying
http://jakarta.apache.org/ant/faq.html#2.3.1
(say) 

Will

 -Original Message-
 From: Erik Hatcher [mailto:[EMAIL PROTECTED]]
 Sent: 01 November 2001 10:42
 To: Ant Users List
 Subject: 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]
 


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: Contributing to FAQ (was deltree does not work)

2001-11-01 Thread Conor MacNeill

Will Dyke wrote:

 I know I'm asking for trouble here ;-) but how
 do I contribute to the FAQ? There are questions
 that I feel that I've seen/answered enough
 times, that don't appear in the FAQ. 
 
 At least then I could answer questions saying
 http://jakarta.apache.org/ant/faq.html#2.3.1
 (say) 
 
 Will
 
 

Will,

There are a number of ways to submit a FAQ entry - although there is no 
official procedure.

OK, here are the options that should work

1. submit a mail to ant-dev. You can use [PATCH} in the subject line 
since it is effectively a documentation change. The website is 
considered to be part of Ant's documentation. You should describe the 
question and perhaps even an answer :-)

2. Submit an enhancement request to BugZilla for a documentation change. 
Again provide the question and answer.

3. If you have CVS access and are keen, you can checkout the xdocs 
directory and modify the xml file used to generate the final HTML 
version of the FAQ. There is a docs.xml build file for generating the 
Ant website. You can generate a patch for this file and attach that to 
the [PATCH] mail of option 1 or the bug report of option 2

This page describes the best format for making patches
http://jakarta.apache.org/site/source.html

This page decribes how the Jakarta web pages are generated
http://jakarta.apache.org/site/jakarta-site2.html

Conor



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




deltree does not work

2001-10-31 Thread Gene Margolin

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

2001-10-31 Thread T Master


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

2001-10-31 Thread Bevan Arps

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

2001-10-31 Thread Gene Margolin

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

2001-10-31 Thread Bevan Arps

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

2001-10-31 Thread Gene Margolin

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

2001-10-31 Thread Diane Holt

--- 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]