ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafal Kedziorski <raf...@polonium.de>
Subject Re: depences?
Date Tue, 06 Nov 2001 08:29:03 GMT
Ylan Segal wrote:

> You can set a default in your build file, like for example jikes:
>
> ....
> <target name="compile">
>         <property name="build.compiler" value="jikes"/>
>         <javac ....>
>         </javac>
> </target>
> ....
>
> The example above will always compile with jikes, unless you call:
> ant compiler -Dbuild.compiler=otherCompiler
>
> In which case, otherCompiler will be used.. why? because properties are
> inmutable in ant, once they are set, they can't be changed, and since you
> are setting the property in the command line, it is processed before the
> build.xml.
>
> Is that good enough for you?

Yes. thx.


Best Regards,
Rafal


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message