Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 40602 invoked from network); 2 Nov 2010 14:34:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 14:34:57 -0000 Received: (qmail 69101 invoked by uid 500); 2 Nov 2010 14:35:28 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 68895 invoked by uid 500); 2 Nov 2010 14:35:26 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 68887 invoked by uid 99); 2 Nov 2010 14:35:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 14:35:25 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=MSGID_MULTIPLE_AT,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [67.225.240.231] (HELO host2.neologica.it) (67.225.240.231) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 14:35:19 +0000 Received: from host29-83-static.28-87-b.business.telecomitalia.it ([87.28.83.29]:50414 helo=devel02) by host2.neologica.it with esmtpa (Exim 4.69) (envelope-from ) id 1PDHwv-0002dQ-59 for dev@ant.apache.org; Tue, 02 Nov 2010 10:34:57 -0400 From: "Marco Sambin - NeoLogica" To: "'Ant Developers List'" References: In-Reply-To: Subject: RE: "Replace" ANT task overwrites read-only files Date: Tue, 2 Nov 2010 15:34:56 +0100 Message-ID: <017501cb7a9b$20d37680$627a6380$@sambin@neologica.it> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Act24NlDmfK/OWnYRL+yCMHc0EFkiQDuW89Q Content-Language: it X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2.neologica.it X-AntiAbuse: Original Domain - ant.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - neologica.it Hi Jon, please consider that I am making a minimal usage of this "conditional compilation" facility in my project. In those limited cases, it is = extremely practical to use, as I can maintain some source files as "shared" across = two projects, even though they need some very small variations in each = project. In any case, the issue of the task is there: it shall NOT act = on read-only files. Regards, Marco -----Original Message----- From: Jon Stevens [mailto:latchkey@gmail.com]=20 Sent: gioved=EC 28 ottobre 2010 22:44 To: Ant Developers List Subject: Re: "Replace" ANT task overwrites read-only files Sounds like an overcomplicated, brittle and error prone way to develop = code. jon On Thu, Oct 28, 2010 at 2:51 AM, Marco Sambin - NeoLogica < marco.sambin@neologica.it> wrote: > Hi. > > I am using a ANT task in my build.xml in order to implement = a > kind > of "conditional compilation" in my Netbeans Java project. > > Replacing works as expected, except for one point: it is able to = replace > strings also on read-only files (which then become read-write after > replace). This is not a desired behavior, in my opinion (at least, not = by > default), and it causes issues with our source version control system. > > > > I think should FAIL on read-only files by default. You may = want > to > consider adding a "force" attribute, such as for the task, in = order > to force replace on read-only files. > > > > Any comments on this would be greatly appreciated. > > > > Regards, > > > > Marco Sambin > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org