ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Doyle <jdo...@iso-ne.com>
Subject RE: Running junit tests that access EJBs
Date Mon, 16 Apr 2001 19:52:49 GMT
> could someone send me an excerpt of there build.xml where you use
> <wlrun> to start weblogic.
> Thanks,
> -Atul

Atul,
    Here is the wlrun element that works for us with WL 5.1 sp 8 (and
the property elements it references):

  <property name="oracle.jdbc.driver.class.path"
value="c:/JavaTools/Oracle/JDBCdrivers/oracle8.1.7-jdk1.2/lib/classes12.zip"/>

  <property name="weblogic.home"
value="c:/JavaTools/weblogic/weblogic51"/>
  <property name="weblogic.boot.class.path"
value="${weblogic.home}/lib/weblogic510sp8boot.jar;${weblogic.home}/classes/boot"/>

  <property name="weblogic.class.path"
value="${oracle.jdbc.driver.class.path};${weblogic.home}/lib/weblogic510sp8.jar;${weblogic.home}/classes;${weblogic.home}/lib/weblogicaux.jar"/>

  <target name="start" depends="deploy.ejb">
    <wlrun classpath="${weblogic.boot.class.path}"
           wlclasspath="${weblogic.home}/license;${weblogic.class.path}"

           home="${weblogic.home}"
           properties="myserver/myserver-weblogic-all.properties"/>
  </target>

Note that "myserver-weblogic-all.properties" needs to include *all*
relevant weblogic properties.  The
global/server property file stuff that weblogic does by default doesn't
work when specifying the property file directly, and wlrun needs to
specify the property file.  Also, I'm not sure whether the weblogic home
has to be prepended to all the path elements, given that we specify it
in the wlrun task.

--
Jim Doyle
jdoyle@iso-ne.com



Mime
View raw message