ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: build.properties
Date Wed, 28 Jun 2006 11:58:47 GMT
Ant cant find the property file because you set the basedir="../"

Jan 

>-----Urspr√ľngliche Nachricht-----
>Von: Raghuveer [mailto:raghuveerv@infotechsw.com] 
>Gesendet: Mittwoch, 28. Juni 2006 13:40
>An: 'Ant Users List'
>Betreff: RE: build.properties
>
>I made follwoing changes 
>
>In build.properties
>-------------
>project.title=Test Web Application
>project.version = 1.3
>distpath.project = F:/oc4j_extended/j2ee/home/applications
>
>In build.xml
>-------------
><project name="test"  basedir="../" default="all"> <property 
>file="build.properties"/>
>
>	 <echo>${project.title}</echo>
>	  <echo>${project.version}</echo>
>	   <echo>${distpath.project}</echo>
>---------------------------------------
>when i run ant i am not getting the values from 
>build.properties ,instead below output is coming  [echo] 
>${project.title}  [echo] ${project.version}  [echo] ${distpath.project}
>
>Finally i am getting BUIL FAILED message
>
>
>-----Original Message-----
>From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
>Sent: Wednesday, June 28, 2006 1:06 PM
>To: user@ant.apache.org; raghuveerv@infotechsw.com
>Subject: AW: build.properties
>
>
>>In my build.xml if i want to get the the value of "distpath.project" 
>>(path of my web application context in OC4J
>>server) from build.properties .
>>
>>What Changes i need to avil this requirement ?
>>
>>-------------------------
>><project name="testapp"  basedir="../" default="all">
>>
>><!-- Project settings -->
>>    <property name="project.title" value="Test Web application"/>
>>    <property name="project.version" value="1.0"/>
>>    <property name="distpath.project"
>>value="F:/oc4j_extended/j2ee/home/applications"/>
>
>
>build.xml
>---------
><project ...>
>    <property file="build.properties"/>
></project>
>
>
>build.properties
>----------------
>project.title=Test Web application
>project.version=1.0
>distpath.project=F:/oc4j_extended/j2ee/home/applications
>
>
>
>Inside the buildfile you have
>    <property name="NAME" value="VALUE"/> and with property 
>files you load these mappings
>    <property file=""/>
>    NAME=VALUE # COMMENT
>
>
>
>Jan
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
>additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message