blob: 30d56e4d116d24df16ad34be35fa8cbd50a77c46 [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"/>
<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>
<echo message="copying foolib.jar to domain's lib/applibs"/>
<copy file="lib/foolib.jar" todir="${admin.domain.dir}/${admin.domain}/lib/applibs"/>
</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>
<delete file="${admin.domain.dir}/${admin.domain}/lib/applibs/foolib.jar"/>
<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">
<property name="precompilejsp" value="true"/>
<exec executable="${ASADMIN}" failonerror="false">
<arg line="deploy"/>
<arg line="${as.props}"/>
<arg line="--contextroot ${contextroot}"/>
<arg line="--precompilejsp=${precompilejsp}"/>
<arg line="--upload=true"/>
<arg line="--target ${appserver.instance.name}"/>
<arg line="--libraries foolib.jar"/>
<arg line="${assemble.dir}/${appname}-web.war"/>
</exec>
</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>