Re: Better alternative than using foreach, for and if/then/else?

2010-05-05 Thread Stefan Bodewig
On 2010-05-05, Bailey, Darragh wrote: > 1) Is for/foreach the only real option for what I'm attempting to > accomplish here in building multiple end targets based on the contents > of properties? I'd recommend writing a custom task for this rather than trying to implement it in XML. Using Ant's

RE: Better alternative than using foreach, for and if/then/else?

2010-05-05 Thread Martin Gainty
unfortunately properties are immutable so that wont work i would suggest using variable instead http://ant-contrib.sourceforge.net/tasks/tasks/variable_task.html Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentiali

publish ivy.xml that contains property refs using ant

2010-05-05 Thread RudyB
I have a parent ant build.xml that includes a publish task to publish its child projects. The parent dir has and ivysettings.xml file which loads an ivy.properties file that define the organisation and rev to be used when publishing the children. Each child has its own ivy.xml which and ivysetti

RE: Better alternative than using foreach, for and if/then/else?

2010-05-05 Thread Bailey, Darragh
> -Original Message- > From: Peter Reilly [mailto:peter.kitt.rei...@gmail.com] > Sent: 05 May 2010 14:46 > To: Ant Users List > Subject: Re: Better alternative than using foreach, for and > if/then/else? > > You need to use ant 1.8 and the task. > declares that a property is local to

Re: Better alternative than using foreach, for and if/then/else?

2010-05-05 Thread Peter Reilly
You need to use ant 1.8 and the task. declares that a property is local to the current scope, as defined by the enclosing or see: http://ant.apache.org/manual/CoreTasks/local.html

Better alternative than using foreach, for and if/then/else?

2010-05-05 Thread Bailey, Darragh
Have recently just started using Ant, with the goal to using it as the default build tool across an entire project. While most of the project will be java based, there are a few parts that won't be and I'm trying to make ant work as effectively as possible for these sections. One of them just

Re: Getting directory/path information from a file

2010-05-05 Thread Stefan Bodewig
On 2010-05-05, kim1 wrote: > 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. If there is one - you can check with you can use to get the absolute pathname. St