ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Brooks <>
Subject Using URLs as values in a properties file
Date Tue, 10 Jul 2001 19:00:55 GMT

I'm trying to use Ant to automatically build properties files for my

I have a target which contains the following:

   <!-- Modify the properties file   -->
      comment="Properties file for this application">
      <entry  key="defaultXMLLocation" 
              value="${weburl}${}Default.xml" />
      <entry  key="xslLocation" 
              value="${weburl}stylesheets/${}.xsl" />

...what I'm getting when I run this target is a properties file that
looks like this:

#Properties file for this application
#Tue Jul 9 02:32:42 PDT 2001

The docs for the <propertyfile> task mention something about "slashes
conform to the expectations of the Properties class", but is there any
way to get rid of them in the final file so that the application,
which reads this file and uses the values of 'defaultXMLLocation' and
'xslLocation' doesn't choke?

Thanks in advance. 


View raw message