You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Mahfudh Junaryanto <ma...@readiminds.com> on 2002/11/14 13:10:37 UTC
Setting classpath when invoking org.apache.tools.ant.Main.main()
Hi,
>From a java program, I invoke org.apache.tools.ant.Main.main() method.
My build.xml contains element that required specific jar file , How can
I include that jar file
so the element is recognized by ant. Here is more specific example:
<!-- Run ejbc to create the deployable jar file -->
<target name="ejbc" depends="jar_ejb">
<java classname="weblogic.ejbc" fork="yes" failonerror="yes">
<sysproperty key="weblogic.home" value="${weblogic.home}/server"/>
<arg line="-verbose -compiler javac
${working.dir}/dist/${jar.name}"/>
</java>
</target>
I have weblogic.ejbc (weblogic.jar) somewhere . How can I include this
jar file when I call ant.Main.main() ?
Thanks in advance!