Re: how to file path from fileset

2008-03-30 Thread Robin Chaddock
Raja Nagendra Kumar wrote: I would like to know exact location of file given a fileset way to find one Assuming that only one file in tejasoft.root would match the expression "**/${name}Common.xml. Regards, Raja Nagendra Kumar, C.T.O ww

Re: Cross-compilation problem

2008-02-22 Thread Robin Chaddock
Do you experience the same problem if you by-pass the javac task, and invoke javac using the exec task? Obviously not a very nice work-around... but if it solves your problem :>. Scot P. Floess wrote: That's really interesting! To be honest I have not really had a need to do something l

Re: conditional statements

2008-02-14 Thread Robin Chaddock
[quote] ...but you must include the ant-contrib-xxx.jar file in your Ant's classpath... [/quote] It's a lot neater, and portable to other peoples configurations if the antcontrib lib jar is simply specified in the classpath attribute of the appropriate taskdef[s]. e.g. classpath="*${ant-con

Re: Copy content of file only?

2008-02-13 Thread Robin Chaddock
- Original Message - From: jonese To: Ant Users List Sent: Wednesday, February 13, 2008 3:43 PM Subject: Copy content of file only? Hey all i need to take the content of file A and place it into File B. anyone know the best way to accomplish this? jonese --

Re: Generating a CSV file

2008-02-04 Thread Robin Chaddock
You looking for something more complex than :- ${user.name},${the.date},${revision.no} - Original Message - From: Sam Hamilton To: user@ant.apache.org Sent: Monday, February 04, 2008 5:31 PM Subject: Generating a CSV file Hi All, I would like to generate a CSV file fr

Re: Capitalize property value

2008-01-31 Thread Robin Chaddock
Java's regex replace supports case conversion -> http://www.javaregex.com/tutorial5.html So you should be able to do it through the propertyregexp task. Alain ROY wrote: Hi all I need to capitalize a property value. I tried using regular expressions and the Antcontrib propertyregexp task, bu

Re: Aggregation of or ?

2008-01-04 Thread Robin Chaddock
elements can be nested, and so can be aggregated in the way you describe. I'd suggest steering clear of handling filesets directly, instead always wrap them in a . Unfortunately far too many 3d party tasks do use them directly - which is a pain :( - Original Message - From: Darry

Re: AW: extended parallelism

2007-12-19 Thread Robin Chaddock
The target "depends" attribute already gives all the information you need to be able to determine which targets can be executed in parallel? As I mentioned earlier the only road-block at the moment to a totally transparent mechanism for supporting parallel execution is the dubious implicit depe

Re: AW: extended parallelism

2007-12-18 Thread Robin Chaddock
Yeah, I think Ant needs to clean up the definition of the depends attribute. The current definition for 'depends' leads to 2 kinds of dependencies, taking the example below :- 1) a depends upon b & c. This is an explicit dependency, and is persistent for the life-time of the Ant script - it

Re: extended parallelism

2007-12-18 Thread Robin Chaddock
Isn't this the default behaviour anyway? Should not be interpretted as " 'a' depends on 'b' then 'c' then 'd' ", as that would imply that 'b' depended up 'c', which in turn depended upon 'd'. If such a dependency did exist, it should be incorporated in the depends attribute of the 'b' & 'c' ta

Re: Setting final strings at compile time

2007-12-13 Thread Robin Chaddock
Surely that is what a jars manifest is for? - Original Message - From: Wayne Cannon To: Ant Users List Sent: Thursday, December 13, 2007 1:11 AM Subject: Re: Setting final strings at compile time Eric, We create an almost-Java source file, e.g., Version.txt, containing