Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 89645 invoked from network); 21 Oct 2005 02:52:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Oct 2005 02:52:10 -0000 Received: (qmail 35448 invoked by uid 500); 21 Oct 2005 02:52:04 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 35408 invoked by uid 500); 21 Oct 2005 02:52:03 -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 35397 invoked by uid 99); 21 Oct 2005 02:52:03 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2005 19:52:03 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [68.142.200.84] (HELO web30201.mail.mud.yahoo.com) (68.142.200.84) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 20 Oct 2005 19:52:03 -0700 Received: (qmail 5084 invoked by uid 60001); 21 Oct 2005 02:51:42 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=K2FRJ50nDhTgQMa74COwpblm8vhNraENQwp52HPw5ZPG9igR7zciFmhrvspmPKf2DTXE7LnWSTow+AMHq75hhCxLKpTYmEHtPE5y5z9tn2Ctt+X0n2MeDQnL1U/sjLTnsx0QWXqnw10neWr4+PKQJAixr8sYoBFbepbuJoQKeSs= ; Message-ID: <20051021025141.5082.qmail@web30201.mail.mud.yahoo.com> Received: from [24.107.82.154] by web30201.mail.mud.yahoo.com via HTTP; Thu, 20 Oct 2005 19:51:41 PDT Date: Thu, 20 Oct 2005 19:51:41 -0700 (PDT) From: Ninju Bohra Subject: Re: Usage of antcall To: Ant Users List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N The slightly longer answer... The problem is that at a high-level every invokes an new private "ANT" environment. Any properties that are defined inside that new private "ANT" enviroment are not copied back out to the orignating "ANT" enviroment. Your property ${admin} is loaded inside a private "ANT" enviroment and so its visible/lifetime is limited to that enviroment. By using a depends= attribute (or a technique) on starting target you retain the original ANT enviroment through all the ANT targets and so all properties definitions are retained. Hope that helps --- pritesh.saharey@wipro.com wrote: > > I am trying to use antcall, I had a property file > called admin.size in > which value admin=136374, I can't put this property > file admin.size > ouside of create-zip target. > > > > > tofile="${common.name}${today.date}${admin.name}${admin}.zip"/> > dir="${today.date}/${common.name}${today.date}${admin.name}${admin}"/> > > > > > failonerror="true"> > > value="${common.name}${today.date}${admin.name}${admin}.zip"/> > value="${today.date}/${common.name}${today.date}${admin.name}${admin}"/> > > > > > gives error: > [java] Error opening input file: > java.io.FileNotFoundException: > OCC_20051020_PAdmin_${admin}.zip (The system cannot > find the file > specified) > > can anyone guess what I am doing wrong, and how I > should use antcall, > > Pritesh > > > > Confidentiality Notice > > The information contained in this electronic message > and any attachments to this message are intended > for the exclusive use of the addressee(s) and may > contain confidential or privileged information. If > you are not the intended recipient, please notify > the sender at Wipro or Mailadmin@wipro.com > immediately > and destroy all copies of this message and any > attachments. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > For additional commands, e-mail: > user-help@ant.apache.org > > __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org