You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Ken Liu <kl...@auctionlogic.com> on 2000/07/19 20:20:55 UTC

help! Can't I set a more than once in a build file?

Help!

My build file doesn't work properly with the latest Ant release.  It worked
fine with the "1.0.8" version.

I've determined that once I set a <property>, I can't override it by setting
it again.  This worked in the previous release.

The reason I need to do this is that I have all my ejbs set up so that I set
some properties and then run an <ant> subproject to execute the tasks for
that ejb.
So, in the following example the value of "ejb.basename" in the
"Customer.build" target turns out to be "AuctionManager", not "Customer" as
I would expect.

<!-- AuctionManager target -->
<target name="AuctionManager.build" depends="init,AuctionManager.compile">
	<property name="ejb.basedir" value="com\auctionlogic\auction"/>
	<property name="ejb.basename" value="AuctionManager"/>
	<ant antfile="${include.dir}/ejb-build.xml" dir="."
target="ejb.descriptor"/>
	<ant antfile="${include.dir}/ejb-build.xml" dir="."
target="ejb.container"/>
</target>
<!-- Customer target -->
<target name="Customer.build" depends="init,Customer.compile">
	<property name="ejb.basedir" value="com\auctionlogic\customer"/>
	<property name="ejb.basename" value="Customer"/>
	<ant antfile="${include.dir}/ejb-build.xml" dir="."
target="ejb.descriptor"/>
	<ant antfile="${include.dir}/ejb-build.xml" dir="."
target="ejb.container"/>
</target>

Is there any way to work around this?  Is this the proper expected behavior?

Kenneth Liu
AuctionLogic, Inc.
3799 Route 46 East, Suite 310
(973)257-2751  (973)331-8062 FAX
http://www.auctionlogic.com
AuctionLogic - Empowered Web Auction Management