AW: Passing command Line args for a list

2016-03-07 Thread jhm
Something like that? Jan ant -Dantcontrib.jar=path/to/ant-contrib-1.0b3.jar -Dagent.list="node1,node2" -Dnode1.description=ServerA -Dnode2.description=AnotherServer starting Agent @{agent}: @{description}

Re: Passing command Line args for a list

2016-03-07 Thread Scot P. Floess
Didn't hear back - did you get you figure it out? On Sat, 5 Mar 2016, Scot P. Floess wrote: I'm confused as you are asking about using command line params (via the -D) but then reusing those for the input task. As an example from your post: ant -f build.xml addNodes -Dagents="d01, d02, d0

Re: XSL transformation with Ant: sorting a list

2016-03-07 Thread Al Le
If the classpath is not identical, you could get a different transform provider. For example, we use Saxon as our provider, overriding what is provided in the runtime library. Thank you for the hint! I downloaded the latest xalan distribution and executed the ant script with the "classpath" a

Re: Aw: Re: XSL transformation with Ant: sorting a list

2016-03-07 Thread Earl Hood
On Mar 7, 2016 7:55 AM, wrote: > > If you are using the same JVM and simply executing the XSL differently, I don't see why not... If the classpath is not identical, you could get a different transform provider. For example, we use Saxon as our provider, overriding what is provided in the runtime

Re: Aw: Re: XSL transformation with Ant: sorting a list

2016-03-07 Thread sfloess
Al, It wasn't apparent to me why there'd be a difference... If you are using the same JVM and simply executing the XSL differently, I don't see why not... I mean once you kick of the XSL I can't imagine there is something different in running from Ant vs your Java app. I spent a number of ye

Re: Aw: XSL transformation with Ant: sorting a list

2016-03-07 Thread Klaus Malorny
On 07.03.2016 12:01, Al Le wrote: It does not occur if I perform it via a Java program I have to correct myself. It tried a java program in different JVMs, and it gives me different results. In one case it gives the correct result, in other cases still the wrong result is delivered. I could not

Aw: Re: XSL transformation with Ant: sorting a list

2016-03-07 Thread Al Le
Hello Scot, thanks for a quick response! > first you are killing yourself in the way you XSLT is > written > [. . .] > You are trying to do the work of the templating engine in your XSLT :) Yes, I know this is a "procedural" way of doing things and maybe not the best. But the example is just a

Re: XSL transformation with Ant: sorting a list

2016-03-07 Thread Scot P. Floess
So a few things - first you are killing yourself in the way you XSLT is written. Personally, I'd do: xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

Aw: XSL transformation with Ant: sorting a list

2016-03-07 Thread Al Le
> It does not occur if I perform it via a Java program I have to correct myself. It tried a java program in different JVMs, and it gives me different results. In one case it gives the correct result, in other cases still the wrong result is delivered. I could not find out yet what the differenc