How to add system property equivalent to java -D in Ant

Posted by Shervin on Stack Overflow See other posts from Stack Overflow or by Shervin
Published on 2010-03-04T10:13:56Z Indexed on 2010/03/12 11:17 UTC
Read the original article Hit count: 359

Filed under:
|
|
|

Hi.

I need to set java -Djava.library.path=/some/path and I want to do it when I am running my ant script, building my jar.

I think I have to use

<sysproperty key="java.library.path" value="/some/path"/>

but it doesnt work. I cannot make the syntax work. The only thing I have Googled and found is sysproperty in conjunction with

 <java classname>

but that doesnt make any sense to me.

I am not sure if this is relevant, but I am using ant to create a ear and deploying this ear in JBoss.

© Stack Overflow or respective owner

Related posts about ant

Related posts about java