>Jan and I are both producing the same answer. Here's the overlap:
yepp ;-)
In earlier times (prior to Ant 1.6) this was the only possibility to do
more
difficult initializations because only a few tasks were allowed to be
outside
of a <target>.
Since 1.6 you could do (nearly) everything outside of a <target>.
But <target> can be called explicitly and via depends-clause.
Jan
><project name="myproj" default="deploy-to-tomcat">
> <target name="init-taskdefs">
> <!-- taskdefs here -->
> </target>
>
> <target name="deploy-to-tomcat" depends="init-taskdefs">
> <!-- stuff here -->
> </target>
>
> <target name="non-tomcat-task">
> <!-- this should run fine now -->
> </target>
></project>
>
>Or near enough to get you going.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|