Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 61103 invoked from network); 11 Dec 2007 17:19:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Dec 2007 17:19:16 -0000 Received: (qmail 70911 invoked by uid 500); 11 Dec 2007 17:19:01 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 70874 invoked by uid 500); 11 Dec 2007 17:19:01 -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 70863 invoked by uid 99); 11 Dec 2007 17:19:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Dec 2007 09:19:01 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,HTML_NONELEMENT_40_50,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [206.190.48.112] (HELO web52109.mail.re2.yahoo.com) (206.190.48.112) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 11 Dec 2007 17:18:39 +0000 Received: (qmail 54160 invoked by uid 60001); 11 Dec 2007 17:18:40 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=fQwh6C3kMmUtRWytFjvc22H0lVhNlgW2CSBeyd0F3hYioSaCWRvi8psPj8rfkUUdSNGq0u5fNieyub728k7dpAQUcnP5xtOGSwfRn1ZWNKQgjqR6qAuRNKtAhEmmW9wBD+lx2YCNkBoZJ1VpOdxi6kQDjp5xnAtRL/cAtcuvDsY=; X-YMail-OSG: e1gwfkIVM1k2rHSZTDL.2htWztnxzHNrdaOeAwWn8aJb2UMasFnH0QcmbCBZfLn0qg-- Received: from [209.211.169.130] by web52109.mail.re2.yahoo.com via HTTP; Tue, 11 Dec 2007 09:18:40 PST Date: Tue, 11 Dec 2007 09:18:40 -0800 (PST) From: Chuck Holzwarth Subject: Re: newbie question: variable scope To: Ant Users List In-Reply-To: <78168f260712110833s77135aebjcbbfdb071fd3f5df@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-676631422-1197393520=:52861" Content-Transfer-Encoding: 8bit Message-ID: <462606.52861.qm@web52109.mail.re2.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-676631422-1197393520=:52861 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I have had the same problem. The following target shows how I got around the problem. Since I have to do differential builds I can't predict the number of zip files that are produced, so I check for the existence of the file before calling this target. When I need the list of files, to create the release notes, I load the property file that was created with the list of files. The following code shows an example of this. ,${__zFileToAdd} ${__PropertyName}=${__zFileToAdd} Hudson Ansley wrote: that did the trick, thanks again! Now, what I thought might be a better solution than using "var" was to create a "filelist" and add files to this construct and then use it by ref in the upload target. I thought creating an empty "filelist" then using it's refid to add files might work, but it seems that it does not. I assume this is just not how "filelist" works, any insights or alternative suggestions welcome. This is the code I was attempting: in target#0 (main build target) in target#1 (if data translation happens) in target#2 (if compilation happens) in target#3 (upload target) Regards, Hudson On Dec 11, 2007 10:59 AM, Hudson Ansley wrote: > yes, I am using thanks so much for your explanation and > suggestion - sounds like a winner! > Regards, > Hudson > > > On Dec 11, 2007 10:56 AM, Peter Reilly wrote: > > You are most likely using or to call the other targers > > this causes a new ant project to be created. porjects created in or modified in > > the child projects have no effect on the properties in the main project. > > > > You can use from antcontrib to run the targets in the > > same project. > > > > Peter > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org Thank you, Chuck Holzwarth (804) 403-3478 (home) (540) 335-3171 (cell) --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. --0-676631422-1197393520=:52861--