Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C8C859A2A for ; Sun, 4 Dec 2011 05:57:46 +0000 (UTC) Received: (qmail 68912 invoked by uid 500); 4 Dec 2011 05:57:44 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 68817 invoked by uid 500); 4 Dec 2011 05:57:33 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 36519 invoked by uid 99); 30 Nov 2011 20:58:09 -0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shmoldie@gmail.com designates 209.85.215.173 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=XQe2fG+H6TlJ5EZhIQ4PZIRINnfFMIxMRODcp539IUU=; b=Z0nvQ1sK/vXbqbWM9+2zyGC2u3fq2+Q2oxR7/1eV0coH0EmAAIozwlbIiMM2hPneMJ 9c455CZjGW2LJuFFx8JVy4j2dK5fOnPD5P6S8Ep/vA8S9MNG/EI4L0m62tA/0R9Dv14K UDQikJbRJlT5l69cgaVjzvTkhQd0CI9LJQXxM= MIME-Version: 1.0 Sender: shmoldie@gmail.com In-Reply-To: <1322686087.78797.YahooMailNeo@web65716.mail.ac4.yahoo.com> References: <1322679761.6365.YahooMailNeo@web65714.mail.ac4.yahoo.com> <87sjl5fjew.fsf@v35516.1blu.de> <1322686087.78797.YahooMailNeo@web65716.mail.ac4.yahoo.com> Date: Wed, 30 Nov 2011 15:57:42 -0500 X-Google-Sender-Auth: MB98pd3IAboPHrQRK2PjLSBiXVk Message-ID: Subject: Re: propertyfile task issues From: Jonathan Rosenberg To: Eric Fetzer , Ant Users List Content-Type: multipart/alternative; boundary=0016e6dedce2a8b62804b2f9fcf8 --0016e6dedce2a8b62804b2f9fcf8 Content-Type: text/plain; charset=ISO-8859-1 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" 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 > > > > > > > > > > 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 > 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-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org --0016e6dedce2a8b62804b2f9fcf8--