Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 4072 invoked from network); 19 Jan 2011 19:24:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Jan 2011 19:24:20 -0000 Received: (qmail 70402 invoked by uid 500); 19 Jan 2011 19:24:19 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 70275 invoked by uid 500); 19 Jan 2011 19:24:18 -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 70267 invoked by uid 99); 19 Jan 2011 19:24:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Jan 2011 19:24:18 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of milu71@gmx.de designates 213.165.64.23 as permitted sender) Received: from [213.165.64.23] (HELO mailout-de.gmx.net) (213.165.64.23) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 19 Jan 2011 19:24:10 +0000 Received: (qmail invoked by alias); 19 Jan 2011 19:23:47 -0000 Received: from e182082076.adsl.alicedsl.de (EHLO localhost) [85.182.82.76] by mail.gmx.net (mp021) with SMTP; 19 Jan 2011 20:23:47 +0100 X-Authenticated: #48488578 X-Provags-ID: V01U2FsdGVkX1+Q1GNxPo2QwE1gBbYiMQsXa4vnGEOh+3B3dXuTT2 UXMZnVY9sxJXLO Date: Wed, 19 Jan 2011 20:24:45 +0100 From: Michael Ludwig To: user@ant.apache.org Subject: Re: java script error in imported ant file Message-ID: <20110119192445.GH3868@wladimir> Mail-Followup-To: user@ant.apache.org References: <1295449386683-3347980.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1295449386683-3347980.post@n5.nabble.com> User-Agent: Mutt/1.5.20 (2009-12-10) X-Y-GMX-Trusted: 0 ritchie schrieb am 19.01.2011 um 07:03 (-0800): > > I have a build file -A.xml which imports another build file -B.xml and > runs the targets in the imported file. File B has multiuple targets > and one of the targets has a java script. In the java script i have a > line of code which says " Bproject.setProperty("newtoken", result);" , > Bproject is the name of the project in B.xml. There is no need to hardcode the name. You can refer to the currently running project by simply saying "project". :-) project.log("toll!"); project.setProperty("newtoken", "Gurke"); -- Michael Ludwig --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org