Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 72543 invoked from network); 5 Sep 2002 18:48:38 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 5 Sep 2002 18:48:38 -0000 Received: (qmail 94 invoked by uid 97); 5 Sep 2002 18:49:03 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 78 invoked by uid 97); 5 Sep 2002 18:49:03 -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 66 invoked by uid 98); 5 Sep 2002 18:49:02 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: & (was 'RE: Automated source config model?') Date: Thu, 5 Sep 2002 14:36:48 -0400 Message-ID: <9093431B64301C47986EF078512912AD2C9F83@xchange.stargus.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: & (was 'RE: Automated source config model?') Thread-Index: AcJVBllFarIX9kiIRE2ZL2ui/5t74QABKQog From: "Matt Lyon" To: "Ant Users List" 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,=20 Figured it out as follows: =20 =20 =20 =20 Thanks! Matt -----Original Message----- From: Dominique Devienne [mailto:DDevienne@lgc.com] Sent: Thursday, September 05, 2002 2:14 PM To: 'Ant Users List' Subject: RE: & (was 'RE: Automated source config model?') You can easily check for that case using: You could also use a pseudo-tag called 'head', and check for the value specifically. And that would allow to add a to fail with a nice message if comptag ends up really being not defined! Cheers, --DD -----Original Message----- From: Matt Lyon [mailto:matt@stargus.com]=20 Sent: Thursday, September 05, 2002 12:52 PM To: Ant Users List Subject: RE: & (was 'RE: Automated source = config model?') Diane, Yes it was. Thanks. However, I'm actually not out of the woods yet, as = it turns out, contrary to my previous response (a rush to irrational exuberance, perhaps?). I'm still wrestling with the ${comptag} property value. It appears that = I have a bit of a catch-22. It seems that I need to set the nested element in my in = my "checkout-dirs" target to pass this along to the subsequent = "checkout-dir" target to get it to recognize the tags, because if I don't, the target = sees ${comptag} as not defined and checks out from the main code line. = However, if I do so and comment out one of the ${component}.tag values in my properties file, it causes the value to be passed in as ${comptag}, = which results in: checkout-dir: [echo] checking out starman/src/com/stargus/web with tag ${comptag} [cvs] cvs [server aborted]: no such tag ${comptag} Let me post the two targets I've got now: =20 =20 Basically, the requirement is that I need to be able to define named = value pairs (tags and srcdirs), have ant iterate over them, and checkout the srcdirs from the defined tag, or from the main code line if the tag is = not defined. So I either need to figure out how to make isset in my = task recognize when comptag is not set to a legitimate value or perhaps = figure out how to get ${comptag} passed without having to use a nested element. Matt -----Original Message----- From: Diane Holt [mailto:holtdl@yahoo.com] Sent: Thursday, September 05, 2002 1:38 PM To: Ant Users List Subject: RE: & (was 'RE: Automated source config model?') --- Matt Lyon wrote: > That rocks! Thanks for the help. If I use your second suggestion in > conjunction with my original "checkout-dirs" target (sans the nested > you suggested, which also works!) I get exactly the > functionality I was looking for. I'm still a little puzzled as to why = I > needed the nested element to pass ${comptag} to checkout-dir > target explicitly in scenario 1, but since I have something that works > now, I won't bother banging my head against that one right now. Thanks > again... When I fix the two typo's you had in your listing, this is what I get (changed the stuff to just echo out the 'co' command line): checkout-dir-tag: command=3D"co -P -r V1_0_6_183 starman/src/com/stargus/platform" checkout-dir-tag: command=3D"co -P -r V1_0_6_183 starman/src/com/stargus/web" checkout-dir-tag: command=3D"co -P -r V1_0_6_183 starman/src/web" checkout-dir-tag: command=3D"co -P -r V1_0_7_184 = starman/src/com/stargus/platform/content" That's what you wanted, right? Diane =3D=3D=3D=3D=3D (holtdl@yahoo.com) __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -- 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: = -- To unsubscribe, e-mail: For additional commands, e-mail: