Closed tomkralidis closed 9 years ago
That would be straightforward. You may have noticed that the main method currently just uses the default location (user.home
), but it could also be gleaned from a command line option.
e.g. ets-cat30-${version}-aio.jar -o $TMPDIR my-csw.xml
No such luck against master:
$ java -jar ets-cat30/target/ets-cat30-0.9-SNAPSHOT-aio.jar -o foo/ csw3-run-props.xml
Exception in thread "main" java.lang.IllegalArgumentException: Test run arguments not found at -o
at org.opengis.cite.cat30.TestNGController.main(TestNGController.java:56)
Trying like this:
$ java -jar ets-cat30/target/ets-cat30-0.9-SNAPSHOT-aio.jar csw3-run-props.xml -o foo/
Runs as expected but -o
is ignored.
No changes committed yet. My example was intended as a proposal. If that option is fine I'll add it this week.
:+1:
ets-cat30-${version}-aio.jar [-o|--outputDir $TMPDIR] [test-run-props.xml]
works, thanks @rjmartell!
Running output via command line via
java -jar ets-cat30-${version}-aio.jar my-csw.xml
always writes out test outputs to a directory under$HOME/testng/
. Can this be modified via command line argument to write to a user specified directory?