You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by jr...@apache.org on 2003/01/10 16:07:18 UTC
cvs commit: jakarta-cactus/Eclipse-Plugin/ant/build build-weblogic-70.xml
jruaux 2003/01/10 07:07:18
Modified: Eclipse-Plugin/ant/build build-weblogic-70.xml
Log:
Added Windows javaw support
Revision Changes Path
1.2 +44 -33 jakarta-cactus/Eclipse-Plugin/ant/build/build-weblogic-70.xml
Index: build-weblogic-70.xml
===================================================================
RCS file: /home/cvs/jakarta-cactus/Eclipse-Plugin/ant/build/build-weblogic-70.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- build-weblogic-70.xml 10 Jan 2003 14:52:23 -0000 1.1
+++ build-weblogic-70.xml 10 Jan 2003 15:07:18 -0000 1.2
@@ -1,29 +1,36 @@
<!--
========================================================================
- Run WebLogic 7.0 tests
+ Start WebLogic 7.0
========================================================================
-->
- <target name="test.weblogic.70" depends="prepare.weblogic.70"
- if="home.weblogic.70" description="Run tests on WebLogic 7.0">
+ <target name="start.weblogic.70" depends="checkwindows, windows.start.weblogic.70, other.start.weblogic.70"/>
+
+ <target name="windows.start.weblogic.70" if="isWindows">
+ <property name="target.weblogic70.dir"
+ value="${target.test.dir}/weblogic70"/>
+ <java jvm='javaw' classname="weblogic.Server" fork="yes"
+ dir="${target.weblogic70.dir}/testdomain">
+
+ <classpath>
+ <pathelement location="${home.weblogic.70}/weblogic700/server/lib/weblogic.sp.jar"/>
+ <pathelement location="${home.weblogic.70}/weblogic700/server/lib/weblogic.jar"/>
+ </classpath>
+
+ <jvmarg value="-hotspot"/>
+ <jvmarg value="-ms64m"/>
+ <jvmarg value="-mx64m"/>
+ <jvmarg value="-Djava.library.path=${java.library.path};${home.weblogic.70}/weblogic700/server/bin"/>
+ <jvmarg value="-Dweblogic.Name=testserver"/>
+ <jvmarg value="-Dbea.home=${home.weblogic.70}"/>
+ <jvmarg value="-Dweblogic.management.username=system"/>
+ <jvmarg value="-Dweblogic.management.password=password"/>
+ <jvmarg value="-Djava.security.policy==./server/lib/weblogic.policy"/>
- <!-- Start the servlet engine, wait for it to be started, run the
- unit tests, stop the servlet engine, wait for it to be stopped.
- The servlet engine is stopped if the tests fail for any reason -->
-
- <runservertests
- testURL="http://localhost:${test.port}/test/ServletRedirector?Cactus_Service=RUN_TEST"
- startTarget="start.weblogic.70"
- stopTarget="stop.weblogic.70"
- testTarget="test"/>
+ </java>
</target>
- <!--
- ========================================================================
- Start WebLogic 7.0
- ========================================================================
- -->
- <target name="start.weblogic.70">
+ <target name="other.start.weblogic.70" unless="isWindows">
<property name="target.weblogic70.dir"
value="${target.test.dir}/weblogic70"/>
<java classname="weblogic.Server" fork="yes"
@@ -53,9 +60,11 @@
Stop WebLogic 7.0
========================================================================
-->
- <target name="stop.weblogic.70">
+ <target name="stop.weblogic.70" depends="checkwindows, windows.stop.weblogic.70, other.stop.weblogic.70"/>
+
+ <target name="windows.stop.weblogic.70" if="isWindows">
- <java classname="weblogic.Admin" fork="yes">
+ <java jvm='javaw' classname="weblogic.Admin" fork="yes">
<classpath>
<pathelement location="${home.weblogic.70}/weblogic700/server/lib/weblogic.sp.jar"/>
@@ -71,22 +80,24 @@
</target>
- <!--
- ========================================================================
- Display a warning message if the needed servlet engine home property
- is not set
- ========================================================================
- -->
- <target name="check.test.weblogic.70" unless="home.weblogic.70">
+ <target name="other.stop.weblogic.70" unless="isWindows">
+
+ <java classname="weblogic.Admin" fork="yes">
+
+ <classpath>
+ <pathelement location="${home.weblogic.70}/weblogic700/server/lib/weblogic.sp.jar"/>
+ <pathelement location="${home.weblogic.70}/weblogic700/server/lib/weblogic.jar"/>
+ </classpath>
- <echo message=""/>
- <echo message="******************************************************"/>
- <echo message="WARNING : The 'home.weblogic.70' property has not been"/>
- <echo message="set. No test will be run on that servlet engine."/>
- <echo message="******************************************************"/>
- <echo message=""/>
+ <arg line="-url t3://localhost:${test.port}"/>
+ <arg line="-username system"/>
+ <arg line="-password password"/>
+ <arg value="SHUTDOWN"/>
+
+ </java>
</target>
+
<!--
========================================================================
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>