Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 10806 invoked from network); 15 Aug 2002 15:19:41 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 15 Aug 2002 15:19:41 -0000 Received: (qmail 6654 invoked by uid 97); 15 Aug 2002 15:19:55 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 6607 invoked by uid 97); 15 Aug 2002 15:19:54 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 6590 invoked by uid 98); 15 Aug 2002 15:19:53 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) From: "Geoff Meakin" To: "Ant Users List" Subject: RE: move dir if available Date: Thu, 15 Aug 2002 16:19:24 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 In-Reply-To: <2DAFF28F562AD4119B0E00508B5F049F0222A3A9@AMSEXCH01> Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I seem to remember there's an task-nester in ant-contrib (or elsewhere) which allows this kind of thing. Its certainly been mentioned before on the ant-user list (not only since I've brought it up in the past ;-) ) I decided not to use it however, opting to use the task method instead. If you're interested, take a look through the archives. Here's an extract from -DD to prove it :) [..snip] ....to the **conditional tasks** from ant-contrib on SourceForge. They have the advantage to be looked over by ANT commiters like Stefan Bodewig (I believe). They do require ANT 1.5 beta for proper operation I've heard too. They also are build by the Apache/Jakarta GUMP build if I recall a post from Stefan correctly. [..snip] Also Klaus Petzold posted his own task to this list too. I dont think this is included in the core of ANT however. Cheers -Geoff -----Original Message----- From: Tibor Strausz [mailto:Tibor.Strausz@tridion.com] Sent: 15 August 2002 03:52 PM To: 'Ant Users List' Subject: RE: move dir if available ok like the hack :-) genarly speaking is it posible to skip a part of a target when some property is true or set or someting?? tibi > -----Original Message----- > From: Geoff Meakin [mailto:geoffm@isocra.com] > Sent: Thursday, August 15, 2002 4:39 PM > To: Ant Users List > Subject: RE: move dir if available > > > Well as a bit of a hack you can move a null directory. > That is > > > > > > Which will do nothing (but it does attempt to self-referential move. > > How does this help, you might ask? > Well you can then use your to define a property to be null > if the dir doesnt exist, or the dir name if it does, and then > apply this move task to it. This saves you doing another target. > > Cheers > -Geoff > > > -- > To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: