P
Piper707
Hi,
I need to execute a different ant routine (build2.xml) inside my
build1.xml.
This is my directory structure:
Parent/source/myproject/Human/Man/John/Peter/build1.xml (current)
Parent/source/myproject/Human/Man/build2.xml (different routine)
i.e The ant routine that I need to call inside my build1.xml, is
located 2 levels above it.
I'm not sure how to refer to build2.xml, can this be done? How can I
have a property in build1.xml tell me the location of "Man" directory,
so that I can call the build2.xml routine?
//build1.xml - call to 2nd ant routine
<ant antfile="${**location of Man**}/build2.xml target="compile"
dir="xyz" />
1) **location of Man** = ?
2) Can I set any windows variables that ant may read when executed from
the command line to figure out the path to "Man"?
3) Any other solutions?
Thanks for any help
Rohit.
I need to execute a different ant routine (build2.xml) inside my
build1.xml.
This is my directory structure:
Parent/source/myproject/Human/Man/John/Peter/build1.xml (current)
Parent/source/myproject/Human/Man/build2.xml (different routine)
i.e The ant routine that I need to call inside my build1.xml, is
located 2 levels above it.
I'm not sure how to refer to build2.xml, can this be done? How can I
have a property in build1.xml tell me the location of "Man" directory,
so that I can call the build2.xml routine?
"Peter" onwards. (basedir="." in build1.xml)From build1.xml's point of view, it can only see everything from
//build1.xml - call to 2nd ant routine
<ant antfile="${**location of Man**}/build2.xml target="compile"
dir="xyz" />
1) **location of Man** = ?
2) Can I set any windows variables that ant may read when executed from
the command line to figure out the path to "Man"?
3) Any other solutions?
Thanks for any help
Rohit.