Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 50221 invoked by uid 500); 20 Aug 2003 01:09:22 -0000 Mailing-List: contact user-help@ant.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 user@ant.apache.org Received: (qmail 49927 invoked from network); 20 Aug 2003 01:09:11 -0000 Received: from mailhost2.cnf.com (HELO ljcqs053.cnf.com) (63.230.177.24) by daedalus.apache.org with SMTP; 20 Aug 2003 01:09:11 -0000 Received: from cnfqs039.cnf.com (localhost [127.0.0.1]) by ljcqs053.cnf.com (Postfix) with ESMTP id 139024BC for ; Tue, 19 Aug 2003 16:26:09 -0700 (PDT) Received: by cnfqs039.cnf.prod.cnf.com with Internet Mail Service (5.5.2653.19) id ; Tue, 19 Aug 2003 16:26:03 -0700 Message-ID: <25E622D843625C40BE0EEC150B437C1B27CDB6@cnfqe029.cnf.prod.cnf.com> From: "Anderson, Robert H - MWT" To: 'Ant Users List' Subject: RE: checking if a directory exists Date: Tue, 19 Aug 2003 16:26:03 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N task should work for this purpose. -Rob Anderson -----Original Message----- From: Vikas Phonsa [mailto:VPhonsa@suz.com] Sent: Tuesday, August 19, 2003 3:38 PM To: 'Ant Users List' Subject: checking if a directory exists Hi What task do u use to find out if a directory exists. I need to create it if it doesn't exist. Vikas -----Original Message----- From: Matt Benson [mailto:gudnabrsam@yahoo.com] Sent: Tuesday, August 19, 2003 2:49 PM To: Ant Users List Subject: RE: Antcall or depends I believe it is intentional that the properties are one-way. Let's back up. What precisely are you trying to catch in your try-catch block? -Matt --- Roman Rytov wrote: > It's exactly what I do but what's the point? It's > done intentionally or > a matter of implementation and if so any change is > coming in 1.6? > > > -----Original Message----- > > From: Matt Benson [mailto:gudnabrsam@yahoo.com] > > Sent: Tuesday, August 19, 2003 23:52 PM > > To: Ant Users List > > Subject: RE: Antcall or depends > > > > One quick hack might be to write the "answer" to a > file and > > load it back using or file="x" /> > > if you need multiple data. > > You could even send the filename as an > property. > > > > -Matt > > > > --- Roman Rytov wrote: > > > You're right. I set a property from a called > task. I call the task > > > from a try-catch block and hence I have no > option to move to a > > > dependency model. But I checked that even if I > use antcall w\o > > > trycatch it doesn't help. The propery I set from > a called > > task serves > > > as a flag and depending on it I take decision on > next tasks. > > > > > > Roman > > > > > > > > > > -----Original Message----- > > > > From: Matt Benson > [mailto:gudnabrsam@yahoo.com] > > > > Sent: Tuesday, August 19, 2003 22:40 PM > > > > To: Ant Users List > > > > Subject: Re: Antcall or depends > > > > > > > > What I see here is that properties set by an > > > do not > > > > return to the calling project. It may be more > > > profitable for > > > > you to tell us exactly what you need. > > > > > > > > -Matt > > > > > > > > --- Roman Rytov wrote: > > > > > Here is a snippet of ant script: > > > > > > > > > > > > > > > > > > > > ${X} > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ${X} > > > > > > > > > > > > > > > > > > > > > > > > > In case of "bad" target property X is not > > > definded. > > > > > Why is it such and > > > > > is there a way to work it around? I can't > change > > > some logic to the > > > > > first case and really need to use antcall. > > > > > > > > > > > > > > > Roman > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > > > > > For additional commands, e-mail: > > > > > user-help@ant.apache.org > > > > > > > > > > > > > > > > > __________________________________ > > > > Do you Yahoo!? > > > > Yahoo! SiteBuilder - Free, easy-to-use web > site > > > design > > > > software http://sitebuilder.yahoo.com > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > 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 > > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! SiteBuilder - Free, easy-to-use web site > design > > software http://sitebuilder.yahoo.com > > > > > --------------------------------------------------------------------- > > 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 > __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com --------------------------------------------------------------------- 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