ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: recursive property assignment
Date Fri, 31 May 2002 18:23:36 GMT
<property environment="env" />
<path id="classpath">
  <pathelement location="classes" />
  <pathelement location="${env.JUNIT_HOME}/junit.jar" />
  <pathelement location="${env.JFCUNIT_HOME}/jfcunit.jar" />
</path>

<javac ... classpathref="classpath" />

-----Original Message-----
From: Boris Garbuzov [mailto:boris.garbuzov@marketingtips.com] 
Sent: Friday, May 31, 2002 1:09 PM
To: Ant Users List
Subject: recursive property assignment

Once I tried to accumulate Ant property, namely "classpath", recursively,
imitating my batch file
set CLASSPATH=
set CLASSPATH=%CLASSPATH%;classes
set CLASSPATH=%CLASSPATH%;%JUNIT_HOME%\junit.jar
set CLASSPATH=%CLASSPATH%;%JFCUNIT_HOME%\jfcunit.jar
and it failed, behaved as if every new assignment wiped the previous.
Unfortunately, I do not keep the source. What is the proper way to do it in
Ant?


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message