jvanzyl 2002/06/27 20:26:54
Added: src/plugins/j2ee build-appserver-proxy.xml build.xml
default.properties
src/plugins/j2ee/conf build-enhydra-31.xml build-j2ee-12.xml
build-j2ee-13.xml build-j2ee-share.xml
build-orion-14.xml build-orion-15.xml
build-resin-12.xml build-resin-13.xml
build-resin-20.xml build-tomcat-32.xml
build-tomcat-33.xml build-tomcat-40.xml
build-weblogic-51.xml build-weblogic-61.xml
Log:
Moving j2ee plugin.
Revision Changes Path
1.1 jakarta-turbine-maven/src/plugins/j2ee/build-appserver-proxy.xml
Index: build-appserver-proxy.xml
===================================================================
<?xml version="1.0"?>
<project name="Maven Application Server Plugin Proxy" default="install"
basedir="@basedir@">
<!-- ================================================================== -->
<!-- Proxy for controlling an installed application server instance -->
<!-- ================================================================== -->
<!-- ========================================================== -->
<!-- Give user a chance to override without editing this file -->
<!-- (and without typing -D each time they compile) -->
<!-- ========================================================== -->
<!-- all ant projects specific properties -->
<property file="${user.home}/build.properties" />
<!-- project/user specific settings -->
<property file="@basedir@/build.properties" />
<!-- anything here is expected to be project defaults -->
<property file="@basedir@/project.properties" />
<!-- ========================================================== -->
<target name="install">
<ant antfile="${maven.home}/plugins/j2ee/build.xml"
target="appserver-install" />
</target>
<target name="start">
<ant antfile="${maven.home}/plugins/j2ee/build.xml"
target="appserver-start" />
</target>
<target name="stop">
<ant antfile="${maven.home}/plugins/j2ee/build.xml"
target="appserver-stop" />
</target>
</project>
1.1 jakarta-turbine-maven/src/plugins/j2ee/build.xml
Index: build.xml
===================================================================
<?xml version='1.0' encoding='UTF-8' ?>
<project name="maven-j2ee" default="war" basedir="..">
<!-- ================================================================== -->
<!-- I N I T -->
<!-- ================================================================== -->
<target name="init" unless="maven.init">
<taskdef
name="create-classpath"
classname="org.apache.maven.ant.CreateClasspath">
<classpath>
<pathelement location="${lib.repo}/maven.jar"/>
</classpath>
</taskdef>
<create-classpath
listFile="${maven.home}/plugins/core/jars.list"
reference="pre-maven-classpath"
baseDir="${lib.repo}"
/>
<path id="maven-classpath">
<path refid="pre-maven-classpath"/>
<pathelement location="${lib.repo}/maven.jar"/>
</path>
<!-- define maven taskdefs, as taskdefs are not yet inheritable? -->
<taskdef resource="maven-taskdefs.properties">
<classpath refid="maven-classpath" />
</taskdef>
<property name="maven.init" value="true" />
<!-- call common build file initialization to verify project, update jars
load project and default properties etc -->
<maven-ant antfile="${maven.home}/plugins/core/build-init.xml"
target="verify-project"
inheritAll="true"
inheritRefs="true"
exportAll="true"
exportRefs="true"/>
</target>
<!-- ================================================================== -->
<!-- L O C A L I N I T -->
<!-- ================================================================== -->
<target name="local-init" depends="init">
<!-- Pick up tool specific defaults -->
<property file="${maven.home}/plugins/j2ee/default.properties"/>
<!-- ear -->
<condition property="maven.j2ee.callback.pre-ear.ok">
<and>
<available file="${maven.j2ee.callback.pre-ear.buildFile}"/>
<not>
<equals arg1="${maven.j2ee.callback.pre-ear.buildTarget}"
arg2="$${maven.j2ee.callback.pre-ear.buildTarget}" />
</not>
</and>
</condition>
<condition property="maven.j2ee.callback.post-ear.ok">
<and>
<available file="${maven.j2ee.callback.post-ear.buildFile}"/>
<not>
<equals arg1="${maven.j2ee.callback.post-ear.buildTarget}"
arg2="$${maven.j2ee.callback.post-ear.buildTarget}" />
</not>
</and>
</condition>
<!-- ejb -->
<condition property="maven.j2ee.callback.pre-ejb.ok">
<and>
<available file="${maven.j2ee.callback.pre-ejb.buildFile}"/>
<not>
<equals arg1="${maven.j2ee.callback.pre-ejb.buildTarget}"
arg2="$${maven.j2ee.callback.pre-ejb.buildTarget}" />
</not>
</and>
</condition>
<condition property="maven.j2ee.callback.post-ejb.ok">
<and>
<available file="${maven.j2ee.callback.post-ejb.buildFile}"/>
<not>
<equals arg1="${maven.j2ee.callback.post-ejb.buildTarget}"
arg2="$${maven.j2ee.callback.post-ejb.buildTarget}" />
</not>
</and>
</condition>
<!-- validate-war -->
<condition property="maven.j2ee.callback.pre-validate-war.ok">
<and>
<available file="${maven.j2ee.callback.pre-validate-war.buildFile}"/>
<not>
<equals arg1="${maven.j2ee.callback.pre-validate-war.buildTarget}"
arg2="$${maven.j2ee.callback.pre-validate-war.buildTarget}" />
</not>
</and>
</condition>
<condition property="maven.j2ee.callback.post-validate-war.ok">
<and>
<available file="${maven.j2ee.callback.post-validate-war.buildFile}"/>
<not>
<equals arg1="${maven.j2ee.callback.post-validate-war.buildTarget}"
arg2="$${maven.j2ee.callback.post-validate-war.buildTarget}" />
</not>
</and>
</condition>
<!-- war -->
<condition property="maven.j2ee.callback.pre-war.ok">
<and>
<available file="${maven.j2ee.callback.pre-war.buildFile}"/>
<not>
<equals arg1="${maven.j2ee.callback.pre-war.buildTarget}"
arg2="$${maven.j2ee.callback.pre-war.buildTarget}" />
</not>
</and>
</condition>
<condition property="maven.j2ee.callback.post-war.ok">
<and>
<available file="${maven.j2ee.callback.post-war.buildFile}"/>
<not>
<equals arg1="${maven.j2ee.callback.post-war.buildTarget}"
arg2="$${maven.j2ee.callback.post-war.buildTarget}" />
</not>
</and>
</condition>
</target>
<!-- ================================================================== -->
<!-- W A R -->
<!-- ================================================================== -->
<!-- build a war file -->
<target name="war" depends="local-init, war-init, war-error,
pre-war-callback, war-build, post-war-callback"
description="o Create a war file" />
<!-- check to make sure all files and properties are available -->
<target name="war-init">
<condition property="maven.j2ee.war.ready">
<and>
<not>
<equals arg1="${maven.j2ee.war.name}" arg2="$${maven.j2ee.war.name}"/>
</not>
<available file="${maven.j2ee.war.src}" type="dir"/>
<available file="${maven.j2ee.war.content}" type="dir"/>
<available file="${maven.j2ee.war.webxml}" type="file"/>
</and>
</condition>
</target>
<!-- print failure message if files and properties not available -->
<target name="war-error" unless="maven.j2ee.war.ready">
<fail>
+------------------------------------------------------------------------------
|
| ERROR: One of the required properties for maven:war was not provided.
|
| Please ensure that the property maven.j2ee.war.name is defined:
|
| maven.j2ee.war.name = ${maven.j2ee.war.name}
|
| Please ensure that the following directories exist:
|
| ${maven.j2ee.war.src}
| ${maven.j2ee.war.content}
|
| and the following files:
|
| ${maven.j2ee.war.webxml}
+------------------------------------------------------------------------------
</fail>
</target>
<!-- process any user specified pre-war callback -->
<target name="pre-war-callback" if="maven.j2ee.callback.pre-war.ok">
<maven-ant antfile="${maven.j2ee.callback.pre-war.buildFile}"
target="${maven.j2ee.callback.pre-war.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
<!-- build the war file from the various sources -->
<target name="war-build">
<!-- make sure the source is compiled -->
<maven-ant antfile="${maven.home}/plugins/core/build.xml"
inheritRefs="true" exportAll="false" exportRefs="false" target="jar" />
<echo>Building WAR ${maven.j2ee.war.name}</echo>
<war warfile="${maven.build.dir}/${maven.j2ee.war.name}.war"
webxml="${maven.j2ee.war.webxml}">
<fileset dir="${maven.j2ee.war.content}"/>
<lib dir="${lib.repo}">
<patternset refid="maven.dependency.set" />
<include name="${maven.j2ee.war.lib.includes}" />
<exclude name="${maven.j2ee.war.lib.excludes}" />
</lib>
<classes dir="${maven.build.dest}">
<include name="${maven.j2ee.war.classes.includes}" />
<exclude name="${maven.j2ee.war.classes.excludes}" />
</classes>
<metainf dir="${basedir}">
<include name="LICENSE.txt"/>
</metainf>
<manifest>
<attribute name="Built-By" value="${user.name}" />
<section name="${maven.package}">
<attribute name="Specification-Title" value="${maven.id}" />
<attribute name="Specification-Version"
value="${maven.currentVersion}" />
<attribute name="Specification-Vendor"
value="${maven.organization}" />
<attribute name="Implementation-Title"
value="${maven.package}" />
<attribute name="Implementation-Version"
value="${maven.currentVersion}" />
<attribute name="Implementation-Vendor"
value="${maven.organization}" />
</section>
</manifest>
</war>
</target>
<!-- process any user specified post-war callback -->
<target name="post-war-callback" if="maven.j2ee.callback.post-war.ok">
<maven-ant antfile="${maven.j2ee.callback.post-war.buildFile}"
target="${maven.j2ee.callback.post-war.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
<!-- ================================================================== -->
<!-- V A L I D A T E - W A R -->
<!-- ================================================================== -->
<target name="validate-war" depends="local-init,validate-war-init,
validate-war-error, pre-validate-war-callback, validate,
post-validate-war-callback" />
<!-- validate a war file -->
<target name="validate-war-init">
<condition property="maven.j2ee.war-validator.ready">
<available file="${maven.build.dir}/${maven.j2ee.war.name}.war" />
</condition>
</target>
<!-- fail if the war file doesn't exist -->
<target name="validate-war-error" unless="maven.j2ee.war-validator.ready">
<fail>
+------------------------------------------------------------------------------
|
| ERROR: One of the required properties for maven:validate-war was not provided.
|
| Please ensure that the property maven.j2ee.war.name is defined:
|
| maven.j2ee.war.name = ${maven.j2ee.war.name}
|
| Please ensure that the following file exists:
|
| ${maven.build.dir}/${maven.j2ee.war.name}.war
+------------------------------------------------------------------------------
</fail>
</target>
<!-- process any user specified pre-validate war callback -->
<target name="pre-validate-war-callback"
if="maven.j2ee.callback.pre-validate-war.ok">
<maven-ant antfile="${maven.j2ee.callback.pre-validate-war.buildFile}"
target="${maven.j2ee.callback.pre-validate-war.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
<!-- perform the validation using our custom task -->
<target name="validate">
<warvalidator warFileName="${maven.build.dir}/${maven.j2ee.war.name}.war">
<formatter type="plain" usefile="false"/>
</warvalidator>
</target>
<!-- process any user specified post-validate war callback -->
<target name="post-validate-war-callback"
if="maven.j2ee.callback.post-validate-war.ok">
<maven-ant antfile="${maven.j2ee.callback.post-validate-war.buildFile}"
target="${maven.j2ee.callback.post-validate-war.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
<!-- ================================================================== -->
<!-- E A R -->
<!-- ================================================================== -->
<!-- produce an ear file -->
<target name="ear" depends="local-init, ear-init, ear-error, war,
pre-ear-callback, ear-build, post-ear-callback"
description="o Create an ear file" />
<!-- check files and properties are available -->
<target name="ear-init">
<condition property="maven.j2ee.ear.ready">
<and>
<not>
<equals arg1="${maven.j2ee.ear.name}"
arg2="$${maven.j2ee.ear.name}" />
</not>
<available file="${maven.j2ee.ear.appxml}" type="file"/>
</and>
</condition>
</target>
<!-- fail if files and properties aren't available -->
<target name="ear-error" unless="maven.j2ee.ear.ready">
<!-- extend this list with requirements as needed -->
<fail>
+------------------------------------------------------------------------------
|
| ERROR: One of the required properties for maven:ear was not provided.
|
| Please ensure that the property maven.j2ee.ear.name is defined:
|
| maven.j2ee.ear.name = ${maven.j2ee.ear.name}
|
| and the following files:
|
| ${maven.j2ee.ear.appxml}
+------------------------------------------------------------------------------
</fail>
</target>
<!-- process any user specified pre ear callback -->
<target name="pre-ear-callback" if="maven.j2ee.callback.pre-ear.ok">
<maven-ant antfile="${maven.j2ee.callback.pre-ear.buildFile}"
target="${maven.j2ee.callback.pre-ear.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
<!-- run the ear task -->
<target name="ear-build">
<echo>Building EAR ${maven.j2ee.ear.name}</echo>
<ear earfile="${maven.build.dir}/${maven.j2ee.ear.name}.ear"
appxml="${maven.j2ee.ear.appxml}">
<fileset dir="${maven.build.dir}" includes="${maven.j2ee.ear.includes}"
excludes="${maven.j2ee.ear.excludes}" />
<metainf dir="${basedir}">
<include name="LICENSE.txt"/>
</metainf>
<manifest>
<attribute name="Built-By" value="${user.name}" />
<section name="${maven.package}">
<attribute name="Specification-Title" value="${maven.id}" />
<attribute name="Specification-Version"
value="${maven.currentVersion}" />
<attribute name="Specification-Vendor"
value="${maven.organization}" />
<attribute name="Implementation-Title"
value="${maven.package}" />
<attribute name="Implementation-Version"
value="${maven.currentVersion}" />
<attribute name="Implementation-Vendor"
value="${maven.organization}" />
</section>
</manifest>
</ear>
</target>
<!-- process any user specified post ear callback -->
<target name="post-ear-callback" if="maven.j2ee.callback.post-ear.ok">
<maven-ant antfile="${maven.j2ee.callback.post-ear.buildFile}"
target="${maven.j2ee.callback.post-ear.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
<!-- ================================================================== -->
<!-- E J B -->
<!-- ================================================================== -->
<!-- produce an ejb jar -->
<target name="ejb" depends="local-init, ejb-init, ejb-error, pre-ejb-callback,
ejb-build, post-ejb-callback"
description="Create an ejb file" />
<!-- check to make sure required files and properties are available -->
<target name="ejb-init">
<condition property="maven.j2ee.ejb.ready">
<and>
<not>
<equals arg1="${maven.j2ee.ejb.name}"
arg2="$${maven.j2ee.ejb.name}" />
</not>
<available file="${maven.j2ee.ejb.conf.dir}" type="dir"/>
</and>
</condition>
<property name="maven.j2ee.ejb.target-base"
value="${maven.build.dir}/ejb/"/>
</target>
<!-- fail the ejb jar if required files and properties are not available -->
<target name="ejb-error" unless="maven.j2ee.ejb.ready">
<fail>
+------------------------------------------------------------------------------
|
| ERROR: One of the required properties for maven:ejb was not provided.
|
| Please ensure that the property maven.j2ee.ejb.name is defined:
|
| maven.j2ee.ejb.name = ${maven.j2ee.ejb.name}
|
| and the following directories exist:
|
| ${maven.j2ee.ejb.conf.dir}
+------------------------------------------------------------------------------
</fail>
</target>
<!-- process any user defined pre ejb jar callback -->
<target name="pre-ejb-callback" if="maven.j2ee.callback.pre-ejb.ok">
<maven-ant antfile="${maven.j2ee.callback.pre-ejb.buildFile}"
target="${maven.j2ee.callback.pre-ejb.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
<!-- produce the ejb jar a remote and local jar -->
<target name="ejb-build" depends="ejb-jar, ejb-remote, ejb-local"/>
<!-- produce an ejb jar file by running the jar task -->
<target name="ejb-jar">
<!-- ejb jar is always built -->
<echo>Building EJB jar for ${maven.j2ee.ejb.name}</echo>
<mkdir dir="${maven.j2ee.ejb.target-base}"/>
<jar jarfile="${maven.j2ee.ejb.target-base}/${maven.j2ee.ejb.name}.jar"
index="true">
<fileset dir="${maven.build.dir}/classes"
includes="${maven.j2ee.ejb.includes}"
excludes="${maven.j2ee.ejb.excludes}" />
<metainf dir="${basedir}">
<include name="LICENSE.txt"/>
</metainf>
<metainf dir="${maven.j2ee.ejb.conf.dir}"
includes="${maven.j2ee.ejb.conf.includes}"
excludes="${maven.j2ee.ejb.conf.excludes}">
</metainf>
<manifest>
<attribute name="Built-By" value="${user.name}" />
<section name="${maven.package}">
<attribute name="Specification-Title" value="${maven.id}" />
<attribute name="Specification-Version"
value="${maven.currentVersion}" />
<attribute name="Specification-Vendor"
value="${maven.organization}" />
<attribute name="Implementation-Title"
value="${maven.package}" />
<attribute name="Implementation-Version"
value="${maven.currentVersion}" />
<attribute name="Implementation-Vendor"
value="${maven.organization}" />
</section>
</manifest>
</jar>
</target>
<!-- produce an ejb jar with local interfaces -->
<target name="ejb-local" if="maven.j2ee.ejb.local.includes">
<echo>Building EJB local interface jar for ${maven.j2ee.ejb.name}</echo>
<!-- in case excludes hasn't been set -->
<property name="maven.j2ee.ejb.local.excludes" value=""/>
<mkdir dir="${maven.j2ee.ejb.target-base}"/>
<jar jarfile="${maven.j2ee.ejb.target-base}/${maven.j2ee.ejb.name}-local.jar"
index="true">
<fileset dir="${maven.build.dir}/classes"
includes="${maven.j2ee.ejb.local.includes}"
excludes="${maven.j2ee.ejb.local.excludes}" />
<metainf dir="${basedir}">
<include name="LICENSE.txt"/>
</metainf>
<manifest>
<attribute name="Built-By" value="${user.name}" />
<section name="${maven.package}">
<attribute name="Specification-Title" value="${maven.id}" />
<attribute name="Specification-Version"
value="${maven.currentVersion}" />
<attribute name="Specification-Vendor"
value="${maven.organization}" />
<attribute name="Implementation-Title"
value="${maven.package}" />
<attribute name="Implementation-Version"
value="${maven.currentVersion}" />
<attribute name="Implementation-Vendor"
value="${maven.organization}" />
</section>
</manifest>
</jar>
</target>
<!-- produce an ejb jar with remote references -->
<target name="ejb-remote" if="maven.j2ee.ejb.remote.includes">
<!-- ejb jar is always built -->
<echo>Building EJB remote interface jar for ${maven.j2ee.ejb.name}</echo>
<!-- in case excludes hasn't been set -->
<property name="maven.j2ee.ejb.remote.excludes" value=""/>
<mkdir dir="${maven.j2ee.ejb.target-base}"/>
<jar jarfile="${maven.j2ee.ejb.target-base}/${maven.j2ee.ejb.name}-remote.jar"
index="true">
<fileset dir="${maven.build.dir}/classes"
includes="${maven.j2ee.ejb.remote.includes}"
excludes="${maven.j2ee.ejb.remote.excludes}" />
<metainf dir="${basedir}">
<include name="LICENSE.txt"/>
</metainf>
<manifest>
<attribute name="Built-By" value="${user.name}" />
<section name="${maven.package}">
<attribute name="Specification-Title" value="${maven.id}" />
<attribute name="Specification-Version"
value="${maven.currentVersion}" />
<attribute name="Specification-Vendor"
value="${maven.organization}" />
<attribute name="Implementation-Title"
value="${maven.package}" />
<attribute name="Implementation-Version"
value="${maven.currentVersion}" />
<attribute name="Implementation-Vendor"
value="${maven.organization}" />
</section>
</manifest>
</jar>
</target>
<!-- process any user defined post ejb jar callback -->
<target name="post-ejb-callback" if="maven.j2ee.callback.post-ejb.ok">
<maven-ant antfile="${maven.j2ee.callback.post-ejb.buildFile}"
target="${maven.j2ee.callback.post-ejb.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
<!-- ================================================================== -->
<!-- A P P S E R V E R M A I N T A R G E T S -->
<!-- ================================================================== -->
<!-- set a property indicating if the server is installed -->
<target name="check-appserver-installed">
<available property="maven.appserver.installed"
file="${maven.appserver.dir}"
type="dir" />
</target>
<!-- set a property indicating if the appserver is started -->
<target name="check-appserver-started">
<!-- This is temporary workaround for the lack of HTTP condition
in Ant 1.4* -->
<taskdef
name="server-started-check"
classname="org.apache.maven.ant.ServerStartedCheckTask">
<classpath>
<pathelement location="${lib.repo}/maven.jar"/>
</classpath>
</taskdef>
<server-started-check propertyName="maven.appserver.started"
URL="${maven.appserver.url}" />
</target>
<!--==================================================================-->
<!-- check and confirm proper appserver properties -->
<!--==================================================================-->
<target name="check-appserver-properties">
<property name="maven.appserver.properties.ok" value="true" />
<condition property="maven.appserver.properties.ok">
<and>
<not>
<equals arg1="${maven.j2ee.version}"
arg2="$${maven.j2ee.version}" />
</not>
<not>
<equals arg1="${maven.appserver.name}"
arg2="$${maven.appserver.name}" />
</not>
<not>
<equals arg1="${maven.appserver.version}"
arg2="$${maven.appserver.version}" />
</not>
<not>
<equals arg1="${maven.appserver.dir}"
arg2="$${maven.appserver.dir}" />
</not>
<not>
<equals arg1="${maven.appserver.host}"
arg2="$${maven.appserver.host}" />
</not>
<not>
<equals arg1="${maven.appserver.port.http}"
arg2="$${maven.appserver.port.http}" />
</not>
<not>
<equals arg1="${maven.appserver.url}"
arg2="$${maven.appserver.url}" />
</not>
<available file="${maven.appserver.home}" type="dir"/>
</and>
</condition>
</target>
<target name="confirm-appserver-properties"
depends="check-appserver-properties"
unless="maven.appserver.properties.ok">
<fail>
One or more required maven.appserver.* properties are invalid.
Examine the values below, make your corrections and try again.
--------------------------------------------------------------
$${maven.j2ee.version} = ${maven.j2ee.version}
$${maven.appserver.name} = ${maven.appserver.name}
$${maven.appserver.version} = ${maven.appserver.version}
$${maven.appserver.home} = ${maven.appserver.home}
$${maven.appserver.dir} = ${maven.appserver.dir}
$${maven.appserver.host} = ${maven.appserver.host}
$${maven.appserver.port.http} = ${maven.appserver.port.http}
$${maven.appserver.url} =
${maven.appserver.url}
</fail>
</target>
<target name="appserver-init"
depends="confirm-appserver-properties,
check-appserver-installed,
check-appserver-started" />
<!--==================================================================-->
<!-- I N S T A L L -->
<!--
Install Rules:
1. if appserver is installed and stopped , reinstall over what is there
2. if appserver is installed and started , stop-reinstall-restart
3. always overwrite install files from last install in case the user
changed property values. ( see the appserver's specific install target )
-->
<!--==================================================================-->
<target name="appserver-install"
depends="local-init,
appserver-init,
appserver-install-notify,
appserver-install-proxy">
</target>
<target name="appserver-install-notify">
<property name="appserver-install.called" value="true" />
</target>
<target name="appserver-install-proxy"
depends="warn-appserver-reinstall-restarted,
warn-appserver-reinstall,
warn-appserver-restarted,
appserver-stop,
pre-appserver-install-callback,
appserver-install-build,
post-appserver-install-callback,
appserver-restart"/>
<target name="appserver-install-build">
<echo message="Installing ${maven.appserver.name} ${maven.appserver.version}" />
<echo message="to ${maven.appserver.dir}" />
<ant
antfile="${maven.home}/plugins/j2ee/conf/build-j2ee-${maven.j2ee.version}.xml"
target="install-${maven.appserver.name}-${maven.appserver.version}" />
<!-- copy the proxy file -->
<copy file="${maven.home}/plugins/j2ee/build-appserver-proxy.xml"
tofile="${maven.appserver.dir}/build.xml">
<filterset>
<filter token="basedir" value="${basedir}" />
</filterset>
</copy>
</target>
<!-- called from install target if when requested to install and the -->
<!-- appserver was already installed and started -->
<target name="appserver-restart"
if="appserver-install.called,maven.appserver.installed,
maven.appserver.started" unless="appserver-start.called">
<echo>Restarting ${maven.appserver.name}-${maven.appserver.version}
after reinstalling into ${maven.appserver.dir}</echo>
<antcall target="appserver-start-proxy"/>
</target>
<!--===================================================================-->
<!-- various user notification messages - clunky until Ant 1.5 -->
<target name="warn-appserver-reinstall-restarted-check">
<condition property="warn-appserver-reinstall-restarted-check.ok">
<and>
<not>
<equals arg1="${appserver-install.called}"
arg2="$${appserver-install.called}" />
</not>
<not>
<equals arg1="${maven.appserver.installed}"
arg2="$${maven.appserver.installed}" />
</not>
<not>
<equals arg1="${maven.appserver.started}"
arg2="$${maven.appserver.started}" />
</not>
<not>
<equals arg1="${maven.appserver.started}"
arg2="false" />
</not>
</and>
</condition>
</target>
<target name="warn-appserver-reinstall-restarted"
depends="warn-appserver-reinstall-restarted-check"
if="warn-appserver-reinstall-restarted-check.ok">
<echo message="Stoping, reinstalling and restarting appserver..." />
</target>
<target name="warn-appserver-reinstall-check">
<condition property="warn-appserver-reinstall-check.ok">
<and>
<not>
<equals arg1="${appserver-install.called}"
arg2="$${appserver-install.called}" />
</not>
<not>
<equals arg1="${maven.appserver.installed}"
arg2="$${maven.appserver.installed}" />
</not>
<equals arg1="${maven.appserver.started}"
arg2="true" />
</and>
</condition>
</target>
<target name="warn-appserver-reinstall"
depends="warn-appserver-reinstall-check"
if="warn-appserver-reinstall-check.ok"
unless="maven.appserver.started">
<echo message="Reinstalling your appserver..." />
</target>
<target name="warn-appserver-restarted"
if="appserver-start.called">
<echo message="Restarting your appserver..." />
</target>
<!-- process any user specified appserver-install callbacks -->
<target name="pre-appserver-install-callback"
if="maven.appserver.callback.pre-appserver-install.ok">
<maven-ant antfile="${maven.appserver.callback.pre-appserver-install.buildFile}"
target="${maven.appserver.callback.pre-appserver-install.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
<target name="post-appserver-install-callback"
if="maven.appserver.callback.post-appserver-install.ok">
<maven-ant antfile="${maven.appserver.callback.post-appserver-install.buildFile}"
target="${maven.appserver.callback.post-appserver-install.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
<!--==================================================================-->
<!-- S T A R T -->
<!--
Start Rules:
1. if the appserver is not installed, install, then start
2. if already installed and stopped, attempt to start
3. if already installed and started, stop and then start again ( restart )
WITHOUT a reinstall - this is a quick way to reload webapps classes and
configuration if auto class reloading doesn't cut it
-->
<target name="appserver-start"
depends="local-init,
appserver-init,
appserver-start-notify,
appserver-install-proxy,
appserver-start-proxy" />
<target name="appserver-start-notify">
<property name="appserver-start.called" value="true" />
</target>
<target name="appserver-start-proxy"
depends="pre-appserver-start-callback,
appserver-start-build,
post-appserver-start-callback"/>
<target name="appserver-start-build">
<ant
antfile="${maven.home}/plugins/j2ee/conf/build-j2ee-${maven.j2ee.version}.xml"
target="start-${maven.appserver.name}-${maven.appserver.version}" />
</target>
<!-- process any user specified appserver-start callbacks -->
<target name="pre-appserver-start-callback"
if="maven.appserver.callback.pre-appserver-start.ok">
<maven-ant antfile="${maven.appserver.callback.pre-appserver-start.buildFile}"
target="${maven.appserver.callback.pre-appserver-start.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
<target name="post-appserver-start-callback"
if="maven.appserver.callback.post-appserver-start.ok">
<maven-ant antfile="${maven.appserver.callback.post-appserver-start.buildFile}"
target="${maven.appserver.callback.post-appserver-start.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
<!--==================================================================-->
<!-- S T O P -->
<!--
Stop Rules:
1. if the appserver is started, stop it
-->
<!--==================================================================-->
<target name="appserver-stop"
depends="local-init,
appserver-init,
pre-appserver-stop-callback,
appserver-stop-build,
post-appserver-stop-callback"/>
<target name="appserver-stop-build"
depends="warn-appserver-stopped"
if="maven.appserver.started">
<echo>Stoping ${maven.appserver.name}-${maven.appserver.version}</echo>
<ant
antfile="${maven.home}/plugins/j2ee/conf/build-j2ee-${maven.j2ee.version}.xml"
target="stop-${maven.appserver.name}-${maven.appserver.version}" />
</target>
<!-- let the user know we think their appserver appears stopped -->
<target name="warn-appserver-stopped" unless="maven.appserver.started">
<echo message="Could not establish a http connection to" />
<echo message="" />
<echo message="${maven.appserver.url}" />
<echo message="" />
<echo message="Your ${maven.appserver.name} instance appears stopped." />
</target>
<!-- process any user specified appserver-stop callbacks -->
<target name="pre-appserver-stop-callback"
if="maven.appserver.callback.pre-appserver-stop.ok">
<maven-ant antfile="${maven.appserver.callback.pre-appserver-stop.buildFile}"
target="${maven.appserver.callback.pre-appserver-stop.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
<target name="post-appserver-stop-callback"
if="maven.appserver.callback.post-appserver-stop.ok">
<maven-ant antfile="${maven.appserver.callback.post-appserver-stop.buildFile}"
target="${maven.appserver.callback.post-appserver-stop.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
<!--==================================================================-->
<!-- C L E A N -->
<!--
Clean Rules:
1. if the server is running, stop it
2. delete the entire install directory.
-->
<!--==================================================================-->
<target name="appserver-clean"
depends="local-init,
appserver-init,
appserver-stop,
pre-appserver-clean-callback,
appserver-clean-build,
post-appserver-clean-callback"/>
<target name="appserver-clean-build" >
<echo message="Deleting ${maven.appserver.name}-${maven.appserver.version}" />
<echo message="and all installed webapps from" />
<echo message="${maven.appserver.dir}..." />
<delete dir="${maven.appserver.dir}"/>
</target>
<!-- process any user specified appserver-clean callbacks -->
<target name="pre-appserver-clean-callback"
if="maven.appserver.callback.pre-appserver-clean.ok">
<maven-ant antfile="${maven.appserver.callback.pre-appserver-clean.buildFile}"
target="${maven.appserver.callback.pre-appserver-clean.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
<target name="post-appserver-clean-callback"
if="maven.appserver.callback.post-appserver-clean.ok">
<maven-ant antfile="${maven.appserver.callback.post-appserver-clean.buildFile}"
target="${maven.appserver.callback.post-appserver-clean.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
</project>
1.1 jakarta-turbine-maven/src/plugins/j2ee/default.properties
Index: default.properties
===================================================================
# -------------------------------------------------------------------
# Default Maven properties for the J2EE Plugin
# -------------------------------------------------------------------
# These are the properties that we believe are immutable so we
# keep them apart from the project specific properties.
# -------------------------------------------------------------------
# -------------------------------------------------------------------
# Properties for the "war" target
# -------------------------------------------------------------------
# List of mandatory properties that need to be defined in the project
# properties for the "war" target :
#
# maven.j2ee.war.name : name of the webapp
# Location of where webapps are located in the source tree. There can
# be several webapps but only one is built at a time and the one that
# is built is the one specified by ${maven.j2ee.war.name} which must
# be defined in the project properties.
maven.j2ee.war.src=${maven.src.dir}/webapps
# Content of the war (JSPs, HTML, etc). This can optionally include
# WEB-INF content.
maven.j2ee.war.content=${maven.j2ee.war.src}/${maven.j2ee.war.name}
# Location of web.xml file
maven.j2ee.war.webxml=${maven.conf.dir}/${maven.j2ee.war.name}-web.xml
# Classes to include and exclude from WEB-INF/classes
# Note: Classes are relative to build.dir
maven.j2ee.war.classes.includes=**
maven.j2ee.war.classes.excludes=**/package.html
# Jars to include and exclude from WEB-INF/classes
# Note: jars are relative to lib.repo
maven.j2ee.war.lib.includes=
maven.j2ee.war.lib.excludes=servlet*.jar,jdbc*.jar,jms*.jar,jta*.jar,javamail*.jar,activation*.jar
# -------------------------------------------------------------------
# Properties for the "ear" target
# -------------------------------------------------------------------
# List of mandatory properties that need to be defined in the project
# properties for the "ear" target :
#
# maven.j2ee.ear.name : name of the ear
# Location of the ear application.xml file
maven.j2ee.ear.appxml=${maven.conf.dir}/${maven.j2ee.ear.name}-application.xml
# J2EE modules to include and exclude from the ear
# Note: These files are relative to ${maven.build.dir}
maven.j2ee.ear.includes=*.jar, *.war
maven.j2ee.ear.excludes=
# -------------------------------------------------------------------
# Properties for the "ejb" target
# -------------------------------------------------------------------
# Required
#maven.j2ee.ejb.name
# Defaulted
maven.j2ee.ejb.conf.dir=${maven.conf.dir}/${maven.j2ee.ejb.name}/
maven.j2ee.ejb.conf.includes=ejb-jar.xml
maven.j2ee.ejb.conf.excludes=
maven.j2ee.ejb.includes=**
maven.j2ee.ejb.excludes=**/package.html
# Optional
# Local Interfaces Jar
#maven.j2ee.ejb.local.includes=**/interfaces/*Local*.class
#maven.j2ee.ejb.local.excludes=**/package.html
# Remote Interfaces Jar
#maven.j2ee.ejb.remote.includes=**/interfaces/*
#maven.j2ee.ejb.remote.excludes=**/interfaces/*Local*.class
#############################################################################
# A P P S E R V E R
#----------------------------------------------------------------------------
#
# used to let the appserver build scripts know which version of j2ee we are
# running against
#
maven.j2ee.version=13
#
# the place where the main install of the application server resides
#
maven.appserver.home=/apps/jakarta-tomcat-4
#
# a supported name of an application server instance to install
#
maven.appserver.name=tomcat
#
# version number of the application server, in the form of ##
#
maven.appserver.version=40
#
# ports to access this server instance
#
maven.appserver.port.http=8082
maven.appserver.port.https=8083
maven.appserver.port.one=8087
maven.appserver.port.two=8088
maven.appserver.port.three=8089
#
# where to install the local instance of the server
#
maven.appserver.dir=${basedir}/server
#
# files in an 'includes' pattern to include when controlling the server
# For example, if you have classes in your classpath you would like to
# include when starting the server, you could use
# maven.appserver.classpath=${java.class.path}
# paths can be absolute or relative to ${maven.appserver.dir} as that is
# where a jvm will be started. This is common for libraries that need sharing
# across all webapps installed in the server
#
maven.appserver.classpath=
#
# The host name, used when configuring, defaults to localhost
#
maven.appserver.host=localhost
#
# The URL used to test the current running status of the appserver
#
maven.appserver.url=http://${maven.appserver.host}:${maven.appserver.port.http}/index.html
1.1 jakarta-turbine-maven/src/plugins/j2ee/conf/build-enhydra-31.xml
Index: build-enhydra-31.xml
===================================================================
<!--
========================================================================
E N H Y D R A 3.1
========================================================================
-->
<!--
========================================================================
Install and configure Enhydra 3.1 instance
========================================================================
-->
<target name="install-enhydra-31">
<!-- Create common directories and copy configuration files -->
<mkdir dir="${maven.appserver.dir}/conf"/>
<mkdir dir="${maven.appserver.dir}/work"/>
<mkdir dir="${maven.appserver.dir}/webapps"/>
<!-- copy any user configuration files w/ filtering by forcing copy -->
<!-- expecting at least multiserver.conf -->
<copy todir="${maven.appserver.dir}/conf" overwrite="true" >
<fileset dir="${maven.conf.dir}/enhydra31" excludes="**/web.xml"/>
<filterset refid="maven.appserver.filterset" />
</copy>
<!-- Note: Enhydra 3.1 does not support automatic war deployment -->
<!-- so any war files will have to be unwared -->
</target>
<!--
========================================================================
Start Enhydra 3.1
========================================================================
-->
<target name="start-enhydra-31">
<java classname="org.apache.cactus.ant.EnhydraRun" fork="yes">
<arg value="-start"/>
<arg value="${maven.appserver.dir}/conf/multiserver.conf"/>
<classpath>
<fileset dir="${maven.appserver.home}/lib">
<include name="enhydra.jar"/>
<include name="admin.jar"/>
</fileset>
<pathelement location="${cactus.ant.jar}"/>
<pathelement location="${java.home}/../lib/tools.jar"/>
</classpath>
</java>
</target>
<!--
========================================================================
Stop Enhydra 3.1
========================================================================
-->
<target name="stop-enhydra-31">
<java classname="org.apache.cactus.ant.EnhydraRun" fork="yes">
<arg value="-stop"/>
<classpath>
<fileset dir="${maven.appserver.home}/lib">
<include name="enhydra.jar"/>
<include name="admin.jar"/>
</fileset>
<pathelement location="${cactus.ant.jar}"/>
<pathelement location="${java.home}/../lib/tools.jar"/>
</classpath>
</java>
</target>
1.1 jakarta-turbine-maven/src/plugins/j2ee/conf/build-j2ee-12.xml
Index: build-j2ee-12.xml
===================================================================
<?xml version="1.0"?>
<!-- files included here imply that the build files support j2ee12 -->
<!-- <!DOCTYPE project [
<!ENTITY build-j2ee-share SYSTEM "file:./build-j2ee-share.xml">
<!ENTITY build-resin-20 SYSTEM "file:./build-resin-20.xml">
<!ENTITY build-resin-12 SYSTEM "file:./build-resin-12.xml">
<!ENTITY build-orion-14 SYSTEM "file:./build-orion-14.xml">
<!ENTITY build-orion-15 SYSTEM "file:./build-orion-15.xml">
<!ENTITY build-tomcat-32 SYSTEM "file:./build-tomcat-32.xml">
<!ENTITY build-tomcat-33 SYSTEM "file:./build-tomcat-33.xml">
<!ENTITY build-weblogic-51 SYSTEM "file:./build-weblogic-51.xml">
<!ENTITY build-enhydra-31 SYSTEM "file:./build-enhydra-31.xml">
<!ENTITY build-weblogic-61 SYSTEM "file:./build-weblogic-61.xml">
]> -->
<!--
&build-resin-20;
&build-resin-12;
&build-orion-14;
&build-orion-15;
&build-tomcat-32;
&build-tomcat-33;
&build-weblogic-51;
&build-enhydra-31;
&build-weblogic-61;
-->
<!DOCTYPE project [
<!ENTITY build-j2ee-share SYSTEM "file:./build-j2ee-share.xml">
<!ENTITY build-tomcat-40 SYSTEM "file:./build-tomcat-40.xml">
]>
<project name="Application Server Control for Servlet API 2.2" default="init"
basedir=".">
&build-j2ee-share;
&build-tomcat-40;
</project>
1.1 jakarta-turbine-maven/src/plugins/j2ee/conf/build-j2ee-13.xml
Index: build-j2ee-13.xml
===================================================================
<?xml version="1.0"?>
<!-- files included here imply that the build files support j2ee13 -->
<!--<!ENTITY build-resin-20 SYSTEM "file:./build-resin-20.xml">
<!ENTITY build-resin-13 SYSTEM "file:./build-resin-13.xml">
<!ENTITY build-orion-14 SYSTEM "file:./build-orion-14.xml">
<!ENTITY build-orion-15 SYSTEM "file:./build-orion-15.xml">
<!ENTITY build-weblogic-61 SYSTEM "file:./build-weblogic-61.xml">
&build-resin-20;
&build-resin-13;
&build-orion-14;
&build-orion-15;
&build-weblogic-61;
-->
<!DOCTYPE project [
<!ENTITY build-j2ee-share SYSTEM "file:./build-j2ee-share.xml">
<!ENTITY build-tomcat-40 SYSTEM "file:./build-tomcat-40.xml">
]>
<!--
=============================================================================
Build file for installing and controlling aplication server instances
using Servlet API 2.3 - J2EE13
-->
<project name="Application Server Installs for Servlet API 2.3" default="init"
basedir=".">
&build-j2ee-share;
&build-tomcat-40;
</project>
1.1 jakarta-turbine-maven/src/plugins/j2ee/conf/build-j2ee-share.xml
Index: build-j2ee-share.xml
===================================================================
<!--
========================================================================
The filterset used when configuring files for the appserver
========================================================================
-->
<filterset id="maven.appserver.filterset">
<!-- filters must be explicitly listed from properties instead of file -->
<!-- this is due to the user may have overridden these properties and -->
<!-- the fact that properties can't be expanded from a filtersfile -->
<!-- for the user to add more filter tokens, they should use a callback -->
<filter token="maven.appserver.name" value="${maven.appserver.name}" />
<filter token="maven.appserver.version" value="${maven.appserver.name}" />
<filter token="maven.appserver.home" value="${maven.appserver.home}" />
<filter token="maven.appserver.dir" value="${maven.appserver.dir}" />
<filter token="maven.appserver.host" value="${maven.appserver.host}" />
<filter token="maven.appserver.url" value="${maven.appserver.url}" />
<filter token="maven.appserver.port.http" value="${maven.appserver.port.http}"
/>
<filter token="maven.appserver.port.https"
value="${maven.appserver.port.https}" />
<filter token="maven.appserver.port.one" value="${maven.appserver.port.one}" />
<filter token="maven.appserver.port.two" value="${maven.appserver.port.two}" />
<filter token="maven.appserver.port.three"
value="${maven.appserver.port.three}" />
<filter token="maven.appserver.classpath" value="${maven.appserver.classpath}"
/>
</filterset>
<!--
========================================================================
Initialize the build. Must be called by all targets
========================================================================
-->
<target name="init">
<tstamp/>
</target>
1.1 jakarta-turbine-maven/src/plugins/j2ee/conf/build-orion-14.xml
Index: build-orion-14.xml
===================================================================
<!--
========================================================================
Run Orion 1.4 tests
========================================================================
-->
<target name="test.orion.14" depends="prepare.test.orion.14"
if="maven.appserver.home" description="Run tests on Orion 1.4">
<!-- 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"
startTarget="start.orion.14"
stopTarget="stop.orion.14"
testTarget="test"/>
</target>
<!--
========================================================================
Start Orion 1.4
========================================================================
-->
<target name="start.orion.14">
<java classname="com.evermind.server.ApplicationServer" fork="yes">
<arg value="-config"/>
<arg value="${maven.appserver.dir}/conf/server.xml"/>
<classpath>
<fileset dir="${maven.appserver.home}">
<include name="*.jar"/>
</fileset>
</classpath>
</java>
</target>
<!--
========================================================================
Stop Orion 1.4
========================================================================
-->
<target name="stop.orion.14">
<java classname="com.evermind.client.orion.OrionConsoleAdmin" fork="yes">
<arg value="ormi://localhost:23791/"/>
<arg value="admin"/>
<arg value="password"/>
<arg value="-shutdown"/>
<classpath>
<fileset dir="${maven.appserver.home}">
<include name="*.jar"/>
</fileset>
</classpath>
</java>
</target>
<!--
========================================================================
Display a warning message if the needed servlet engine home property
is not set
========================================================================
-->
<target name="check.test.orion.14" unless="maven.appserver.home">
<echo message=""/>
<echo message="******************************************************"/>
<echo message="WARNING : The 'maven.appserver.home' property has not been"/>
<echo message="set. No test will be run on that servlet engine."/>
<echo message="******************************************************"/>
<echo message=""/>
</target>
<!--
========================================================================
Prepare directories and variables for running the tests
========================================================================
-->
<target name="prepare.test.orion.14"
depends="check.test.orion.14,testwar" if="maven.appserver.home">
<echo message="maven.appserver.home = ${maven.appserver.home}"/>
<property name="maven.appserver.dir" value="${target.test.dir}/orion14"/>
<property name="conf.orion14.dir" value="${conf.test.dir}/orion14"/>
<!-- Create work and conf directories and copy configuration files -->
<mkdir dir="${maven.appserver.dir}"/>
<mkdir dir="${maven.appserver.dir}/conf"/>
<!-- Orion need to have a /persistence directory created, otherwise
it throws an error -->
<mkdir dir="${maven.appserver.dir}/persistence"/>
<copy todir="${maven.appserver.dir}/conf" filtering="on">
<fileset dir="${conf.orion14.dir}"/>
</copy>
<!-- Copy the war file -->
<copy file="${target.test.dir}/test.war"
tofile="${maven.appserver.dir}/test.war"/>
</target>
1.1 jakarta-turbine-maven/src/plugins/j2ee/conf/build-orion-15.xml
Index: build-orion-15.xml
===================================================================
<!--
========================================================================
Run Orion 1.5 tests
========================================================================
-->
<target name="test.orion.15" depends="prepare.test.orion.15"
if="maven.appserver.home" description="Run tests on Orion 1.5">
<!-- 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"
startTarget="start.orion.15"
stopTarget="stop.orion.15"
testTarget="test"/>
</target>
<!--
========================================================================
Start Orion 1.5
========================================================================
-->
<target name="start.orion.15">
<java classname="com.evermind.server.ApplicationServer" fork="yes">
<arg value="-config"/>
<arg value="${maven.appserver.dir}/conf/server.xml"/>
<classpath>
<fileset dir="${maven.appserver.home}">
<include name="*.jar"/>
</fileset>
</classpath>
</java>
</target>
<!--
========================================================================
Stop Orion 1.5
========================================================================
-->
<target name="stop.orion.15">
<java classname="com.evermind.client.orion.OrionConsoleAdmin"
fork="yes">
<arg value="ormi://localhost:23791/"/>
<arg value="admin"/>
<arg value="password"/>
<arg value="-shutdown"/>
<classpath>
<fileset dir="${maven.appserver.home}">
<include name="*.jar"/>
</fileset>
</classpath>
</java>
</target>
<!--
========================================================================
Display a warning message if the needed servlet engine home property
is not set
========================================================================
-->
<target name="check.test.orion.15" unless="maven.appserver.home">
<echo message=""/>
<echo message="******************************************************"/>
<echo message="WARNING : The 'maven.appserver.home' property has not been"/>
<echo message="set. No test will be run on that servlet engine."/>
<echo message="******************************************************"/>
<echo message=""/>
</target>
<!--
========================================================================
Prepare directories and variables for running the tests
========================================================================
-->
<target name="prepare.test.orion.15"
depends="check.test.orion.15,testwar" if="maven.appserver.home">
<echo message="maven.appserver.home = ${maven.appserver.home}"/>
<property name="maven.appserver.dir" value="${target.test.dir}/orion15"/>
<property name="conf.orion15.dir" value="${conf.test.dir}/orion15"/>
<!-- Create work and conf directories and copy configuration files -->
<mkdir dir="${maven.appserver.dir}"/>
<mkdir dir="${maven.appserver.dir}/conf"/>
<!-- Orion need to have a /persistence directory created, otherwise
it throws an error -->
<mkdir dir="${maven.appserver.dir}/persistence"/>
<copy todir="${maven.appserver.dir}/conf" filtering="on">
<fileset dir="${conf.orion15.dir}"/>
</copy>
<!-- Copy the war file -->
<copy file="${target.test.dir}/test.war"
tofile="${maven.appserver.dir}/test.war"/>
</target>
1.1 jakarta-turbine-maven/src/plugins/j2ee/conf/build-resin-12.xml
Index: build-resin-12.xml
===================================================================
<!--
========================================================================
Run Resin 1.2 tests
========================================================================
-->
<target name="test.resin.12" depends="prepare.test.resin.12"
if="maven.appserver.home" description="Run tests on Resin 1.2">
<!-- 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"
startTarget="start.resin.12"
stopTarget="stop.resin.12"
testTarget="test"/>
</target>
<!--
========================================================================
Start Resin 1.2
========================================================================
-->
<target name="start.resin.12">
<java classname="org.apache.cactus.ant.ResinRun" fork="yes">
<arg value="-start"/>
<arg value="-conf"/>
<arg value="resin.conf"/>
<!-- Needed so that Resin use the maven.appserver.home variable as it's
root directory for resolving file paths -->
<jvmarg value="-Dresin.home=${maven.appserver.dir}"/>
<classpath>
<pathelement location="${cactus.ant.jar}"/>
<fileset dir="${maven.appserver.home}/lib">
<include name="*.jar"/>
</fileset>
</classpath>
</java>
</target>
<!--
========================================================================
Stop Resin 1.2
========================================================================
-->
<target name="stop.resin.12">
<java classname="org.apache.cactus.ant.ResinRun" fork="yes">
<arg value="-stop"/>
<classpath>
<pathelement location="${cactus.ant.jar}"/>
<fileset dir="${maven.appserver.home}/lib">
<include name="*.jar"/>
</fileset>
</classpath>
</java>
</target>
<!--
========================================================================
Display a warning message if the needed servlet engine home property
is not set
========================================================================
-->
<target name="check.test.resin.12" unless="maven.appserver.home">
<echo message=""/>
<echo message="******************************************************"/>
<echo message="WARNING : The 'maven.appserver.home' property has not been "/>
<echo message="set. No test will be run on that servlet engine."/>
<echo message="******************************************************"/>
<echo message=""/>
</target>
<!--
========================================================================
Prepare directories and variables for running the tests
========================================================================
-->
<target name="prepare.test.resin.12"
depends="check.test.resin.12,testwar" if="maven.appserver.home">
<echo message="maven.appserver.home = ${maven.appserver.home}"/>
<property name="maven.appserver.dir" value="${target.test.dir}/resin12"/>
<property name="conf.resin12.dir" value="${conf.test.dir}/resin12"/>
<mkdir dir="${maven.appserver.dir}"/>
<!-- Copy resin configuration files -->
<copy file="${conf.resin12.dir}/resin.conf"
tofile="${maven.appserver.dir}/resin.conf" filtering="on"/>
<!-- Create the war file -->
<copy file="${target.test.dir}/test.war"
tofile="${maven.appserver.dir}/test.war"/>
</target>
1.1 jakarta-turbine-maven/src/plugins/j2ee/conf/build-resin-13.xml
Index: build-resin-13.xml
===================================================================
<!--
========================================================================
Run Resin 1.3 tests
========================================================================
-->
<target name="test.resin.13" depends="prepare.test.resin.13"
if="maven.appserver.home" description="Run tests on Resin 1.3">
<!-- 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"
startTarget="start.resin.13"
stopTarget="stop.resin.13"
testTarget="test"/>
</target>
<!--
========================================================================
Start Resin 1.3
========================================================================
-->
<target name="start.resin.13">
<java classname="org.apache.cactus.ant.ResinRun" fork="yes">
<arg value="-start"/>
<arg value="-conf"/>
<arg value="resin.conf"/>
<!-- Needed so that Resin use the maven.appserver.home variable as it's
root directory for resolving file paths -->
<jvmarg value="-Dresin.home=${maven.appserver.dir}"/>
<classpath>
<pathelement location="${cactus.ant.jar}"/>
<fileset dir="${maven.appserver.home}/lib">
<include name="*.jar"/>
</fileset>
</classpath>
</java>
</target>
<!--
========================================================================
Stop Resin 1.3
========================================================================
-->
<target name="stop.resin.13">
<java classname="org.apache.cactus.ant.ResinRun" fork="yes">
<arg value="-stop"/>
<classpath>
<pathelement location="${cactus.ant.jar}"/>
<fileset dir="${maven.appserver.home}/lib">
<include name="*.jar"/>
</fileset>
</classpath>
</java>
</target>
<!--
========================================================================
Display a warning message if the needed servlet engine home property
is not set
========================================================================
-->
<target name="check.test.resin.13" unless="maven.appserver.home">
<echo message=""/>
<echo message="******************************************************"/>
<echo message="WARNING : The 'maven.appserver.home' property has not been "/>
<echo message="set. No test will be run on that servlet engine."/>
<echo message="******************************************************"/>
<echo message=""/>
</target>
<!--
========================================================================
Prepare directories and variables for running the tests
========================================================================
-->
<target name="prepare.test.resin.13"
depends="check.test.resin.13,testwar" if="maven.appserver.home">
<echo message="maven.appserver.home = ${maven.appserver.home}"/>
<property name="maven.appserver.dir" value="${target.test.dir}/resin13"/>
<property name="conf.resin13.dir" value="${conf.test.dir}/resin13"/>
<mkdir dir="${maven.appserver.dir}"/>
<!-- Copy resin configuration files -->
<copy file="${conf.resin13.dir}/resin.conf"
tofile="${maven.appserver.dir}/resin.conf" filtering="on"/>
<!-- Create the war file -->
<copy file="${target.test.dir}/test.war"
tofile="${maven.appserver.dir}/test.war"/>
</target>
1.1 jakarta-turbine-maven/src/plugins/j2ee/conf/build-resin-20.xml
Index: build-resin-20.xml
===================================================================
<!--
========================================================================
Run Resin 2.0 tests
========================================================================
-->
<target name="test.resin.20" depends="prepare.test.resin.20"
if="maven.appserver.home" description="Run tests on Resin 2.0">
<!-- 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"
startTarget="start.resin.20"
stopTarget="stop.resin.20"
testTarget="test"/>
</target>
<!--
========================================================================
Start Resin 2.0
========================================================================
-->
<target name="start.resin.20">
<java classname="org.apache.cactus.ant.ResinRun" fork="yes">
<arg value="-start"/>
<arg value="-conf"/>
<arg value="resin.conf"/>
<!-- Needed so that Resin use the maven.appserver.home variable as it's
root directory for resolving file paths -->
<jvmarg value="-Dresin.home=${maven.appserver.dir}"/>
<classpath>
<pathelement location="${cactus.ant.jar}"/>
<fileset dir="${maven.appserver.home}/lib">
<include name="*.jar"/>
</fileset>
</classpath>
</java>
</target>
<!--
========================================================================
Stop Resin 2.0
========================================================================
-->
<target name="stop.resin.20">
<java classname="org.apache.cactus.ant.ResinRun" fork="yes">
<arg value="-stop"/>
<classpath>
<pathelement location="${cactus.ant.jar}"/>
<fileset dir="${maven.appserver.home}/lib">
<include name="*.jar"/>
</fileset>
</classpath>
</java>
</target>
<!--
========================================================================
Display a warning message if the needed servlet engine home property
is not set
========================================================================
-->
<target name="check.test.resin.20" unless="maven.appserver.home">
<echo message=""/>
<echo message="******************************************************"/>
<echo message="WARNING : The 'maven.appserver.home' property has not been"/>
<echo message="set. No test will be run on that servlet engine."/>
<echo message="******************************************************"/>
<echo message=""/>
</target>
<!--
========================================================================
Prepare directories and variables for running the tests
========================================================================
-->
<target name="prepare.test.resin.20"
depends="check.test.resin.20,testwar" if="maven.appserver.home">
<echo message="maven.appserver.home = ${maven.appserver.home}"/>
<property name="maven.appserver.dir" value="${target.test.dir}/resin20"/>
<property name="conf.resin20.dir" value="${conf.test.dir}/resin20"/>
<mkdir dir="${maven.appserver.dir}"/>
<!-- Copy resin configuration files -->
<copy file="${conf.resin20.dir}/resin.conf"
tofile="${maven.appserver.dir}/resin.conf" filtering="on"/>
<!-- Create the war file -->
<copy file="${target.test.dir}/test.war"
tofile="${maven.appserver.dir}/test.war"/>
</target>
1.1 jakarta-turbine-maven/src/plugins/j2ee/conf/build-tomcat-32.xml
Index: build-tomcat-32.xml
===================================================================
<!--
========================================================================
Run Tomcat 3.2 tests
========================================================================
-->
<target name="test.tomcat.32" depends="prepare.test.tomcat.32"
if="maven.appserver.home" description="Run tests on Tomcat 3.2">
<!-- 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"
startTarget="start.tomcat.32"
stopTarget="stop.tomcat.32"
testTarget="test"/>
</target>
<!--
========================================================================
Start Tomcat 3.2
========================================================================
-->
<target name="start.tomcat.32">
<java classname="org.apache.tomcat.startup.Tomcat" fork="yes">
<arg value="-config"/>
<arg value="${maven.appserver.dir}/conf/server.xml"/>
<classpath>
<pathelement location="${java.home}/../lib/tools.jar"/>
<fileset dir="${maven.appserver.home}/lib">
<include name="*.jar"/>
</fileset>
</classpath>
</java>
</target>
<!--
========================================================================
Stop Tomcat 3.2
========================================================================
-->
<target name="stop.tomcat.32">
<java classname="org.apache.tomcat.startup.Tomcat" fork="yes">
<jvmarg value="-Dtomcat.home=${maven.appserver.home}"/>
<arg value="-stop"/>
<arg value="-config"/>
<arg value="${maven.appserver.dir}/conf/server.xml"/>
<classpath>
<pathelement location="${java.home}/../lib/tools.jar"/>
<fileset dir="${maven.appserver.home}/lib">
<include name="*.jar"/>
</fileset>
</classpath>
</java>
</target>
<!--
========================================================================
Display a warning message if the needed servlet engine home property
is not set
========================================================================
-->
<target name="check.test.tomcat.32" unless="maven.appserver.home">
<echo message=""/>
<echo message="******************************************************"/>
<echo message="WARNING : The 'maven.appserver.home' property has not been "/>
<echo message="set. No test will be run on that servlet engine."/>
<echo message="******************************************************"/>
<echo message=""/>
</target>
<!--
========================================================================
Prepare directories and variables for running the tests
========================================================================
-->
<target name="prepare.test.tomcat.32"
depends="check.test.tomcat.32,testwar" if="maven.appserver.home">
<echo message="maven.appserver.home = ${maven.appserver.home}"/>
<property name="maven.appserver.dir"
value="${target.test.dir}/tomcat32"/>
<property name="conf.tomcat32.dir" value="${conf.test.dir}/tomcat32"/>
<filter token="maven.appserver.dir" value="${maven.appserver.dir}"/>
<!-- Create work and conf directories and copy configuration files -->
<mkdir dir="${maven.appserver.dir}/conf"/>
<mkdir dir="${maven.appserver.dir}/work"/>
<mkdir dir="${maven.appserver.dir}/webapps"/>
<!-- Delete some config file so that they will be copied every time -->
<delete file="${maven.appserver.dir}/conf/testserver.xml"/>
<!-- Delete the expanded war so that the new one is picked up -->
<delete dir="${maven.appserver.dir}/webapps"/>
<!-- Copy the default tomcat web.xml to our test conf/ directory.
This is needed otherwise tomcat does not start -->
<copy file="${maven.appserver.home}/conf/web.xml"
tofile="${maven.appserver.dir}/conf/web.xml"/>
<copy file="${conf.tomcat32.dir}/server.xml"
tofile="${maven.appserver.dir}/conf/server.xml" filtering="on"/>
<!-- Copy the war file -->
<copy file="${target.test.dir}/test.war"
tofile="${maven.appserver.dir}/webapps/test.war"/>
</target>
1.1 jakarta-turbine-maven/src/plugins/j2ee/conf/build-tomcat-33.xml
Index: build-tomcat-33.xml
===================================================================
<!--
========================================================================
Run Tomcat 3.3 tests
========================================================================
-->
<target name="test.tomcat.33" depends="prepare.test.tomcat.33"
if="maven.appserver.home" description="Run tests on Tomcat 3.3">
<!-- 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"
startTarget="start.tomcat.33"
stopTarget="stop.tomcat.33"
testTarget="test"/>
</target>
<!--
========================================================================
Start Tomcat 3.3
========================================================================
-->
<target name="start.tomcat.33">
<java classname="org.apache.tomcat.startup.Main" fork="yes">
<jvmarg value="-Dtomcat.home=${target.tomcat33.full.dir}"/>
<jvmarg value="-Dtomcat.install=${maven.appserver.home}"/>
<arg value="start"/>
<classpath>
<fileset dir="${maven.appserver.home}/lib">
<include name="tomcat.jar"/>
</fileset>
</classpath>
</java>
</target>
<!--
========================================================================
Stop Tomcat 3.3
========================================================================
-->
<target name="stop.tomcat.33">
<java classname="org.apache.tomcat.startup.Main" fork="yes">
<jvmarg value="-Dtomcat.home=${target.tomcat33.full.dir}"/>
<jvmarg value="-Dtomcat.install=${maven.appserver.home}"/>
<arg value="stop"/>
<classpath>
<fileset dir="${maven.appserver.home}/lib">
<include name="tomcat.jar"/>
</fileset>
</classpath>
</java>
</target>
<!--
========================================================================
Display a warning message if the needed servlet engine home property
is not set
========================================================================
-->
<target name="check.test.tomcat.33" unless="maven.appserver.home">
<echo message=""/>
<echo message="******************************************************"/>
<echo message="WARNING : The 'maven.appserver.home' property has not been "/>
<echo message="set. No test will be run on that servlet engine."/>
<echo message="******************************************************"/>
<echo message=""/>
</target>
<!--
========================================================================
Prepare directories and variables for running the tests
========================================================================
-->
<target name="prepare.test.tomcat.33"
depends="check.test.tomcat.33,testwar" if="maven.appserver.home">
<echo message="maven.appserver.home = ${maven.appserver.home}"/>
<property name="maven.appserver.dir"
value="${target.test.dir}/tomcat33"/>
<property name="conf.tomcat33.dir" value="${conf.test.dir}/tomcat33"/>
<property name="target.tomcat33.full.dir"
value="${basedir}/${maven.appserver.dir}"/>
<filter token="maven.appserver.dir" value="${maven.appserver.dir}"/>
<!-- Delete everything -->
<delete dir="${maven.appserver.dir}/webapps"/>
<!-- Create work and conf directories and copy configuration files -->
<mkdir dir="${maven.appserver.dir}/conf"/>
<mkdir dir="${maven.appserver.dir}/work"/>
<mkdir dir="${maven.appserver.dir}/webapps"/>
<copy todir="${maven.appserver.dir}/conf" filtering="on">
<fileset dir="${conf.tomcat33.dir}"/>
</copy>
<!-- Copy the war file -->
<copy file="${target.test.dir}/test.war"
tofile="${maven.appserver.dir}/webapps/test.war"/>
</target>
1.1 jakarta-turbine-maven/src/plugins/j2ee/conf/build-tomcat-40.xml
Index: build-tomcat-40.xml
===================================================================
<!--
========================================================================
T O M C A T 4.0
========================================================================
-->
<!--
========================================================================
Install and configure Tomcat 4.0 instance
========================================================================
-->
<target name="install-tomcat-40"
description="o Install Tomcat 4.0 instance">
<!-- Create common directories and copy configuration files -->
<mkdir dir="${maven.appserver.dir}/conf"/>
<mkdir dir="${maven.appserver.dir}/work"/>
<mkdir dir="${maven.appserver.dir}/webapps"/>
<mkdir dir="${maven.appserver.dir}/logs"/>
<!-- copy any user configuration files w/ filtering by forcing copy -->
<!-- expecting at least a server.xml -->
<copy todir="${maven.appserver.dir}/conf" overwrite="true">
<fileset dir="${maven.conf.dir}/tomcat40" excludes="**/web.xml"/>
<filterset refid="maven.appserver.filterset" />
</copy>
</target>
<!--
========================================================================
Start Tomcat 4.0
========================================================================
-->
<target name="start-tomcat-40"
description="o Start Tomcat 4.0 instance">
<java classname="org.apache.catalina.startup.Bootstrap" fork="yes"
dir="${maven.appserver.dir}">
<classpath>
<pathelement path="${maven.appserver.classpath}"/>
<fileset dir="${maven.appserver.home}">
<include name="bin/bootstrap.jar"/>
</fileset>
</classpath>
<jvmarg value="-Dcatalina.base=${maven.appserver.dir}"/>
<jvmarg value="-Dcatalina.home=${maven.appserver.home}"/>
<arg value="start"/>
</java>
</target>
<!--
========================================================================
Stop Tomcat 4.0
========================================================================
-->
<target name="stop-tomcat-40">
<java classname="org.apache.catalina.startup.Bootstrap" fork="yes"
dir="${maven.appserver.dir}">
<classpath>
<pathelement path="${maven.appserver.classpath}"/>
<fileset dir="${maven.appserver.home}">
<include name="bin/bootstrap.jar"/>
</fileset>
</classpath>
<jvmarg value="-Dcatalina.base=${maven.appserver.dir}"/>
<jvmarg value="-Dcatalina.home=${maven.appserver.home}"/>
<arg value="stop"/>
</java>
</target>
1.1
jakarta-turbine-maven/src/plugins/j2ee/conf/build-weblogic-51.xml
Index: build-weblogic-51.xml
===================================================================
<!--
========================================================================
Run WebLogic 5.1 tests
========================================================================
-->
<target name="test.weblogic.51" depends="prepare.test.weblogic.51"
if="maven.appserver.home" description="Run tests on WebLogic 5.1">
<!-- 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"
startTarget="start.weblogic.51"
stopTarget="stop.weblogic.51"
testTarget="test"/>
</target>
<!--
========================================================================
Start WebLogic 5.1
========================================================================
-->
<target name="start.weblogic.51">
<java classname="weblogic.Server" fork="yes">
<classpath>
<pathelement
location="${maven.appserver.home}/lib/weblogic510sp8boot.jar"/>
<pathelement location="${maven.appserver.home}/classes/boot"/>
</classpath>
<jvmarg value="-ms64m"/>
<jvmarg value="-mx64m"/>
<jvmarg
value="-Dweblogic.class.path=${maven.appserver.home}/lib/weblogic510sp8.jar;${maven.appserver.home}/license;${maven.appserver.home}/classes;${maven.appserver.home}/lib/weblogicaux.jar"/>
<jvmarg value="-Dweblogic.home=${maven.appserver.dir}"/>
<jvmarg value="-Dweblogic.system.home=${maven.appserver.dir}"/>
<jvmarg value="-Dweblogic.system.name=testinstance"/>
<jvmarg value="-Djava.security.manager"/>
<jvmarg
value="-Djava.security.policy==${conf.weblogic51.dir}/weblogic.policy"/>
</java>
</target>
<!--
========================================================================
Stop WebLogic 5.1
========================================================================
-->
<target name="stop.weblogic.51">
<java classname="weblogic.Admin" fork="yes">
<classpath>
<pathelement
location="${maven.appserver.home}/lib/weblogic510sp8.jar"/>
<pathelement location="${maven.appserver.home}/license"/>
<pathelement location="${maven.appserver.home}/classes"/>
<pathelement location="${maven.appserver.home}/lib/weblogicaux.jar"/>
</classpath>
<arg value="t3://localhost:${test.port}/test"/>
<arg value="SHUTDOWN"/>
<arg value="system"/>
<arg value="password"/>
</java>
</target>
<!--
========================================================================
Display a warning message if the needed servlet engine home property
is not set
========================================================================
-->
<target name="check.test.weblogic.51" unless="maven.appserver.home">
<echo message=""/>
<echo message="******************************************************"/>
<echo message="WARNING : The 'maven.appserver.home' property has not been"/>
<echo message="set. No test will be run on that servlet engine."/>
<echo message="******************************************************"/>
<echo message=""/>
</target>
<!--
========================================================================
Prepare directories and variables for running the tests
========================================================================
-->
<target name="prepare.test.weblogic.51"
depends="check.test.weblogic.51,testwar" if="maven.appserver.home">
<echo message="maven.appserver.home = ${maven.appserver.home}"/>
<property name="maven.appserver.dir"
value="${target.test.dir}/weblogic51"/>
<property name="conf.weblogic51.dir"
value="${conf.test.dir}/weblogic51"/>
<filter token="target.wlinstance.dir"
value="${maven.appserver.dir}/testinstance"/>
<mkdir dir="${maven.appserver.dir}/testinstance"/>
<!-- Delete some config file so that they will be copied every time -->
<delete file="${maven.appserver.dir}/weblogic.properties"/>
<copy file="${conf.weblogic51.dir}/weblogic.properties"
tofile="${maven.appserver.dir}/weblogic.properties"
filtering="on"/>
<!-- Copy the war file -->
<copy file="${target.test.dir}/test.war"
tofile="${maven.appserver.dir}/testinstance/test.war"/>
<!-- This is needed here because WebLogic 5.1 does not support
automatic war deployment (except with latest Service Packs and
even when it does there are issues with support files -->
<unwar src="${maven.appserver.dir}/testinstance/test.war"
dest="${maven.appserver.dir}/testinstance/test"/>
</target>
1.1
jakarta-turbine-maven/src/plugins/j2ee/conf/build-weblogic-61.xml
Index: build-weblogic-61.xml
===================================================================
<!--
========================================================================
Run WebLogic 6.1 tests
========================================================================
-->
<target name="test.weblogic.61" depends="prepare.test.weblogic.61"
if="maven.appserver.home" description="Run tests on WebLogic 6.1">
<!-- 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.61"
stopTarget="stop.weblogic.61"
testTarget="test"/>
</target>
<!--
========================================================================
Start WebLogic 6.1
========================================================================
-->
<target name="start.weblogic.61">
<java classname="weblogic.Server" fork="yes"
dir="${maven.appserver.dir}">
<classpath>
<pathelement
location="${maven.appserver.home}/wlserver6.1/lib/weblogic.sp.jar"/>
<pathelement
location="${maven.appserver.home}/wlserver6.1/lib/weblogic.jar"/>
</classpath>
<jvmarg value="-hotspot"/>
<jvmarg value="-ms64m"/>
<jvmarg value="-mx64m"/>
<jvmarg
value="-Djava.library.path=${java.library.path};${maven.appserver.home}/wlserver6.1/bin"/>
<jvmarg value="-Dweblogic.RootDirectory=."/>
<jvmarg value="-Dweblogic.Domain=testdomain"/>
<jvmarg value="-Dweblogic.Name=testserver"/>
<jvmarg value="-Dbea.home=${maven.appserver.home}"/>
<jvmarg value="-Dweblogic.management.password=password"/>
<jvmarg value="-Djava.security.policy==./lib/weblogic.policy"/>
</java>
</target>
<!--
========================================================================
Stop WebLogic 6.1
========================================================================
-->
<target name="stop.weblogic.61">
<java classname="weblogic.Admin" fork="yes">
<classpath>
<pathelement
location="${maven.appserver.home}/wlserver6.1/lib/weblogic.sp.jar"/>
<pathelement
location="${maven.appserver.home}/wlserver6.1/lib/weblogic.jar"/>
</classpath>
<arg line="-url t3://localhost:${test.port}"/>
<arg line="-username system"/>
<arg line="-password password"/>
<arg value="SHUTDOWN"/>
</java>
</target>
<!--
========================================================================
Display a warning message if the needed servlet engine home property
is not set
========================================================================
-->
<target name="check.test.weblogic.61" unless="maven.appserver.home">
<echo message=""/>
<echo message="******************************************************"/>
<echo message="WARNING : The 'maven.appserver.home' property has not been"/>
<echo message="set. No test will be run on that servlet engine."/>
<echo message="******************************************************"/>
<echo message=""/>
</target>
<!--
========================================================================
Prepare directories and variables for running the tests
========================================================================
-->
<target name="prepare.test.weblogic.61"
depends="check.test.weblogic.61,testwar" if="maven.appserver.home">
<echo message="maven.appserver.home = ${maven.appserver.home}"/>
<property name="maven.appserver.dir"
value="${target.test.dir}/weblogic61"/>
<property name="conf.weblogic61.dir"
value="${conf.test.dir}/weblogic61"/>
<mkdir dir="${maven.appserver.dir}/config/testdomain/applications"/>
<!-- Copy WL 6.1 configuration files -->
<copy file="${conf.weblogic61.dir}/config.xml"
todir="${maven.appserver.dir}/config/testdomain" filtering="on"/>
<copy file="${conf.weblogic61.dir}/fileRealm.properties"
todir="${maven.appserver.dir}/config/testdomain"/>
<copy file="${conf.weblogic61.dir}/SerializedSystemIni.dat"
todir="${maven.appserver.dir}/config/testdomain"/>
<!-- Copy the war file -->
<copy file="${target.test.dir}/test.war"
todir="${maven.appserver.dir}/config/testdomain/applications"/>
</target>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>