blob: 67ec1f387802b5e09c6ed5a4032ed06defc15105 [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="jstl-servletApp" default="usage" basedir=".">
&commonSetup;
&commonBuild;
&commonRun;
&testproperties;
<target name="all" depends="build,setup,deploy-war,run-war, unsetup"/>
<target name="run-test" depends="build,deploy-war,run-war,undeploy-war"/>
<!--
<antcall target="build"/>
<antcall target="setup"/>
<antcall target="deploy-war"/>
<antcall target="run-war"/>
<antcall target="undeploy-war"/>
<antcall target="deploy-ear"/>
<antcall target="run-ear"/>
<antcall target="undeploy-ear"/>
<antcall target="unsetup"/>
</target>
-->
<target name="clean" depends="init-common">
<antcall target="clean-common"/>
</target>
<target name="setup" depends="init-common">
<antcall target="execute-sql-common">
<param name="sql.file" value="sql/create_${db.type}.sql"/>
</antcall>
<antcall target="deploy-jdbc-common">
<param name="jdbc.conpool.name" value="web-bookstore-pool"/>
<param name="jdbc.resource.name" value="jdbc/BookDB"/>
</antcall>
</target>
<target name="sql" depends="init-common">
<antcall target="execute-sql-common">
<param name="sql.file" value="sql/create_${db.type}.sql"/>
</antcall>
</target>
<target name="unsetup" depends="init-common">
<antcall target="execute-sql-common">
<param name="sql.file" value="sql/drop_${db.type}.sql"/>
</antcall>
<antcall target="undeploy-jdbc-common">
<param name="jdbc.conpool.name" value="web-bookstore-pool"/>
<param name="jdbc.resource.name" value="jdbc/BookDB"/>
</antcall>
</target>
<target name="compile" depends="clean">
<antcall target="compile-common">
<param name="src" value="src"/>
</antcall>
</target>
<target name="build" depends="compile">
<property name="hasWebclient" value="yes"/>
<property name="tlds-exist" value="yes"/>
<antcall target="copy-tlds"/>
<antcall target="copy-tagfiles"/>
<antcall target="webclient-war-common">
<param name="hasWebclient" value="yes"/>
<param name="webclient.war.classes" value="**/*.class"/>
</antcall>
<!-- <antcall target="ear-common"/>-->
</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="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="run-war" depends="init-common">
<antcall target="runwebclient-common">
<param name="testsuite.id" value="jstl-servlet (stand-alone war based)"/>
</antcall>
</target>
<target name="usage">
<antcall target="usage-common"/>
</target>
</project>