vmassol 01/08/24 09:03:34
Modified: cactus/conf/sample/build/servlet23 build.properties.sample
build.xml
Log:
* added dependency on Commons HttpClient
* some more exact documentation
Revision Changes Path
1.11 +14 -10
jakarta-commons/cactus/conf/sample/build/servlet23/build.properties.sample
Index: build.properties.sample
===================================================================
RCS file:
/home/cvs/jakarta-commons/cactus/conf/sample/build/servlet23/build.properties.sample,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- build.properties.sample 2001/08/19 17:13:38 1.10
+++ build.properties.sample 2001/08/24 16:03:34 1.11
@@ -2,20 +2,24 @@
# for building the Cactus Sample or the properties need to be specified on
# the command line when starting Ant with the -D switch
-servlet.jar = f:/applis/apache-dev/jakarta-servletapi/lib/servlet.jar
+# Servlet API 2.3 jar
+servlet.jar = f:/applis/apache-dev/jakarta-servletapi4/lib/servlet.jar
+
+# Cactus jars
cactus.jar = ../lib/commons-cactus.jar
cactus.ant.jar = ../lib/commons-cactus-ant.jar
+
+# Junit jar (needed by Cactus)
junit.jar = f:/applis/jakarta-ant-1.4alpha/lib/junit.jar
+# Commons HttpClient class (needed by Cactus)
+httpclient.jar=../lib/commons-httpclient.jar
+
# You have 2 options. Define a property named "log4j.jar" and point it to the
# log4j jar file. In that case, Cactus will generate log files (named
# cactus_server.log and cactus_client.log). the second option is not to define
# a "log4j.jar" property and not provide the log4j jar. In that case nothing
# will be logged but everything will still run.
-
-# Note: The provided build file need log4j to be present as it is copied in
-# the test war. If you don't want to use log4j you'll have to remove
-# the task that copies it in the "testwar" target.
log4j.jar = ../lib/log4j-core.jar
# Port that will be used to start the servlet engines for testing. This is
@@ -29,8 +33,8 @@
# comment it's home property. For example, if you don't want to run the
# tests on the Resin 1.3, comment the "resin.home.13" property.
-resin.home.20 = f:/applis/resin-2.0.0
-resin.home.13 = f:/applis/resin-1.3.s010125
-tomcat.home.40 = f:/applis/jakarta-tomcat-4.0
-orion.home.14 = f:/applis/orion-1.4.5
-orion.home.15 = f:/applis/orion-1.5.2
+#resin.home.20 = f:/applis/resin-2.0.0
+#resin.home.13 = f:/applis/resin-1.3.s010125
+#tomcat.home.40 = f:/applis/jakarta-tomcat-4.0
+#orion.home.14 = f:/applis/orion-1.4.5
+#orion.home.15 = f:/applis/orion-1.5.2
1.4 +18 -9 jakarta-commons/cactus/conf/sample/build/servlet23/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-commons/cactus/conf/sample/build/servlet23/build.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- build.xml 2001/08/19 17:13:38 1.3
+++ build.xml 2001/08/24 16:03:34 1.4
@@ -9,12 +9,18 @@
<!ENTITY build-tests-tomcat-40 SYSTEM "file:./build-tests-tomcat-40.xml">
]>
-<!--
+<!--
=============================================================================
Build file for the Cactus Sample application. This is a sample build
file that demonstrates how to integrate Cactus unit testing with Ant in
order to automate the running of tests.
-
+
+ The following Ant tasks must be available in your ant installation
+ (i.e. the Ant task themselves and their dependent jars need to be put
+ in ANT_HOME/lib) :
+
+ junit [REQUIRED] For running the unit tests.
+
The following properties need to be set in a ./build.properties,
${user.home}/build.properties, a higher level build file, on the command
line, ... :
@@ -25,14 +31,17 @@
junit.jar [REQUIRED] The path to the JUnit jar file
- log4j.jar [REQUIRED] The path to the Log4j jar file
+ log4j.jar [OPTIONAL] The path to the Log4j jar file.
+ Only needed if we want logs to be generated.
+ httpclient.jar [REQUIRED] The Commons HttpClient jar file
+
cactus.ant.jar [REQUIRED] The path to the Cactus custom Ant
tasks jar file
test.port [OPTIONAL] The port that should be used for
- starting the servers during unit testing. This
- should be used not to interfere with other
+ starting the servers during unit testing. This
+ should be used not to interfere with other
running servers. The default is 8080.
Additionally and depending on the servlet engines whith which you wish to
@@ -42,20 +51,20 @@
Example: For Resin 2.0, you'll need to have a "resin.home.20" property
defined and pointing to the location where Resin 2.0 is installed.
-
+
This script should be started with the following command line :
ant <target>
Run "ant usage" to get a list of available targets. The default target is
"war"
- =============================================================================
+ =============================================================================
-->
<project name="Cactus Sample" default="war" basedir="..">
&build-share;
- <!--
+ <!--
========================================================================
Help on usage. List available targets
========================================================================
@@ -87,7 +96,7 @@
</target>
- <!--
+ <!--
========================================================================
Run all Cactus tests for Servlet API 2.3
========================================================================