ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Weintraub" <qazw...@gmail.com>
Subject Re: Copy property from a property-file into an Ant-property
Date Thu, 14 Jun 2007 12:46:21 GMT
You only want a single property from the file? Why not simply:

    <property file="${file.name}"/>

If you are concerned that you might overwrite properties you don't
want to overwrite and you only want a select property, use a prefix to
prepend to all of the properties in the property file first:

    <property file="${file.name}" prefix="propfile"/>
    <property name="foo"  value="${propfile.foo}"/>



On 6/14/07, JasDA@web.de <JasDA@web.de> wrote:
> Hi,
>
> is it possible to copy the value from a property-file to an Ant-property?
>
> Regards,
> Jason
> __________________________________________________________________________
> Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach!
> Mehr Infos unter http://produkte.web.de/club/?mc=021131
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


-- 
--
David Weintraub
qazwart@gmail.com

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


Mime
View raw message