RE: Using path elements to use jars

2005-10-28 Thread Telang, Nandan
I used to convert the path to a comma separated list stored in a property.. However the classpath has all absolute paths (starting with /) What should the value of dir be in in the zip task ? If I give it as / all files are ignored -Nandan -Original Message- From: Telang, Nandan [mail

Using path elements to use jars

2005-10-28 Thread Telang, Nandan
Hi I have a classpath generated as ... I wish to create a zip file with all the jars mentioned in that path. How do I iterate through the element / tell the zip task to include all the jars ? Thanks, -Nandan

Re: *****spam***** Re: Need to expand *.txt in java task

2005-10-28 Thread Geoffrey Mitchell
The following works under ant 1.6.5: I inadvertantly omitted the ... in my initial example. It should be mentioned that if you have spaces in the paths to your working directory, will not work as expected, as it will break arguments on

ant is giving me a spurious "Unknown argument" error

2005-10-28 Thread Deron Johnson
When I type: ./ant -version I get the following error message: Unknown argument: -cp ant [options] [target [target2 [target3] ...]] Options: -help, -h print this message -projecthelp, -p print project help information ... I'm not even giving it a '-cp' argument. Any ide

Re: Need to expand *.txt in java task

2005-10-28 Thread Dale Anson
I'd suggest you start here: http://www.catb.org/~esr/faqs/smart-questions.html That might help you get a better response. Bob Noonan wrote: the task given in the rely generates a: pathconvert does not support nested fileset ditto the following example taken from ant.apache.org/manual/

Re: Need to expand *.txt in java task

2005-10-28 Thread Bob Noonan
the task given in the rely generates a: pathconvert does not support nested fileset ditto the following example taken from ant.apache.org/manual/using.html: generates: corona> ant -f filelist.xml Buildfile: filelist.xml alt: BUILD FAILED /h

Re: Need to expand *.txt in java task

2005-10-28 Thread Geoffrey Mitchell
You could use PathConvert to convert your fileset into a string with the list of files.  You will probably want to set pathsep=" " and use arg line="${fileslist}". So, you have:    I haven't tried it, but it should work. Hi, Please forgive my stupidity, but I have spe

Re: Need to expand *.txt in java task

2005-10-28 Thread Rhino
I'm sure it's obvious to you but it sure isn't to me: what is it that you're trying to do? Also what Ant version are you using and how much experience do you have with Ant? I'm inclined to guess that you're just getting started with Ant but I could be wrong Rhino - Original Message -

Re: How do I walk the task tree from Java?

2005-10-28 Thread Ashley Williams
Yes this helps a great deal - it helps me to decide to cut my losses ;) I have one more throw of the dice, which is to take a look at the BuildListener code - maybe, just maybe Ant will be kind enough to deliver me the correct target/task so that I can change the attributes before execution.

Need to expand *.txt in java task

2005-10-28 Thread Bob Noonan
Hi, Please forgive my stupidity, but I have spent hours on this ... Given the following Unix/Linux command line: java Test.Main -all *.txt I wrote the following ant task: Test.Main reports it cannot find file *.java. So I replaced the 2

Re: How do I walk the task tree from Java?

2005-10-28 Thread Dale Anson
Hi Ashley, It is that hard, and maybe even harder. Antelope has a progress bar to show how progress of a build. It tries to count the number of tasks that will be executed prior to the build starting, then updates the progress bar based on the taskFinished build events, so basically, it is

How do I walk the task tree from Java?

2005-10-28 Thread Ashley Williams
Hi, I'm trying to write a method in java that takes a root target and then walks down the task tree until it comes to the desired object, but don't seem to find the api to do this. I sort of got it to work in Ant 1.6.2 but wasn't really happy with the results as I still don't fully unders

Re: Custom ant task and resources

2005-10-28 Thread Dale Anson
Johannes, I've written a classloader that handles that specific situation. You can view the source at: http://antelope.tigris.org/source/browse/antelope/src/ise/antelope/launcher/SubJarClassLoader.java?rev=1.1&view=markup This code is distributed with Antelope, the source is available at htt

Re: help to convert makefile to build.xml

2005-10-28 Thread Jeffrey E Care
To the best of my knowledge there is no tool that an do such a conversion; you must do it by hand. -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) Sethu Prasad G <[EMAIL PROTECTED]> wrote on 10/28/2005 03:37:13 AM: > Hi, > >

AW: problem in enabling wildcard

2005-10-28 Thread Jan.Materne
>If you want to build everything, have a target called "all", >or even "*" >(yes, that is a legal target name), and invoke it. Writing that target is simple: Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: problem in enabling wildcard

2005-10-28 Thread Steve Loughran
Rajnish Singh wrote: Hi Jan, When we specify '*' in target means that all the target in the specified build files will be executed like when we say < ant antfile="build1.xml" target="*" /> means all the targets in the build1.xml will be executed. No that's silly. Ant doesn't do that. The only

Re: Logging depending on return result from Java prog

2005-10-28 Thread James Abley
On Fri, 2005-10-28 at 12:49, Ben Ryan wrote: > Hi, > Apologies in advance if this is a trivial question. > > I have looked everywhere I can find, there are probably lots of > other places, for an example of how to log an error message only when > the prog run by a java task returns non-ze

RE: Logging - I need a concept

2005-10-28 Thread Remo Liechti
Hi Bob Thank you for the good information provided. I think I'll try ant -logger org.apache.tools.ant.XmlLogger -verbose -logfile build_log.xml With extra verbose I got most of the ionformation I need. After running this ant script I could call a throurth java proghram which analyzes this xml log

Logging depending on return result from Java prog

2005-10-28 Thread Ben Ryan
Hi,     Apologies in advance if this is a trivial question.       I have looked everywhere I can find, there are probably lots of other places, for an example of how to log an error message only when the prog run by a java task returns non-zero. Can anybody help?    Regards,     Ben --

Re: Logging - I need a concept

2005-10-28 Thread Bob Hays, Computer Geek
Have you tried the XML logger? The manual pages on the ant website are pretty good for instruction on how to use a given logger, but if you need more help just ask. Otherwise, you can take the XML output and then process it using XSLT to get the exact detail you want. If that doesn't do what you

AW: Logging - I need a concept

2005-10-28 Thread Jan.Materne
Maybe combination between -logfile and -debug/-verbose ? Would be easier than writing a new logger ... Next step would trying the Log4J-Logger and play with the Log4J configuration. Jan >-Ursprüngliche Nachricht- >Von: Remo Liechti [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 28. Okt

RE: Logging - I need a concept

2005-10-28 Thread Remo Liechti
Hi Yes, but this logs also stuff I dont need... Like: getDocuments: [ftp] sending files [ftp] 1 files sent [delete] Deleting 1 files from C:\temp\mssDocPublisher This part should look like this in the logile: Sending Zip file "myFile.zip" to myFTPServer/sopme/location, containin

Re: AW: AW: AW: Jar or copy files from multiple unknown directories

2005-10-28 Thread arcus(x) - Cornelius Buschka
Hi Jan, thanks for detailed infos. I see what I can do. Regards Cornelius [EMAIL PROTECTED] wrote: Hello Cornelius, for short ResourceCollection is a collection of Resources. A Resource [1] "Describes a "File-like" resource (File, ZipEntry, etc.)." In the earlier past there were some work on

AW: Logging - I need a concept

2005-10-28 Thread Jan.Materne
Hi Remo, have you tried the "-logfile" option? Jan >-Ursprüngliche Nachricht- >Von: Remo Liechti [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 28. Oktober 2005 12:44 >An: Ant Users List >Betreff: Logging - I need a concept > >Hi all >I have to implement a loging function to my ant scr

Logging - I need a concept

2005-10-28 Thread Remo Liechti
Hi all I have to implement a loging function to my ant scripts, but I really don't know how to do it... I got a script like this like the one attached. In this script I have some echos, do some file deleting, ftp upload and call three java programs. The stuff that has to be logged in ONE file SO

AW: problem in enabling wildcard

2005-10-28 Thread Jan.Materne
Sorry that doesnt work from 1.2 to 1.7(15.06.2005) 1 2 3 4 Default-Target Jan >-Ursprüngliche Nachricht- >Von: Rajnish Singh [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 28. Oktober 2005 12:36 >An: Ant Users List >Betreff: RE: problem in e

AW: AW: AW: Jar or copy files from multiple unknown directories

2005-10-28 Thread Jan.Materne
Hello Cornelius, for short ResourceCollection is a collection of Resources. A Resource [1] "Describes a "File-like" resource (File, ZipEntry, etc.)." In the earlier past there were some work on that area [2] and we tend to move to that. E.g. [3,4] supports ResourceCollections - in HEAD of cour

RE: setting env variable in ant script

2005-10-28 Thread Rebhan, Gilbert
Hi, how to delegate the path/to/cvs.exe to command ? i've tried several combinations, f.e. = What's the right syntax for the command line ? Gilbert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, October 28, 2005 12:18 PM To: user@ant.apache.org

RE: problem in enabling wildcard

2005-10-28 Thread Rajnish Singh
Hi Jan, When we specify '*' in target means that all the target in the specified build files will be executed like when we say < ant antfile="build1.xml" target="*" /> means all the targets in the build1.xml will be executed. Rajnish -Original Message- From: [EMAIL PROTECTED] [mailto

Re: AW: AW: Jar or copy files from multiple unknown directories

2005-10-28 Thread arcus(x) - Cornelius Buschka
What do you mean with ResourceCollection exactly? Could you point me to a task that already supports ResourceCollection? Or do you mean support for the mapper? (Sorry, not so deep in ant yet ;) Cornelius [EMAIL PROTECTED] wrote: Would be better to add support of ResourceCollection to (and th

AW: setting env variable in ant script

2005-10-28 Thread Jan.Materne
Use the command attribute of . Jan >-Ursprüngliche Nachricht- >Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 28. Oktober 2005 12:14 >An: user@ant.apache.org >Betreff: setting env variable in ant script > > >Hi, > >normally i run my scripts via batfile and do a set P

AW: AW: Jar or copy files from multiple unknown directories

2005-10-28 Thread Jan.Materne
Would be better to add support of ResourceCollection to (and therefore to ). Jan >-Ursprüngliche Nachricht- >Von: arcus(x) - Cornelius Buschka [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 28. Oktober 2005 12:17 >An: Ant Users List >Betreff: Re: AW: Jar or copy files from multiple unk

setting env variable in ant script

2005-10-28 Thread Rebhan, Gilbert
Hi, normally i run my scripts via batfile and do a set PATH=%PATH%;c:\cvnst now i have to run the same script on another machine, where my ant script is called from java and ant-launcher. Problem = cvsnt isn't on path so script gets cvs error=2 Question = how to set an env variable in my ants

Re: AW: Jar or copy files from multiple unknown directories

2005-10-28 Thread arcus(x) - Cornelius Buschka
Hello Jan, thanks for the quick reply. I will try out the mapper. I thought about extending the FileSet to use a dirset as base directories instead of a single dir. What do you think about? Do you think it could work? Best Regards Cornelius [EMAIL PROTECTED] wrote: Hi Cornelius, use only

Re: Jar or copy files from multiple unknown directories

2005-10-28 Thread Juergen Hermann
On Fri, 28 Oct 2005 11:44:50 +0200, arcus(x) - Cornelius Buschka wrote: >I would like to jar up files from these directories into one jar. Not >the whole contents but a selection of files from each folder only. > > > and add a (regex) mapper that removes everything up to /src/ from the file

AW: Jar or copy files from multiple unknown directories

2005-10-28 Thread Jan.Materne
Hi Cornelius, use only ${basedir} as dir and includes "**/src/". Maybe you have to play with nested mappers ... damn - no mapper support in ... Ok, workaround - iterating with ac:foreach . Jan >-Ursprüngliche Nachricht- >Von: arcus(x) - Cornelius Buschka [mailto:[EMAIL PROTECTED] >

AW: problem in enabling wildcard

2005-10-28 Thread Jan.Materne
Hi Rajnish, never heard from "*" - nothing in the manual ... Which target should be executed on "*" ? Jan >-Ursprüngliche Nachricht- >Von: Rajnish Singh [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 28. Oktober 2005 11:34 >An: user@ant.apache.org >Betreff: problem in enabling wildcard

Jar or copy files from multiple unknown directories

2005-10-28 Thread arcus(x) - Cornelius Buschka
Hi, our project contains many source folders that can be found via pattern ${basedir}/**/src. I would like to jar up files from these directories into one jar. Not the whole contents but a selection of files from each folder only. did not work, because the fileset could not find the direc

problem in enabling wildcard

2005-10-28 Thread Rajnish Singh
Hi, In my project when I am writing it compiles well through the cmd, but when compiling the same build file through myeclipse I am getting the error Target `*' does not exist in this project. If I replace * to some specific target like 'compile" or "clean" or anything else, it is compiled. Ne

The good ol' JUnit problem

2005-10-28 Thread Jon Skeet
Currently, our build uses a modified distribution of Ant - all the optional libraries we need are bundled into the lib directory. We use a similarly modified version of Eclipse (i.e. the Ant part has the same changes made). Needless to say, this is somewhat suboptimal. I want to move to a system w

Re: using ant to create lnk/exe

2005-10-28 Thread Dominik Pich
linkers? for lnk? -> lnks are shorcuts And for exes I dont want to create os's own executable but ALWAYS an win32 exe file. On Oct 28, 2005, at 1:14 AM, Antoine Levy-Lambert wrote: Hello Dominik, since linkers have different names on different operating systems, if you want to be truly cros

help to convert makefile to build.xml

2005-10-28 Thread Sethu Prasad G
Hi, Can anybody help me to convert a makefile to build.xml with any of the tools, is it possible at this moment, write your comments plz,, Thanks, Sethu. - Enjoy this Diwali with Y! India Click here