Getting directory/path information from a file

2010-05-04 Thread kim1
Hi all I am trying to use ant to do something like the following unix command And then get the fully qualified directory location of the filename - and do other things with that. So. For example, myfile might be in either /mydir/here/DIRA or /mydir/here/DIRB Without checking both dirs (I thi

[ANN] PAnt -- Ant-based Python Build Tool

2010-05-04 Thread Alexander Ananiev
Hello Everyone, I'd like to announce PAnt -- a tool that allows implementing Ant build scripts in Python (jython). With Pant, Ant tasks can be defined using dictionaries and lists: ant.copy( todir="${target.dir}", overwrite="true", fileset=dict( dir=".", includes="*.*" ) ) Ant target

Re: Automating without foreach?

2010-05-04 Thread David Weintraub
There is a foreach task in the Ant Contrib tasks: We recently discussed that the task is not defined in the properties file, but was defined in the antlib.xml file (if I remember correctly). However, the task is defined in the proper

Re: Automating without foreach?

2010-05-04 Thread Antoine Levy Lambert
Hello Misha, ant out of the box is not designed for procedural work. You could create a custom task doing the iteration over a list of platforms. Which would be like a dedicated for task. A trick which I have learned and used myself is to generate on the fly a small build file using xslt and

Automating without foreach?

2010-05-04 Thread Misha Koshelev
Dear All: I was wondering if there might be a simple, ant-specific way to automate tasks like this: Specifically, I'd like to have a list of platforms, and be able to repeat a task for each platform like above. Any help much appreciated! Thank you Misha

Re: Transforming a text file line by line with ant.

2010-05-04 Thread Marco Faustinelli
Ehm, well    :8} I guess I mixed up mappers with filters. Thank you for the advice. Marco From: Stefan Bodewig To: user@ant.apache.org Sent: Tue, May 4, 2010 10:02:16 AM Subject: Re: Transforming a text file line by line with ant. They can?  Yesterday

Re: Transforming a text file line by line with ant.

2010-05-04 Thread Stefan Bodewig
On 2010-05-04, Marco Faustinelli wrote: > I have to write an xml file from a csv file inside an ant script. The > way the csv lines are transformed depends on a very much complex > choice, so using XSLT is excluded. Please just trust me on this one. > My idea would be to split the csv files into