ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dino Valente <>
Subject Re: Problems with subbuild
Date Thu, 27 Jul 2000 14:56:39 GMT
I'm having a lot of problems using subbuilds where I'm trying to share the
same xml code with all builds. I have about 15 different projects each can
be compile separately. Each build.xml rules are exactly the same. The only
difference is the name of the jar file. How do I do this? Remember each
project can be compiled separately and I have a super build file to compile
all of my projects. 

Anyhow, it seems countertuitive that the property is propagated if you
define it outside the <ant> block. Look at my example (test2.xml), the
property is set within the "package" target:- it is not even set as a
global property! The workaround below should be the solution if you want to
override the default value in the subbuild (just like the property
arguments to the Ant application).

I really like to use the latest version since it fixes relative file
problems with subbuilds being in subdirectories.


At 04:32 PM 7/27/00 +1000, you wrote:
>Yes there is/has been heated debate on issues pertaining to how properties
>behave. In the new release properties can only be set once while in
>previous builds this has not been the case. Currently you can use the
><ant antfile="test1.xml">
>    <property name="name" value="test 1" />
>hopefully the exact behaviour of properties will be resolved soon and a new
>release will occur that has more clearly defined usage patterns :P
>| "Nearly all men can stand adversity, but if you want |
>| to test a man's character, give him power."          |
>|       -Abraham Lincoln                               |

View raw message