How to define a path according to a property
Hi: I have a requirement to define a path according to a property. the command line: ant compile will use the path : and the command line: ant -Dtest=true compile will use the following path: There are many compile targets will use the path: test.lib.path.id, so it would be better to define the path a little dynamically, like: ... ... but I think path does not support this attribute, right? -- Thanks and Best Regards aoi...@gmail.com - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
How to concat string in ant
Hi: I want to concat some strings from a list to one string line. like: for example above, if the list of ${strs.list} is: {a, b, c}, how can I get a string with value: string = "a b c" ? do you guys know what is better way to implement this WITHOUT writing own Task? -- Thanks and Best Regards aoi...@gmail.com - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
How to run java source code in ant target
HI: Is there an existed ant target to execute plain java source code? I need to run one java statement before junit target, I don`t want to create a separated main class for this, it is possible to run the code directly? like: System.out.println("execute plain Java source code in ant target"); -- Thanks and Best Regards aoi...@gmail.com - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
Re: How to run java source code in ant target
"http://ant.apache.org/manual/OptionalTasks/script.html"; this works for me, thanks Thanks Jan too, but the script is much simpler. 2009/9/4 : > Use +. > > Jan > >>-Ursprüngliche Nachricht- >>Von: Avlesh Singh [mailto:avl...@gmail.com] >>Gesendet: Freitag, 4. September 2009 10:27 >>An: Ant Users List >>Betreff: Re: How to run java source code in ant target >> >>Looking for this? - >>http://ant.apache.org/manual/OptionalTasks/script.html >> >>Cheers >>Avlesh >> >>On Fri, Sep 4, 2009 at 1:51 PM, Gao Lin wrote: >> >>> HI: >>> >>> Is there an existed ant target to execute plain java source code? >>> >>> I need to run one java statement before junit target, I don`t want >>> to create a separated main class for this, it is possible to run the >>> code directly? >>> >>> like: >>> >>> >>> >>> System.out.println("execute plain Java source code in ant >>> target"); >>> >>> >>> >>> -- >>> Thanks and Best Regards >>> >>> aoi...@gmail.com >>> >>> - >>> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org >>> For additional commands, e-mail: user-h...@ant.apache.org >>> >>> >> > > - > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > > -- Thanks and Best Regards aoi...@gmail.com - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org
How to specify other JUnitTestRunner in junit task
Hi: Is it possible to specify own JUnitTestRunner instead of org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner in JunitTask ? If possible, in which version it will work. I need my own JUnitTestRunner to execute extra codes before each test case executed. -- Thanks and Best Regards aoi...@gmail.com - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org