From user-return-63159-apmail-ant-user-archive=ant.apache.org@ant.apache.org Wed Dec 05 14:36:03 2007 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 66336 invoked from network); 5 Dec 2007 14:36:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Dec 2007 14:36:02 -0000 Received: (qmail 12916 invoked by uid 500); 5 Dec 2007 14:35:47 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 12889 invoked by uid 500); 5 Dec 2007 14:35:47 -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 12872 invoked by uid 99); 5 Dec 2007 14:35:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2007 06:35:47 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of peter.kitt.reilly@gmail.com designates 209.85.146.179 as permitted sender) Received: from [209.85.146.179] (HELO wa-out-1112.google.com) (209.85.146.179) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2007 14:35:25 +0000 Received: by wa-out-1112.google.com with SMTP id k22so6850444waf for ; Wed, 05 Dec 2007 06:35:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=BZco7suWdXmI8o1MKR0/lRlYR7APcPOPC2D7heqrM9A=; b=adfuhIf4QJXjKxiYw4k7QnkVazJQuWlF57IQQESLmEoEVFTSIq8Qfi+R4IqNBJy/n2goi5pue7Fk8nV28imJcjYFPzUnjqxnZ66KDoSAlvi6YaujURtm4YEv7J9OEqtHgTNDBdNqKYRO+3qR6Y0sr1XNam30sD6/ykjvHpAHBCI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=icXHLZkvaEkVvBpdaTLpdRMmAQN/OfqwYzQb3eYKw4txLu74cl+u9FDO0FL3NADV1eQ4gbMbvz7uV6eSEAZyr9irjuv4G5m17ByT1Ikrmm0fgxTLcOHGmIRvbyOSmI2wwOLRx3Z2KqH0I+YiSw26tNoOQi4sxqQWnFbghMdYfM0= Received: by 10.115.93.16 with SMTP id v16mr280161wal.1196865327704; Wed, 05 Dec 2007 06:35:27 -0800 (PST) Received: by 10.114.198.12 with HTTP; Wed, 5 Dec 2007 06:35:27 -0800 (PST) Message-ID: Date: Wed, 5 Dec 2007 14:35:27 +0000 From: "Peter Reilly" To: "Ant Users List" Subject: Re: Refid and antcontrib if In-Reply-To: <06080D44730F41428BAF2168FA8BDD8001695D83@icsrv02.icongmbh.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <06080D44730F41428BAF2168FA8BDD8001695D83@icsrv02.icongmbh.de> X-Virus-Checked: Checked by ClamAV on apache.org You get this with ant 1.6.*. This behavior is kept in ant 1.7.*, but now you will get the message: Warning: Reference junit.classpath has not been set at runtime, but was found during build file parsing, attempting to resolve. Future versions of Ant may suppo= rt referencing ids defined in non-executed targets. In current ant SVN (1.8) you will just get: ${toString:junit.classpath}. Peter On Dec 5, 2007 1:39 PM, Knuplesch, J=FCrgen = wrote: > Hello, > > I use antcontribs "if" and have the following strange effect: > > If I define a refid in antfile-passage, that is never reached (using if, = else) ant then > Try to access the refid it has the value that ist set in the not reached = code! > > Is this correct behaviour? > > > My Antfile looks like: > dope.fix is false > > > > > > > > > > > > > Kein Fix, also Klassenpfad JUnit nicht erweitern > > > Klassenpfad in junit: classpath=3D${toString:junit.classpath} > > The output looks like: > [echo] Kein Fix, also Klassenpfad JUnit nicht erweitern > [echo] Klassenpfad in junit: classpath=3DD:\nightlybuild\exportbaseH= EAD\DOPE\code;D:\nightlybuild\exportbaseHEAD_FIX\config;D:\nightlybuild\exp= ortbaseHEAD\DOPE\lib\dope.jar > > > Greetings > > Juergen > > -- > J=FCrgen Knuplesch www.icongmbh.de > icon Systemhaus GmbH Tel. +49 711 806098-275 > Sophienstra=DFe 40 > D-70178 Stuttgart Fax. +49 711 806098-299 > > Gesch=E4ftsf=FChrer: Uwe Seltmann > HRB Stuttgart 17655 > USt-IdNr.: DE 811944121 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org