Hi Diane,

I've just re-read the docs for <ant> and <antcall> and they seem quite
clear now.
Thank you for your detailed answers.

There is one thing which I noticed: The failonerror attribute for the
javac task
is not listed in the list of attributes in the docs.

Diane Holt wrote:
> 
> --- Ioan Mitrea <[EMAIL PROTECTED]> wrote:
> > I think the docs are not very clear about this isse, or maybe I didn't
> > read it right.
> 
> If you can point me to where in the doc you feel things were stated
> poorly, I can try and fix the doc to be more clear.
>


 
> > So: I can't reset properties in a target by just redefining them
> 
> Right. You can't do something like:
>   <target name="compile">
>     <property name="build.compiler" value="jikes"/>
>     <javac ... />
>   </target>
> if build.compiler was already set (at any level), but you can do something
> like:
>   <target name="jikescompile">
>      <antcall target="compile">
>        <param name="build.compiler" value="jikes"/>
>      </antcall>
>   </target>
> 
>   <target name="compile">
>     <javac ... />
>   </target>
> 
> Note that if you do things this way so you can compile the same files
> using different compilers, you should also either allow for a <param> to
> be passed that specifies the destdir in your <javac> task of your
> "compile" target so you can have your (for example) jikes-compiled
> classfiles go into a different directory, or you should have your targets
> set up to run a "clean"-type target on the previously compiled classfiles
> first -- otherwise, your classfiles will be up-to-date so nothing will get
> recompiled.
> 
> Diane
> 
> =====
> ([EMAIL PROTECTED])
> 
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/

Reply via email to