Replying to my own message: I found an example of a mapper that did what I
wanted to create a string "foo.jar bar.jar baz.jar". Then I was cooking
with gas, and I used the DEPRECATED form
<java args="positional-args ${mymappedlist}">
It's pretty ugly because in addition to the mapped list there are several
positional arguments that have to be specified...
Please undeprecate this usage. Now I get a warning in my build. But I
can't see how else to do it.
Judy Anderson wrote:
>
> One of our steps involves calling a Java program which takes a number of
> arguments, and the last few are varargs, for lack of a better description.
> I have a list, e.g., "foo,bar,baz", in a property, which should be mapped
> to foo.jar, bar.jar, and baz.jar as the final arguments. I spent a little
> time trying to figure out how to make some kind of a mapper get the ".jar"
> appended (unsuccessfully, if someone wants to help me decode the
> documentation about those), but then I suddenly had the realization that I
> wasn't going to be able to pass them to Java in the end, because I don't
> have a way to construct an unknown number of <arg> elements.
>
> Or do I and I just haven't found it?
>
> Judy Anderson
> Rocket Software
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Variable-numbers-of-%3Carg%3Es-to-%3Cjava%3E-tp15073853p15075373.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]