I have a similar problem where I am unable to set the classpath for Junit Apparently Junit has its own Classloader and I havent found documentation to set classpath for Junit classloader. (Setting the System classpath has no effect) Help would be appreciated Thanks, Martin
----- Original Message ----- From: "Mahfudh Junaryanto" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Thursday, November 14, 2002 9:28 PM Subject: RE: Setting classpath when invoking org.apache.tools.ant.Main.main() Thanks Keith, I have done that, except that I only specify the path, not the specific jar file. It works now. Thanks! Best Regards, Mahfudh Junaryanto Technical Consultant ReadiMinds Singapore Phone: +65- 6227 5880; Fax: +65- 6227 5881 Mobile: +65-91070425 www.ReadiMinds.com Leading provider of Enterprise WebServices & E-Business Solutions! Singapore|Malaysia|India|China|Hong Kong|Middle East|Europe|Indonesia -----Original Message----- From: Keith Hatton [mailto:khatton@;axiomsystems.com] Sent: Thursday, November 14, 2002 8:49 PM To: Ant Users List Subject: RE: Setting classpath when invoking org.apache.tools.ant.Main.main() Isn't it just as easy to add it to your build.xml? I think you will need something like <java ...> <classpath> <pathelement path="${weblogic.home}/lib/weblogic.jar"/> </classpath> </java> -----Original Message----- From: Mahfudh Junaryanto [mailto:mahfudh.junaryanto@;readiminds.com] Sent: 14 November 2002 12:11 To: [EMAIL PROTECTED] Subject: 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! -- To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org> ---------------------------------------------------------------------------- ---- > -- > To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>