ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Fetzer <>
Subject Re: propertyfile task issues
Date Wed, 30 Nov 2011 20:48:07 GMT
I'm lost Stefan.  It's a java properties file, but doesn't have the : escaped when I check
it out.  Once I run "propertyfile" on it, it decides to change it because it knows better
than my developers?  This is for Flash Flex, so maybe the properties files are different? 
I'm not sure but this doesn't seem right to me.  In my opinion, Ant should ONLY change the
things I tell it to change.  To me, this is a kin to M$ autocorrect.  Here's the code snippet:
<project name="test" default="testIt">
 <target name="testIt">
      <!--Before calling the app build, set the version in the properties file-->
      <propertyfile file="./">
        <entry key="version" value=""/>
Run it with:
>ant -f test.xml
And I get
#Wed Nov 30 13:46:31 MST 2011version=

From: Stefan Bodewig <>
Sent: Wednesday, November 30, 2011 1:24 PM
Subject: Re: propertyfile task issues

On 2011-11-30, Eric Fetzer wrote:

> I'm having some issue with the propertyfile task. I'm simply trying to
> substitute a value for one property. For some reason, the propertyfile
> task is modifying everything with a :/ to be a \:/.

Colons must be escaped with a backslash in Java property files.

> I've attached a simple repro.

The list doesn't like attachements.


To unsubscribe, e-mail:
For additional commands, e-mail:
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message