RE: Prompt

2001-11-12 Thread Alan Pearlman Spencer
Try this: http://www.mail-archive.com/ant-user@jakarta.apache.org/msg03059.html It has a custom task to ask the user a question... Alan. -Original Message- From: Krystan Honour [mailto:[EMAIL PROTECTED]] Sent: 12 November 2001 13:20 To: Ant Users List Cc: [EMAIL PROTECTED] Subject: Re:

RE: Prompt

2001-11-12 Thread Alan Pearlman Spencer
PROTECTED]] Sent: 12 November 2001 13:57 To: Alan Pearlman Spencer Subject: Re: Prompt This looks good, I`m not sure how to go about using these tasks as I am quite new to ant. I compile the src but where does the .class file want to be placed so that ant may see it ? - Original Message

RE: build.bat problem

2001-11-13 Thread Alan Pearlman Spencer
First point I'd make is that it is easier (and better?) to define the classpath for ANT (ant only) in the batch file (like the ant.bat, it handles it's own jars nicely) and set up a fileset for your classpath inside the build script. This means you can have incompatibilities between these (like

RE: build.bat problem

2001-11-13 Thread Alan Pearlman Spencer
- Original Message - From: Alan Pearlman Spencer [EMAIL PROTECTED] To: Ant Users List [EMAIL PROTECTED] Sent: Tuesday, November 13, 2001 11:29 AM Subject: RE: build.bat problem First point I'd make is that it is easier (and better?) to define the classpath for ANT (ant only) in the batch file

RE: Junit test reports

2001-11-14 Thread Alan Pearlman Spencer
This is an (annoying) classpath issue. If you take a look at the definition of the tasks it says it needs Xalan 2 If you get this version of xalan and put it in the lib directory I think that fixes the problem. Let me know how it goes... Alan. -Original Message- From: Kazandjian Erik

How do I get a fileset to include only directories?

2001-11-14 Thread Alan Pearlman Spencer
/classpath /available The pathelement works, but I can't get the fileset to include all dirs in the tree... Any ideas? Thanks, Alan. Alan Pearlman-Spencer MobileAware Ltd. 3225 Lake Drive, National Digital Park

RE: synchronize directory task

2001-11-14 Thread Alan Pearlman Spencer
Or copy? Copy will only copy the files it needs. -Original Message- From: Matt Lyon [mailto:[EMAIL PROTECTED]] Sent: 14 November 2001 14:16 To: Ant Users List Subject: RE: synchronize directory task Have you checked out move? -Original Message- From: Jeff Sahol [mailto:[EMAIL

RE: central definition of classpath, please HELP !!!

2001-11-14 Thread Alan Pearlman Spencer
I believe you need to use a property to do this. classpath refid's will not be passed (as they are XML IDs and it is a different XML file). Not as powerful, but it will be passed to other scripts... Maybe (big maybe) you could xml include other scripts using an ENTITY??? Alan. -Original

RE: central definition of classpath, please HELP !!!

2001-11-14 Thread Alan Pearlman Spencer
You can't (as far as I know) Only properties are passed... What I do is define the properties that are needed to recreate the classpath, not ideal, but it works. like classpath.lib.dir, classpath.classes.dir, classpath.other.jar??? Sorry I can't help more... Alan. -Original Message-

Is there a way to search a directory structure?

2001-11-14 Thread Alan Pearlman Spencer
=my.file.txt type=file property=found classpath fileset dir=${search.root} include name=**/ exclude name=**/*.*/ /fileset /classpath /available And also with filesets, but I'm stuck. Any ideas? Alan. -Original Message- From: Alan Pearlman Spencer Sent: 08 November 2001 18

RE: Is there a way to search a directory structure?

2001-11-14 Thread Alan Pearlman Spencer
Thanks a million! I'll play with the file attribute, don't know how I missed that! Thanks, Alan. -Original Message- From: Diane Holt [mailto:[EMAIL PROTECTED]] Sent: 14 November 2001 17:06 To: Ant Users List Subject: Re: Is there a way to search a directory structure? --- Alan Pearlman

RE: log4j + JUnit + Ant 1.4

2001-11-16 Thread Alan Pearlman Spencer
I have used these together... I think is is because ANT tried to catch output (System.out) from tasks. I would use a file appender if I were you... Alan. -Original Message- From: Christopher Berry [mailto:[EMAIL PROTECTED]] Sent: 15 November 2001 21:59 To: Ant-User (E-mail) Subject:

RE: Doing both debug and release builds with same targets

2001-11-16 Thread Alan Pearlman Spencer
I have this same configuration and I have a target that sets the flag before getting on with it. target name=debug_dist depends=set_debug,dist/ Where set_debug is like setmode... And Dist depends on an init that sets debug to false. Then I use debug in my javac calls... Alan. -Original

Command line another way?

2001-11-16 Thread Alan Pearlman Spencer
Hi, Is it possible to give the ant command line a different way? I'm using ANT in NetBeans and in Cruise Control etc... And would like to pass in -debug -quite etc... Thanks, Alan. Alan Pearlman-Spencer MobileAware Ltd. 3225 Lake Drive

RE: INCLUDE possible?

2001-11-19 Thread Alan Pearlman Spencer
Hi, I've found a way: If you want to define a new target or property Add this to the top of the build.xml file: !DOCTYPE project [ !ENTITY test-file SYSTEM testInclude.xml ] And then start the project: project name=project default=all basedir=. And then

RE: Sharing path id across multiple build files. Is it possible?

2001-11-19 Thread Alan Pearlman Spencer
Try this: If you want to define a new target or property or classpath Add this to the top of the build.xml file: !DOCTYPE project [ !ENTITY test-file SYSTEM testInclude.xml ] And then start the project: project name=project default=all basedir=. And then

RE: Line numbers on Stack traces

2001-11-20 Thread Alan Pearlman Spencer
For some reason, by default, ANT passes -g:none to the compiler and there is no way for it's default to be the same as Javacs default which is -g:line as far as I know. Also, in ANT you only have debug on (all) or off (none), check out the docs for javac and you will see it has more options... I

RE: Reference IDs ... can they be inherited?

2001-11-20 Thread Alan Pearlman Spencer
No it is not possible. Search the archive and you will find the question asked many times. I posted yesterday about how to do an XML cluge to include snippets of build scripts... Alan, -Original Message- From: Eddie Espino [mailto:[EMAIL PROTECTED]] Sent: 19 November 2001 22:15 To:

RE: Line numbers on Stack traces

2001-11-20 Thread Alan Pearlman Spencer
/bugzilla/show_bug.cgi?id=4127 A patch has been submitted. Please wait for it to be committed. Magesh - Original Message - From: Alan Pearlman Spencer [EMAIL PROTECTED] To: Ant Users List [EMAIL PROTECTED] Sent: Tuesday, November 20, 2001 3:49 AM Subject: RE: Line numbers on Stack traces

wlrun - anyone using it.

2001-11-22 Thread Alan Pearlman Spencer
Is Anyone using the wlrun task and is it supported? Can't find docs except the javadoc... Thanks, Alan. Alan Pearlman-Spencer MobileAware Ltd. 3225 Lake Drive, National Digital Park, CityWest Business Campus

generating absolute paths from relative ones...

2001-11-27 Thread Alan Pearlman Spencer
convert a relative path to an absolute one when I don't have any absolute paths? I thought PathConvert might help, but it does not look like it. I need to use something apart from string concats as I usually do. Any ideas would be very welcome... Thanks, Alan. Alan Pearlman

Problem with classes still loaded from WLS...

2001-11-28 Thread Alan Pearlman Spencer
. Alan Pearlman-Spencer MobileAware Ltd. 3225 Lake Drive, National Digital Park, CityWest Business Campus, Dublin 24. Ireland. Phone: +353 (0)1 2410 500 Fax: +353 (0

RE: Problem with classes still loaded from WLS...

2001-11-28 Thread Alan Pearlman Spencer
the purpose. Is it possible to have an ant call run in a seperate VM? Maybe it would be nice to have a fork task that forked to run the tasks within??? Thanks, Alan. -Original Message- From: Alan Pearlman Spencer Sent: 28 November 2001 09:28 To: Ant Users List Subject: Problem

RE: Problem with classes still loaded from previous... (was: Problem with classes still loaded from WLS...)

2001-11-28 Thread Alan Pearlman Spencer
stop the cruise control process. I presume the same problem would occur if I tried to delete the files at the end of the ant script running. Any ideas? Thanks, Alan. -Original Message- From: Alan Pearlman Spencer Sent: 28 November 2001 10:18 To: Ant Users List Subject: RE: Problem

RE: Copy to map dos to unix?

2001-11-30 Thread Alan Pearlman Spencer
D'oh. Never noticed that one. I'll need to do another trawl through all the tasks. Thanks, Alan. -Original Message- From: Jon Skeet [mailto:[EMAIL PROTECTED]] Sent: 30 November 2001 09:37 To: Ant Users List Subject: RE: Copy to map dos to unix? Is it possible to convert dos to unix