AW: editstring macro

2013-05-14 Thread jhm
Have you tried Ant Props? http://ant.apache.org/antlibs/props/index.html https://svn.apache.org/repos/asf/ant/antlibs/props/trunk/src/tests/antunit/s tringops-test.xml - testReplaceFirst - testReplaceAll - testPackageMapping Jan > -Ursprüngliche Nachricht- > Von: Peter West [mailto:li...@

editstring macro

2013-05-14 Thread Peter West
I have posted a discussion and code for a macro to edit a string value, placing the result into a property. I'm sure various people have done the same sort of thing before, but this might be a handy reference. http://codepulsive.blogspot.com.au/2013/05/ant-edit-property-values.html An example

AW: How to run a single junit test method with ant

2013-05-14 Thread jhm
Here is a skeleton which could be what you need. ant test -Dtestclass=xy -Dtestmethod=xy : runs the testmethod in that test class ant test -Dtestclass=xy : runs all tests in that test class ant test-Dtestmethod=xy : invalid as the class must be