ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Passing sysproperties from a file
Date Tue, 21 Mar 2006 09:04:46 GMT
Thanks for the replies,

I solved this a while ago using, as mentioned, a combination of
propertyset, loading property file with prefix and a glob mapper

  <property name="" value="APPSPECIFIC" /> <!--
the prefix -->
  <property file="${}"
prefix="${}" />

  <propertyset id="app.specific.sysproperties">
    <propertyref prefix="${}" />
    <mapper type="glob" from="${}*" to="*" />

  <!-- in the Java target -->
  <syspropertyset refid="app.specific.sysproperties" />

Not as clean as I would like, still think it might be nice to be able to
have <sysproperty file=""/> include all props in as Java properties...


-----Original Message-----
From: Dominique Devienne [] 
Sent: 18 March 2006 03:46
To: Ant Users List
Subject: Re: Passing sysproperties from a file

> I'm trying to include a set of properties, taken from a file, in the 
> Java task as system properties.
> I have been fiddling around with various combinations of <property 
> file="file.props" id="jeff" />  With <sysproperty refid="jeff" /> in 
> the Java task, but with no joy.
> Anybody know how to achieve this? I'm sure it must be possible.

Have you looked into <propertyset>? --DD

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

Visit our website at

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.

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

View raw message