Platform: Intel Pentium M, Ubuntu Dapper
maven 2.0.4
maven-surefire-plugin 2.3
In a JUnit test, I use
System.getProperty("java.io.tmpdir");
to find the system temp dir.
This works fine when running the test from eclipse as a JUnit test run
config. But the test fails when running under surefire.
The test outputs a file and reads it back, writes it back out again,
and compares the results, to test the input and output of a storage
format.
Under surefire, the test complains that it can't find the first test
file (the one that's first written out), from the target/tmpdir
directory of the maven module's directory.
However when I look at the contents of the target directory, after
running "mvn install", there is no tmpdir subdirectory there. Only
the subdirectories
classes
surefire-reports
test-classes
and the -tests.jar and .jar resulting from the build.
So it looks like the target/tmpdir isn't created. Is there some
setting I have to do to make it appear?
I don't see anything relevant to "tmp" or "temp" here:
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html
Thanx!
- Steinar
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]