ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd Matzke <>
Subject RE: $${${}}
Date Tue, 14 Jan 2003 16:27:16 GMT
maybe one of these solutions may help. use an id for the properties and
create an help-property for the filter-value:

<project name="bsp004" default="main" basedir=".">

  <property name="application.environment" value="dev"/>
  <property name="" value="hello"       id="dev"/>
  <property name="application.production.property1" value="foo"

  <target name="main" >
    <property name="filter" refid="${application.environment}"/>


If you won't use a different id instead of the name, you can use the same
name and id for an property. but you will need a secondhelper property:

<project name="bsp005" default="main" basedir=".">

  <property name="application.environment" value="production"/>
  <property name="" value="hello"
  <property name="application.production.property1" value="foo"

  <target name="main" >
    <property name="help"
    <property name="filter" refid="${help}"/>




-----Original Message-----
From: []
Sent: Monday, January 13, 2003 6:57 PM
Subject: $${${}}

Hello all,
I would like to know if their is a way to do this with Ant: file:

build.xml file:
       <filter token="message" value="${application.

Thus the property would change according to the environment target.
Is it possible?

Thanks in advance,
Loïc Lefèvre

This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 


Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message