ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ken Liu" <k...@auctionlogic.com>
Subject help! Can't I set a <property> more than once in a build file?
Date Wed, 19 Jul 2000 18:20:55 GMT
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


Mime
View raw message