Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 92751 invoked from network); 13 Dec 2000 08:58:59 -0000 Received: from femail4.sdc1.sfba.home.com (24.0.95.84) by locus.apache.org with SMTP; 13 Dec 2000 08:58:58 -0000 Received: from alsatian ([24.18.23.12]) by femail4.sdc1.sfba.home.com (InterMail vM.4.01.03.00 201-229-121) with SMTP id <20001213085706.BPDA8175.femail4.sdc1.sfba.home.com@alsatian>; Wed, 13 Dec 2000 00:57:06 -0800 Message-ID: <0cea01c064e2$e8be5c70$020a0a0a@alsatian> From: "Jason Rosenberg" To: Cc: Subject: property value resetting... Date: Wed, 13 Dec 2000 03:57:10 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0CE7_01C064B8.C4E27770" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------=_NextPart_000_0CE7_01C064B8.C4E27770 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable It seems that once a property has its value set, it cannot be set to a new value subsequently. Is that right? I have 2 targets: &sourcePattern;=20 &sourcePattern;=20 The entity sourcePattern is defined in terms of the extension property: '> When I do the distribute target, which depends on compile, it attempts to copy the *.java and not the *.class versions of the files. Is that right? I would have wanted the "extension" property value to be reset in each target, but that doesn't appear to be happening. The docs are unclear in this case. Is it meant to be resettable, or not, and if not, why not. It would certainly make life easier to have this abillity. Jason ------=_NextPart_000_0CE7_01C064B8.C4E27770 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
It seems that once a property has its = value set, it=20 cannot be set to
a new value subsequently.  Is that = right?
 
I have 2 targets:
 
<target = name=3D"compile">
  <property = name=3D"extension"=20 value=3D"java"/>
  <javac = srcdir=3D"${basedir}"=20 target=3D"${JAVA_JDK_VERSION}">
    &source= Pattern;=20
  </javac>
</target>
 
<target name=3D"distribute"=20 depends=3D"compile">
  <property = name=3D"extension"=20 value=3D"class"/>
  <copy=20 todir=3D"${DISTRIBUTE_PLUGIN_CLASSES}">
   <files= et=20 dir=3D"${basedir}">
    &sourcePattern;=20
   </fileset>
  </copy>
</target>
 
The entity sourcePattern is defined in = terms of the=20 extension property:
 
 <!ENTITY sourcePattern=20 '
  <patternset>
   <include=20 name=3D"&buildDir;/EventTime.${extension}"/>
   = <include=20 name=3D"&buildDir;/EventOutMail.${extension}"/>
  <= ;/patternset>
 '>
When I do the distribute target, which = depends on=20 compile, it attempts
to copy the *.java and not the *.class = versions of=20 the files.
Is that right?  I would have = wanted the=20 "extension" property value
to be reset in each target, but that = doesn't appear=20 to be happening.
 
The docs are unclear in this = case.  Is it=20 meant to be resettable,
or not, and if not, why not.  It = would=20 certainly make life easier to
have this abillity.
 
Jason
------=_NextPart_000_0CE7_01C064B8.C4E27770--