Skip to main content

ANT_OPTS not available a System Properties

  2 posts   Feedicon  
Replies: 1 - Last Post: March 12, 2011 02:16
by: Winston Prakash
showing 1 - 2 of 2
Posted: March 09, 2011 12:11 by paulnnosh
Hi,

I'm using Hudson to build my project using ANT.

I need to set a System Property that will be available to the underlying Junit Tests via System.getProperty()...

When I used Team City I simply set the property in the ANT_OPTS and it ispicked up.

Under the Hudson configuration I have set the Java Options to
Dproperty.name="blah". When the tests run this is showing as a null value when I test for the property.

Can anybody explain why this is and what I need to do to fix it. I really like Hudson but at the moment I'm stuck with Team City as I don't have this problem using it.

Many Thanks
Posted: March 12, 2011 02:16 by Winston Prakash
In the ant Invoke Ant, click on the advanced button and set the properties as name1=value1
Replies: 1 - Last Post: March 12, 2011 02:16
by: Winston Prakash
 
 
Close
loading
Please Confirm
Close