blob: 2b17b9c37e0e8d149f5fc08f16cb474fa4b9d153 [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 commonRun SYSTEM "file:./../../../config/run.xml">
<!ENTITY testproperties SYSTEM "file:./build.properties">
]>
<project name="web-ejbsubclassingApp" default="usage" basedir=".">
&commonSetup;
&commonBuild;
&commonRun;
&testproperties;
<target name="all" depends="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="sql" depends="init-common">
<antcall target="execute-sql-common">
<param name="sql.file" value="sql/simpleBank.sql"/>
</antcall>
</target>
<target name="setup" depends="sql">
<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="restart">
<antcall target="restart-server-instance-common"/>
</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="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>