If I understand what your asking correctly, here's an example...
build.xml:
----------
<project name="build" default="build" basedir="." >
<import file="build2.xml"/>
<target name="build">
<antcall target="test1" />
<antcall target="test2" />
</target>
<target name="test1">
<echo message="test1 done" />
</target>
</project>
build2.xml
----------
<project name="build2" default="build" basedir="." >
<target name="test2">
<echo message="test2 done" />
</target>
</project>
Executing build.xml results in the test2 target being executed after
test1 is. The project name has to be different, although what you get
looks more like a warning than an error to me, but that's the reason it
is different above.
Is that what you meant?
Frank
THUFIR HAWAT wrote:
On 6/24/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
I may not have explained what I did very well...
I have a base target that is like this:
<target name="build">
<antcall target="startup_details" />
<antcall target="stop_tomcat" />
<antcall target="pre_cleanup" />
<antcall target="compile_app" />
<antcall target="update_system_about" />
...
</target>
There's probably 10-15 more where you see the ... All the
called targets are within the same build script.
...
What if the target is outside the build script? Specifically, from build.xml:
<target name="foo">
<antcall target="doFoo">
</antcall>
</target>
also in build.xml:
<target name="doFoo">
<echo message="doFoo.." />
</target>
but I can't figure out how to move the doFoo target outside of the
build.xml file.
Thanks,
Thufir
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]