Re: AW: List of file names as arguments to a java task

2006-02-24 Thread Paul Pogonyshev
On 24 February 2006 15:08, ar wrote: > > Thanks for your answer. It's true I'm missing a little the Goggle reflex. > > Here's the complete solution to my problem. > > > > > > > > > > >

Re: conditional execution

2006-02-22 Thread Paul Pogonyshev
On 21 February 2006 23:52, Anderson, Rob (Global Trade) wrote: > If the existance of a file is your condition, use a combination of > , , > [...] Thanks, I already implemented it using macros and task. Making it the way you suggest would be kinda ugly in my case, since I need to repeat the same

Re: one more problem

2006-02-20 Thread Paul Pogonyshev
On 20 February 2006 16:04, Markus M. May wrote: > Hi, to get the Locale from the file you can use the propertyregexp-Command: > > input="${base.in.file}" > regexp="^(.*)[_]{1}(.*)\.class$$" > select="\2" > casesensitive="false" /> Tha

one more problem

2006-02-20 Thread Paul Pogonyshev
Hi, I'm stuck again :( I need to translate the following part of a shell script to Ant (with Ant-Contrib in place; using external `sed' is not an option, I want to minimize dependencies for Windows boxes): for PO_FILE in *.po; do LOCALE=$(echo "$PO_FILE" | sed -e 's/\.po$//') RESOURCE_FILE=

Re: AW: AW: AW: AW: AW: how to exec with a set of files as multiple arguments?

2006-02-17 Thread Paul Pogonyshev
On 17 February 2006 18:21, [EMAIL PROTECTED] wrote: > >> Really sure? Or is this invoked one _after_ the other? > > > >Pretty sure that is how apply-parallel works. The snippet > >below is !parallel... :) > > mmh :) > Ok, something to lern more ... > > I think Ant will create a new process

Re: conditional execution

2006-02-17 Thread Paul Pogonyshev
On 17 February 2006 17:55, Matt Benson wrote: > --- Paul Pogonyshev <[EMAIL PROTECTED]> > wrote: > > > On 17 February 2006 17:07, Burgess, Benjamin wrote: > > > Ant-contrib has an "if" task which you could use. > > > > > > http://ant-cont

Re: AW: AW: AW: AW: how to exec with a set of files as multiple arguments?

2006-02-17 Thread Paul Pogonyshev
On 17 February 2006 17:37, [EMAIL PROTECTED] wrote: > >No, with parallel="true" will also invoke the command > >once only. > > Really sure? Or is this invoked one _after_ the other? > > .java: > if (!parallel) { ^^^ There's a `not' here :) Paul --

Re: conditional execution

2006-02-17 Thread Paul Pogonyshev
On 17 February 2006 17:07, Burgess, Benjamin wrote: > Ant-contrib has an "if" task which you could use. > > http://ant-contrib.sourceforge.net/ > > However, the traditional Ant solution is to split each piece of > functionality into its own target, set properties based on condition, > and use the

Re: AW: AW: AW: how to exec with a set of files as multiple arguments?

2006-02-17 Thread Paul Pogonyshev
On 17 February 2006 17:17, [EMAIL PROTECTED] wrote: > > >BTW, I discovered that does > >exactly what I want... :) > > > ok, difference is that will invoke the executable for each > argument while > does this only once. No, with parallel="true" will also invoke the command once only. Paul

conditional execution

2006-02-17 Thread Paul Pogonyshev
Hi, Is it possible to do some sorts of conditional execution of tasks other than and scripts (require extensions)? I need things like if file exists, do this, else do that. Or, if files are equal (byte-wise), do something. Paul -

Re: AW: AW: how to exec with a set of files as multiple arguments?

2006-02-17 Thread Paul Pogonyshev
> >> > >> > >> > >> > >> > > > >Thanks, that works OK. is kind of deprecated, > >but I assume there is no other way. > > Manual sais > "It is highly recommended to avoid the line version when possible. Ant > > will try to split the command line in a way similar to what a (Unix)

absolute paths vs. relative paths

2006-02-17 Thread Paul Pogonyshev
Hi, I have one more question. How can I get relative paths instead of absolute ones? For instance, say I need to save the paths into a file. If I use absolute paths, it will be meaningless for someone on a different machine or with different home directory... Paul

Re: AW: how to exec with a set of files as multiple arguments?

2006-02-17 Thread Paul Pogonyshev
On 17 February 2006 15:08, [EMAIL PROTECTED] wrote: > > > > > Thanks, that works OK. is kind of deprecated, but I assume there is no other way. Thanks again. Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

how to exec with a set of files as multiple arguments?

2006-02-17 Thread Paul Pogonyshev
Hi, I need to execute a command with a large, not known in advance, number of files, each listed as separate argument. I have been unable to figure out how to do this with Ant. Roughly speaking, I want sth. like except that I don't know how