Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 82163 invoked from network); 12 Aug 2008 15:14:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Aug 2008 15:14:30 -0000 Received: (qmail 24897 invoked by uid 500); 12 Aug 2008 15:14:13 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 24867 invoked by uid 500); 12 Aug 2008 15:14:13 -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 24848 invoked by uid 99); 12 Aug 2008 15:14:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Aug 2008 08:14:13 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [206.190.58.157] (HELO web55108.mail.re4.yahoo.com) (206.190.58.157) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 12 Aug 2008 15:13:16 +0000 Received: (qmail 68201 invoked by uid 60001); 12 Aug 2008 15:13:43 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=G6iaZYY5kKHeyqMvQbVyx5ZtREt4U1uno9LIgJ6PZ3KJK330kzS2n6xxx4zzBjPsUm29H2QhMTBONt7/RV85p9r7fPyELvgMrtU4wpKaXIl012WU36rPQG76BXXRjCnn/C3qtuFNYL2F9cDSxTc2XN4CZZb/p7DuQZ32j0nF9Kk=; X-YMail-OSG: vqwkQgYVM1l0Nxbs_btHdmTXFFtTgwpBYeJmVTbq2pPuwFFe92JcniB9HcilZy0GNq6K2T1EOdnN3XioS5_n7Jdmm8qlY5jTejUKOeIG0H7FW64UcJXkXF8r.Zo8W6LZJVI9YqHTJVXFy.fQ3JKYndU- Received: from [12.68.231.140] by web55108.mail.re4.yahoo.com via HTTP; Tue, 12 Aug 2008 08:13:42 PDT Date: Tue, 12 Aug 2008 08:13:42 -0700 (PDT) From: Matt Benson Subject: RE: A way to create empty files To: Ant Users List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <960253.67114.qm@web55108.mail.re4.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Or, barring all these other suggestions, you could just use Ant >= 1.7 and write: Note that the componentdef addition to Ant 1.8 will obviate the need for the ns declaration of the not (and, by inheritance, the exists) element. Sorry for the delay in providing this solution, Matt --- Jim Showalter wrote: > You could also write a java program to add the > functionality and then add it in via taskdef. The > downside is that your build file would not work on > other platforms unless you included the class file > that implements the task. > > Jim > > > -----Original Message----- > From: Evgeny [mailto:evgeny.zislis@gmail.com] > Sent: Tuesday, August 12, 2008 3:53 AM > To: Ant Users List > Subject: Re: A way to create empty files > > > It's not that I am worried it wont work, just too > many targets makes > it all messy. And then even when I myself try to > decipher what goes > where, I need to follow a huge tree of logic in > dependencies. Since > Ant is more of a functional language, I would rather > avoid all that > and just write one statement like dontchangetimestamponexistingfile=true"/> or > something. > > Ahh, well. > > On Mon, Aug 11, 2008 at 10:48 PM, EJ Ciramella > wrote: > > Nope, you will have this additional target that > tests for availability, > > then your "touch" target will have an if/unless > (depending on how you > > configure your "availability" target) condition. > > > > This is typical. > > > > You shouldn't be too worried about many targets > springing up all over > > the place, as long as you don't provide a > description, they won't show > > during "ant -projecthelp" (which should be what > people are using to see > > what targets exist in a particular build file). > > > > -----Original Message----- > > From: Evgeny [mailto:evgeny.zislis@gmail.com] > > Sent: Monday, August 11, 2008 9:29 AM > > To: Ant Users List > > Subject: Re: A way to create empty files > > > > So there is no way to do this other than creating > an additional target > > with an "if" attribute? > > > > On Mon, Aug 11, 2008 at 3:09 PM, Kevin Jackson > > > wrote: > >> I think you want to look at the Available task > >> > >> > http://ant.apache.org/manual/CoreTasks/available.html > >> > >> Thanks, > >> Kev > >> > >> > --------------------------------------------------------------------- > >> To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > >> For additional commands, e-mail: > user-help@ant.apache.org > >> > >> > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > > For additional commands, e-mail: > user-help@ant.apache.org > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > > For additional commands, e-mail: > user-help@ant.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > For additional commands, e-mail: > user-help@ant.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > For additional commands, e-mail: > user-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org