Hello, I'm seeing unusual behavior trying to use propertyset. The build file is below. I have a -run target that calls <java> on a class specified by a property, and several target that set the property and call the -run target. I define a propertyset to specify the properties that are passed to the JVM. If I attempt "ant -v exhibit-bug", it passes the correct properties to the forked JVM. However, if I uncomment the propertyset lines in run-other (a target that isn't called when running exhibit-bug), it appears to use the propertyset defined in run-other rather than the one defined in exhibit-bug.
With the second property set commented out, I get this output: ... -run: Executing 'C:\Program Files\Java\jdk1.5.0_05\jre\bin\java.exe' with arguments: '-Dbae.ibc.testclient.autologin=true' 'bae.ibc.testclient.BPClientGUI' With the second property set included (but never called), I get this output: ... -run: Executing 'C:\Program Files\Java\jdk1.5.0_05\jre\bin\java.exe' with arguments: 'bae.ibc.testclient.BPClientGUI' Note that bae.ibc.testclient.autologin (which matches the propertyset/@prefix in exhibit-bug but not in run-other) is not set in the second call. Is there some reason it should be working this way? $ ant -version Apache Ant version 1.6.5 compiled on June 2 2005 --- START build.xml ---- <project name="IBC" default="default" basedir="."> <!-- Set personal properties in this file --> <target name="default" description="Default target. May change; check build file" depends="exhibit-bug" /> <target name="exhibit-bug" description="Run the BP emulator"> <property name="bae.ibc.testclient.autologin" value="true" /> <property name="run.class" value="bae.ibc.testclient.BPClientGUI" /> <propertyset id="run.properties" dynamic="true"> <propertyref prefix="bae.ibc" /> </propertyset> <antcall target="-run" /> </target> <target name="run-other" description="Run the BP emulator"> <property name="bae.ibc.backplane.rmi.name" value="//:5002/backplane.server" /> <property name="run.class" value="some.other.Class" /> <!-- Uncomment these lines to make exhibit-bug fail --> <!-- <propertyset id="run.properties" dynamic="true"> --> <!-- <propertyref name="bpclientfactory" /> --> <!-- <propertyref prefix="bae.ibc.backplane" /> --> <!-- </propertyset> --> <antcall target="-run" /> </target> <target name="-run" description="Run the program without compiling anything"> <java fork="true" classname="${run.class}" failonerror="true" dir="."> <syspropertyset dynamic="true"> <propertyset refid="run.properties" /> </syspropertyset> </java> </target> </project> --- END build.xml --- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]