Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 76626 invoked from network); 14 Aug 2002 06:47:43 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 14 Aug 2002 06:47:43 -0000 Received: (qmail 3020 invoked by uid 97); 14 Aug 2002 06:48:06 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 3005 invoked by uid 97); 14 Aug 2002 06:48:05 -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 2981 invoked by uid 98); 14 Aug 2002 06:48:05 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <2DAFF28F562AD4119B0E00508B5F049F0222A38F@AMSEXCH01> From: Tibor Strausz To: 'Ant Users List' Subject: RE: how can i use a property to enable/disable a general target Date: Wed, 14 Aug 2002 08:48:57 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N yes i want to re-check the same property for now i have the following wich looks ok to me. but if there is a shorter nicer better way i'm hapy to hear it :-) [...] Project: ${project} Make: ${make} File: ${projectFile} Log: ${logDir}\${project}.log > -----Original Message----- > From: Matt Benson [mailto:gudnabrsam@yahoo.com] > Sent: Tuesday, August 13, 2002 11:31 PM > To: Ant Users List > Subject: RE: how can i use a property to enable/disable a > general target > > > Okay, I'm not sure what you're after. Do you want to > check for the existence of different properties in one > run of Ant using only one target? Or are you wanting > to re-check the same property over and over? I had > the problem of getting the reset property warning when > the same target was invoked twice, so I did this: > > > > > > > This allowed me to execute only once, but would only > be good for checking the value of one property one > time and using the results throughout the Ant process. > If you need to check multiple properties, the simple > way would be to use a target per each property, > although some dynamic way might be devised, quite > possibly involving ? I dunno... > > -Matt > > --- Tibor Strausz wrote: > > well yes but now the value propset is set and can't > > be reset can it?? > > i want to reset it because its a general target wich > > will be called more > > than ones and i want only some to not execute and > > some to do > > > > tibi > > > > > -----Original Message----- > > > From: Matt Benson [mailto:gudnabrsam@yahoo.com] > > > Sent: Monday, August 12, 2002 4:21 PM > > > To: Ant Users List > > > Subject: RE: how can i use a property to > > enable/disable a > > > general target > > > > > > > > > Try this: > > > > > > > basedir="."> > > > > > > > > > > > > > > > > > > > > > > > > > > depends="checkprop" > > > if="propset"> > > > > > > > > > > > > > > > > > > Is this what you want to do? > > > > > > -Matt > > > > > > > > > --- Tibor Strausz > > wrote: > > > > i now have this: > > > > but is this the sortest and or best way?? > > > > > > > > thnx > > > > tibi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > a ${run} > > > > > > > > > > > > > > > > b ${run} > > > > > > > > > > > > > > > > > > > > runTarget: ${runTarget} > > > > > > > > > > > > > > > > run: ${run} > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Geoff Meakin [mailto:geoffm@isocra.com] > > > > > Sent: Monday, August 12, 2002 12:23 PM > > > > > To: Ant Users List > > > > > Subject: RE: how can i use a property to > > > > enable/disable a > > > > > general target > > > > > > > > > > > > > > > An easy, although perhaps not particularly > > > > attractive way of > > > > > doing this is > > > > > to define a router-task, that you antcall, > > with > > > > the > > > > > router-task depending > > > > > on the RunBat. That way you get the if/unless > > > > working again > > > > > > > > > > e.g. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > depends="RunBat"/> > > > > > > > > > > do whatever... > > > > > > > > > > > > > > > > > > > > There's probably a neater way of doing it > > though. > > > > > In fact is there? Cos if there is I'd like to > > know > > > > :) > > > > > > > > > > Cheers > > > > > -Geoff > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Tibor Strausz > > > > [mailto:Tibor.Strausz@tridion.com] > > > > > Sent: 12 August 2002 10:40 AM > > > > > To: Ant Users List (E-mail) > > > > > Subject: how can i use a property to > > > > enable/disable a general target > > > > > > > > > > > > > > > > > > > > hi, > > > > > > > > > > main question: how can i use a property to > > > > enable/disable a > > > > > general target. > > > > > > > > > > i have a general target which i execute from a > > > > main target > > > > > with antcall with > > > > > differnet param's > > > > > like so: > > > > > > > > > > > > > > value="Shared\TDSDefines\BuildTypeLib.bat"/> > > > > > > > > > > this is ok ;-) > > > > > > > > > > now i have a build.properties in which the > > user > > > > can define if > > > > > he want st > > > > > build the different steps > > > > > like so: > > > > > > > > > > > > > > > how can i use this property so that the > > general > > > > RunBat will > > > > > only build if > > > > > ${BuildTypeLib} == true > > > > > > > > > > if can't use > > > if="${BuildTypeLib}"/> > > > > > because its a > > > > > general task (and the if only looks at if the > > > > BuildTypeLib is > > > > > defined and > > > > > not if its true/yes/on but thats a minor > > problem > > > > which i can > > > > > work arround > > > > > ;-) > > > > > > > > > > thnx > > > > > > > > > > tibi > > > > > > > > > > -- > > > > > To unsubscribe, e-mail: > > > > > > > > For additional commands, e-mail: > > > > > > > > > > > > > > > > > > > > -- > > > === message truncated === > > > __________________________________________________ > Do You Yahoo!? > HotJobs - Search Thousands of New Jobs > http://www.hotjobs.com > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: