ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: Escaping ant property values
Date Wed, 08 Dec 2004 20:03:48 GMT
Quoting Matt Benson <gudnabrsam@yahoo.com>:

> http://ant.apache.org/faq.html#propertyvalue-as-name-for-property
>

This is not mentioned in the FAQ, but this can also be done in a properties file
as follows...

my.auto-deploy=$${${my.server}.auto-deploy}


Maybe one of the committers can add it to the FAQ?


Jake

> -Matt
> --- Laran Evans <lc278@cornell.edu> wrote:
>
> > Is it possible to escape ant property values?
> >
> > I'd like to do something like this:
> >
> > ---
> > <property name="my.server" value="weblogic"/>
> >
> > <property name="weblogic.auto-deploy"
> > value="C:/bea/applications"/>
> > <property name="tomcat.auto-deploy"
> > value="C:/tomcat/work"/>
> >
> > <property name="my.auto-deploy"
> > value="${${my.server}.auto-deploy}"/>
> >
> > ---
> >
> > Any suggestions?
> >
> > --
> > Laran Evans - Cornell University
> > p: (607) 255-6864 f: (607) 255-0327
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> > user-help@ant.apache.org
> >
> >
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - 250MB free storage. Do more. Manage less.
> http://info.mail.yahoo.com/mail_250
>
> ---------------------------------------------------------------------
> 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