Stefano Mazzocchi <[EMAIL PROTECTED]> writes:

> The new build system has landed on CVS.
[...] 
>   read BUILD.txt
>   cp blocks.properties local.blocks.properties
>   cp build.properties local.build.properties
>   [modify the local copies as you like, leaving the original intact]
>   build webapp [this will generate the webapp]

Does overriding boolean properties work? If I set
"exclude.webapp.samples=false"
in local.build.properties a target like 

<target name="prepare-webapp-samples" depends="package-samples" 
unless="exclude.webapp.samples"> 

won't be executed. "unless" does not test, if the variable has the value of "true" or 
"false".
It tests, if the value is defined.  At least, that's what the documentation for 
ant 1.5 says.

The only way to execute the target is removing the definition from 
local.build.properties
and build.properties. The result will be failed build, but that's a other story.


Martin

P.S : Improving the build system is  really worth some temporary inconvenience. Thank 
you very much.

--
Martin Holz     <[EMAIL PROTECTED]>

Softwareentwicklung / Vernetztes Studium - Chemie
FIZ CHEMIE Berlin
Franklinstrasse 11
D-10587 Berlin      

Reply via email to