Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 12417 invoked from network); 12 Aug 2008 16:18:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Aug 2008 16:18:00 -0000 Received: (qmail 51977 invoked by uid 500); 12 Aug 2008 16:17:55 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 51942 invoked by uid 500); 12 Aug 2008 16:17:55 -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 51931 invoked by uid 99); 12 Aug 2008 16:17:55 -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 09:17:55 -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: domain of evgeny.zislis@gmail.com designates 66.249.92.174 as permitted sender) Received: from [66.249.92.174] (HELO ug-out-1314.google.com) (66.249.92.174) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Aug 2008 16:16:59 +0000 Received: by ug-out-1314.google.com with SMTP id o2so393239uge.31 for ; Tue, 12 Aug 2008 09:17:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=hAxUfcsCBkj6rass9H7LAT4urNyW8zbxI0POqnvGN7c=; b=FAwpmmr+4O8OYREuT/gLehqc2MlbTbluUPciI+5FKagNgJucbgkYCYZpcUEEK8BHvt gdU8bZ5d26orRRwWZ+N+jYiOT6YEgHlgBE2Gyhx0uOLYFNImFD12VGQdIvttavGAf0VR QyOd7OeW34Cqpoh5cNYaaYz+jRmp4R6WZaz5s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=uY4W+HOCWOI+1ZohB2P/mvpcqKP/9IoBKSjPlCcOsq9nnYsXs7ajUnG/QE4j2eIFEt 46fdwLUAAk4OgLJIcWmkajHKTVCmYrl1JIh0z6vVB9R3eN6+wXEBQcr2tL2Y4KLSXahR Xv5Xhy1TaG66orB32hUoIq0iUwdhX4OtkA0oE= Received: by 10.67.106.19 with SMTP id i19mr4284121ugm.81.1218557845640; Tue, 12 Aug 2008 09:17:25 -0700 (PDT) Received: by 10.66.217.13 with HTTP; Tue, 12 Aug 2008 09:17:25 -0700 (PDT) Message-ID: Date: Tue, 12 Aug 2008 19:17:25 +0300 From: Evgeny To: "Ant Users List" Subject: Re: A way to create empty files In-Reply-To: <960253.67114.qm@web55108.mail.re4.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <960253.67114.qm@web55108.mail.re4.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Oy, this looks complex ... but imho it's better than having multiple targets. Thanks. On Tue, Aug 12, 2008 at 6:13 PM, Matt Benson wrote: > Or, barring all these other suggestions, you could > just use Ant >= 1.7 and write: > > > > > xmlns="antlib:org.apache.tools.ant.types.resources.selectors"> > > > > > > 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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org