Are you saying that the file is being modified ny Ant? Seems impossible. You view the file just before and after running Ant? On Nov 30, 2011 3:48 PM, "Eric Fetzer" <elstonk...@yahoo.com> wrote:
> 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: > > test.xml > > <project name="test" default="testIt"> > <target name="testIt"> > <!--Before calling the app build, set the version in the properties > file--> > <propertyfile file="./test.properties"> > <entry key="version" value="3.0.0.99"/> > </propertyfile> > </target> > </project > > test.properties > > version=3.0.0.98 > myURL=http://my.url.com > myDIR=C:/goofyPath > otherURL=http://other.url.com > > Run it with: > > >ant -f test.xml > > And I get test.properties: > > #Wed Nov 30 13:46:31 MST 2011version=3.0.0.99 > myURL=http\://my.url.com > myDIR=C\:/goofyPath > otherURL=http\://other.url.com > > > > ________________________________ > From: Stefan Bodewig <bode...@apache.org> > To: user@ant.apache.org > 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. > > Stefan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org