You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jeroen Breedveld <j_...@hotmail.com> on 2000/08/17 15:07:06 UTC

newbie: properties question

Hi,

Are the properties you set in a build file also available for an java 
program you start with the java task?
Normally you would supply the system properties by using:

java -Dpath_to_file_with_properties myproject

The file path_to_file_with_properties would have the format as defined by 
the file used in the class java.util.Properties.

greetings jeroen
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


RE: newbie: properties question

Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
Jeroen,

It depends :-)

If you fork the java task then the properties will not be available. If you
do not fork then the System object will contain the properties and be
available to the class that is run.

Conor

> -----Original Message-----
> From: Jeroen Breedveld [mailto:j_breedveld@hotmail.com]
> Sent: Thursday, 17 August 2000 23:07
> To: ant-user@jakarta.apache.org
> Subject: newbie: properties question
>
>
> Hi,
>
> Are the properties you set in a build file also available for an java
> program you start with the java task?
> Normally you would supply the system properties by using:
>
> java -Dpath_to_file_with_properties myproject
>
> The file path_to_file_with_properties would have the format as defined by
> the file used in the class java.util.Properties.
>
> greetings jeroen
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>