maven, how to set system properties?

J

Jon Haugsand

I'm new to maven, and I wonder how one can set java system properties
in a maven project? In particular I have a local temporary directory
in my project tree:

project/
+ src
+ data
+ target
+ tmp
and so on

So when I need a new temporary file, using

File.createTempFile("xxx","data");

I get a file in java.io.tmpdir which is /tmp. I should like to set it
to the tmp directory listed above. The following magic in
build.properties does not work:

java.io.tmpdir=${basedir}/tmp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top