ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Walend <dwal...@users.sourceforge.net>
Subject Re: Help
Date Tue, 15 Jan 2002 13:52:20 GMT
Hi Rahul,

Hmmm... Try a file that looks like a java properties file. I think this
would do what you want:

foo=bar
foo.name=${foo}

If that doesn't work, try asking on the ant-user mailing list. There'll
be someone there who's used this feature in the last day or two who can
help you.

Hope that helps,

Dave


rnagpurkar@ebsdr.com wrote:

>Hi,
>I am trying to read a property file & use the properties to compile a list of 
>java files.
>
>    <target name="compile-shared" depends="BNPhase2-prepare">
>
>        <echo message=" " />
>        <echo message=" Compile files for shared ...  ${projectclient.name} " 
>/>
>        <echo message=" " />
>	<property file="shared_jar.cfg" />
>
>        <echo message="${foo.name}" />
>
>    </target>
>
>shared_jar.cfg has 
>
>name="foo" value="bar"
>name="foo.name" value="${foo}"
>
>I cannot get the ant to use the read property file. It reads it without any 
>errors but how do I use them ( the properties I mean )
>
>
>Regards
>Rahul Nagpurkar
>



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


Mime
View raw message