blob: 329239ae50eb5c4181a47030c70c3933392158a8 [file] [log] [blame]
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE project [
<!--
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0, which is available at
http://www.eclipse.org/legal/epl-2.0.
This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the
Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
version 2 with the GNU Classpath Exception, which is available at
https://www.gnu.org/software/classpath/license.html.
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
-->
<!ENTITY commonSetup SYSTEM "file:./../../../config/properties.xml">
<!ENTITY commonBuild SYSTEM "file:./../../../config/common.xml">
<!ENTITY commonlazyinit SYSTEM "file:./../common.xml">
<!ENTITY testproperties SYSTEM "file:./build.properties">
]>
<project name="web-ejbsubclassingApp" default="usage" basedir=".">
&commonSetup;
&commonBuild;
&commonlazyinit;
&testproperties;
<target name="all" depends="pre-start,build,setup,deploy-ear, run-ear, undeploy-ear, unsetup"/>
<target name="run-test" depends="build,deploy-ear, run-ear, undeploy-ear"/>
<target name="clean" depends="init-common">
<antcall target="clean-common"/>
</target>
<target name="setup">
<antcall target="execute-sql-common">
<param name="sql.file" value="sql/simpleBank.sql"/>
</antcall>
<antcall target="deploy-jdbc-common">
<param name="jdbc.conpool.name" value="ejb-subclassing-pool"/>
<param name="jdbc.resource.name" value="jdbc/ejb-subclassing"/>
</antcall>
</target>
<target name="unsetup">
<antcall target="execute-sql-common">
<param name="sql.file" value="sql/dropBankTables.sql"/>
</antcall>
<antcall target="undeploy-jdbc-common">
<param name="jdbc.conpool.name" value="ejb-subclassing-pool"/>
<param name="jdbc.resource.name" value="jdbc/ejb-subclassing"/>
</antcall>
</target>
<target name="compile" depends="clean">
<antcall target="compile-common">
<param name="src" value="ejb"/>
</antcall>
<antcall target="compile-common">
<param name="src" value="servlet"/>
</antcall>
</target>
<target name="build" depends="compile">
<property name="hasWebclient" value="yes"/>
<antcall target="webclient-war-common">
<param name="hasWebclient" value="yes"/>
<param name="webclient.war.classes" value="**/*.class"/>
</antcall>
<antcall target="ejb-jar-common">
<param name="ejbjar.classes" value="**/*.class"/>
</antcall>
<antcall target="ear-common"/>
</target>
<target name="deploy-ear" depends="init-common">
<antcall target="deploy-verify-common"/>
</target>
<target name="deploy-war" depends="init-common">
<antcall target="deploy-war-common"/>
</target>
<target name="run-war" depends="init-common">
<antcall target="runwebclient-common">
<param name="testsuite.id" value="web-to-ejb (stand-alone war based)"/>
</antcall>
</target>
<target name="run-ear" depends="init-common">
<antcall target="restart-server"/>
<antcall target="runwebclient-common">
<param name="testsuite.id" value="web-to-ejb (ear based)"/>
</antcall>
</target>
<target name="undeploy-ear" depends="init-common">
<antcall target="undeploy-common"/>
</target>
<target name="undeploy-war" depends="init-common">
<antcall target="undeploy-war-common"/>
</target>
<target name="usage">
<antcall target="usage-common"/>
</target>
</project>