On 23 Aug 2005 07:00:58 -0700, "hust6" <> wrote or
quoted :
>If I have a build file sitting in a jar, is there a way to execute an
>ant script from within that build file? If so, how?
There are two basic approaches.
1. Extract the script from the jar with winzip or the like and feed it
to ant normally.
2. fire up ant from Java. Your java program fishes the script out of
the jar using the java.util.zip.ZipEntry and java.util.zip.ZipFile
and feeds it to ant.
The advantage of the first is you can do it in two lines.
The advantage of the second approach is you never have to touch a
platform-specific script language.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com