blob: c73d96511e93cb5a5e77a2f3f460149f3e10e6a7 [file] [log] [blame]
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE project [
<!--
Copyright (c) 2017, 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 "./../../../../config/properties.xml">
<!ENTITY commonBuild SYSTEM "./../../../../config/common.xml">
<!ENTITY commonRun SYSTEM "./../../../../config/run.xml">
<!ENTITY testproperties SYSTEM "./build.properties">
<!ENTITY database SYSTEM "../../config/database.xml">
]>
<project name="web-ejbsubclassingApp" default="usage" basedir=".">
&database;
&commonSetup;
&commonBuild;
&commonRun;
&testproperties;
<target name="all" depends="build, deploy-ear, setup, run-ear, unsetup, undeploy-ear"/>
<target name="clean" depends="init-common">
<antcall target="clean-common"/>
<ant dir="ra" target="clean"/>
</target>
<target name="setup">
<antcall target="execute-sql-connector">
<param name="sql.file" value="sql/simpleBank.sql"/>
</antcall>
</target>
<target name="unsetup">
<antcall target="execute-sql-connector">
<param name="sql.file" value="sql/dropBankTables.sql"/>
</antcall>
</target>
<target name="compile" depends="clean">
<ant dir="ra" target="compile"/>
<antcall target="compile-common">
<param name="src" value="ejb"/>
</antcall>
<antcall target="compile-servlet" />
</target>
<target name="compile-servlet" depends="init-common">
<mkdir dir="${build.classes.dir}"/>
<echo message="common.xml: Compiling test source files" level="verbose"/>
<javac srcdir="servlet"
destdir="${build.classes.dir}"
classpath="${s1astest.classpath}:ra/publish/internal/classes"
debug="on"
failonerror="true"/>
</target>
<target name="build-ra">
<ant dir="ra" target="build"/>
</target>
<target name="build" depends="compile">
<property name="hasWebclient" value="yes"/>
<ant dir="ra" target="assemble"/>
<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>
<delete file="${assemble.dir}/${appname}.ear"/>
<mkdir dir="${assemble.dir}"/>
<mkdir dir="${build.classes.dir}/META-INF"/>
<mkdir dir="${assemble.dir}/META-INF"/>
<copy file="descriptor/glassfish-resources.xml" tofile="${build.classes.dir}/META-INF/glassfish-resources.xml" failonerror="true" filtering="true">
</copy>
<copy file="descriptor/glassfish-resources.xml" tofile="${assemble.dir}/META-INF/glassfish-resources.xml" failonerror="true" filtering="true">
</copy>
<ear earfile="${assemble.dir}/${appname}App.ear"
appxml="${application.xml}">
<fileset dir="${assemble.dir}">
<include name="*.jar"/>
<include name="*.war"/>
<include name="META-INF/*.xml"/>
</fileset>
<fileset dir="ra/publish/lib">
<include name="*.rar"/>
</fileset>
</ear>
</target>
<target name="deploy-ear" depends="init-common">
<antcall target="deploy-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="embeddedweb (stand-alone war based)"/>
</antcall>
</target>
<target name="run-ear" depends="init-common">
<antcall target="runwebclient-common">
<param name="testsuite.id" value="embeddedweb (ear based)"/>
</antcall>
</target>
<target name="undeploy-ear" depends="init-common">
<antcall target="undeploy-common">
<param name="extra-params" value="--cascade=true"/>
</antcall>
</target>
<target name="undeploy-war" depends="init-common">
<antcall target="undeploy-war-common"/>
</target>
<target name="usage">
<antcall target="usage-common"/>
</target>
</project>