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 14:05:03 UTC
cvs commit: jakarta-cactus/Eclipse-Plugin/ant/build build-tests-tomcat-40.xml
jruaux 2003/01/10 05:05:03
Modified: Eclipse-Plugin/ant/build build-tests-tomcat-40.xml
Log:
Removed console popups with java tasks (use of javaw on win32)
Revision Changes Path
1.4 +55 -20 jakarta-cactus/Eclipse-Plugin/ant/build/build-tests-tomcat-40.xml
Index: build-tests-tomcat-40.xml
===================================================================
RCS file: /home/cvs/jakarta-cactus/Eclipse-Plugin/ant/build/build-tests-tomcat-40.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- build-tests-tomcat-40.xml 30 Oct 2002 15:58:10 -0000 1.3
+++ build-tests-tomcat-40.xml 10 Jan 2003 13:05:03 -0000 1.4
@@ -1,29 +1,38 @@
<!--
========================================================================
- Run Tomcat 4.0 tests
+ Start Tomcat 4.0
========================================================================
-->
- <target name="test.tomcat.40" depends="prepare.tomcat.40"
- if="home.tomcat.40" description="Run tests on Tomcat 4.0">
+ <target name="start.tomcat.40" depends="checkwindows, windows.start.tomcat.40, other.start.tomcat.40"/>
+
+ <target name="windows.start.tomcat.40" if="isWindows">
+ <property name="target.tomcat40.dir"
+ value="${target.test.dir}/tomcat40"/>
+ <java jvm='javaw' classname="org.apache.catalina.startup.Bootstrap" fork="yes">
+
+ <jvmarg value="-Dcatalina.home=${home.tomcat.40}"/>
+ <jvmarg value="-Dcatalina.base=${target.tomcat40.dir}"/>
+ <arg value="start"/>
+
+ <classpath>
+
+ <!-- These are ignored if -Dbuild.sysclasspath=only is used -->
+ <pathelement path="${java.home}/../lib/tools.jar"/>
+ <fileset dir="${home.tomcat.40}">
+ <include name="bin/bootstrap.jar"/>
+ </fileset>
- <!-- 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.tomcat.40"
- stopTarget="stop.tomcat.40"
- testTarget="test"/>
+ <!-- This is to allow the use of -Dbuild.sysclasspath=only when
+ starting Ant - Meaning that all jars need to be on the
+ initial classpath. -->
+ <pathelement path="${java.class.path}"/>
+
+ </classpath>
+ </java>
</target>
- <!--
- ========================================================================
- Start Tomcat 4.0
- ========================================================================
- -->
- <target name="start.tomcat.40">
+ <target name="other.start.tomcat.40" unless="isWindows">
<property name="target.tomcat40.dir"
value="${target.test.dir}/tomcat40"/>
<java classname="org.apache.catalina.startup.Bootstrap" fork="yes">
@@ -49,13 +58,38 @@
</java>
</target>
-
+
<!--
========================================================================
Stop Tomcat 4.0
========================================================================
-->
- <target name="stop.tomcat.40">
+ <target name="stop.tomcat.40" depends="checkwindows, windows.stop.tomcat.40, other.stop.tomcat.40"/>
+
+ <target name="windows.stop.tomcat.40" if="isWindows">
+ <property name="target.tomcat40.dir"
+ value="${target.test.dir}/tomcat40"/>
+ <java jvm='javaw' classname="org.apache.catalina.startup.Bootstrap" fork="yes">
+ <jvmarg value="-Dcatalina.home=${home.tomcat.40}"/>
+ <jvmarg value="-Dcatalina.base=${target.tomcat40.dir}"/>
+ <arg value="stop"/>
+ <classpath>
+
+ <!-- This is to allow the use of -Dbuild.sysclasspath=only when
+ starting Ant - Meaning that all jars need to be on the
+ initial classpath -->
+ <pathelement path="${java.class.path}"/>
+
+ <!-- These are ignored if -Dbuild.sysclasspath=only is used -->
+ <fileset dir="${home.tomcat.40}">
+ <include name="bin/bootstrap.jar"/>
+ </fileset>
+ </classpath>
+ </java>
+
+ </target>
+
+ <target name="other.stop.tomcat.40" unless="isWindows">
<property name="target.tomcat40.dir"
value="${target.test.dir}/tomcat40"/>
<java classname="org.apache.catalina.startup.Bootstrap" fork="yes">
@@ -77,6 +111,7 @@
</java>
</target>
+
<!--
========================================================================
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: cvs commit: jakarta-cactus/Eclipse-Plugin/ant/build build-tests-tomcat-40.xml
Posted by Julien Ruaux <jr...@octo.com>.
Hi Chris,
You are right, this popup problem occurs when using AntRunner. I don't
think the Ant Eclipse plugin uses AntRunner to run Ant scripts, that
might explain why you don't see popups when using it.
Julien
-----Original Message-----
From: Christopher Lenz [mailto:cmlenz@gmx.de]
Sent: Friday, January 10, 2003 4:20 PM
To: Cactus Developers List
Subject: Re: cvs commit: jakarta-cactus/Eclipse-Plugin/ant/build
build-tests-tomcat-40.xml
Hi Julien,
can you describe the problem with the console popups a bit more (I've
seen your mail to platform-ant-dev@eclipse.org)... this happens only
when AntRunner is used programmatically, not when you run the script
from the regular Ant-Eclipse-Plugin, right?
I ask because I've been using the <java> task extensively in my scripts
under Eclipse, with no popups...
-chris
jruaux@apache.org wrote:
> jruaux 2003/01/10 05:05:03
>
> Modified: Eclipse-Plugin/ant/build build-tests-tomcat-40.xml
> Log:
> Removed console popups with java tasks (use of javaw on win32)
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: cvs commit: jakarta-cactus/Eclipse-Plugin/ant/build build-tests-tomcat-40.xml
Posted by Christopher Lenz <cm...@gmx.de>.
Hi Julien,
can you describe the problem with the console popups a bit more (I've
seen your mail to platform-ant-dev@eclipse.org)... this happens only
when AntRunner is used programmatically, not when you run the script
from the regular Ant-Eclipse-Plugin, right?
I ask because I've been using the <java> task extensively in my scripts
under Eclipse, with no popups...
-chris
jruaux@apache.org wrote:
> jruaux 2003/01/10 05:05:03
>
> Modified: Eclipse-Plugin/ant/build build-tests-tomcat-40.xml
> Log:
> Removed console popups with java tasks (use of javaw on win32)
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>