logo       

RE: loading ANT propetyfile using JVMarg attribute: msg#00078

java.cruise-control.user

Subject: RE: loading ANT propetyfile using JVMarg attribute

 
you need to use the property element instead of the jvmarg element.
 
 
  <ant ...>
    <property name="propertyfile" value="local.properties" />
  </ant>
 
(You want "java org.apache.tools.ant.Main -Dpropertyfile=local.properties ..." but using jvmarg gives you "java -Dpropertyfile=local.properties org.apache.tools.ant.Main ...". )
 
Jtf
-----Original Message-----
From: cruisecontrol-user-admin@xxxxxxxxxxxxxxxxxxxxx [mailto:cruisecontrol-user-admin@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of satyapal guduru
Sent: Thursday, December 18, 2003 10:50 AM
To: cruisecontrol-user@xxxxxxxxxxxxxxxxxxxxx
Subject: [Cruisecontrol-user] loading ANT propetyfile using JVMarg attribute

I have a property file for ant which consists of all properties related to my build script. I am trying to load the propertyfile using JVMarg attribute. Please suggest me a way to load the propertyfile.
I tried in following in way, it is not working.
Please suggest me a way to load the property file with the ant task.
<schedule interval="30">
 <ant buildfile="c:\build\build.xml" target="build" time="1450">
  <JVMArg arg="-Dpropertyfile=local.properties">
  </JVMArg>
 </ant>
<schedule>
I appreciate your help.
Satyapal


Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise