blob: 601e155dd9cc1352292a8c3fe7df2fae69b4a4bb [file] [log] [blame]
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Copyright (c) 2013, 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
-->
<!DOCTYPE project [
<!ENTITY commonSetup SYSTEM "./../../../config/properties.xml">
<!ENTITY commonBuild SYSTEM "./../../../config/common.xml">
<!ENTITY commonSecurity SYSTEM "../common.xml">
<!ENTITY testproperties SYSTEM "./build.properties">
]>
<project name="uncovered-http-methods" default="usage" basedir=".">
&commonSetup;
&commonBuild;
&testproperties;
&commonSecurity;
<target name="all" depends="clean, setup, build, deploy, run, undeploy, unsetup"/>
<target name="setup" depends="init-common">
<antcall target="create-user-common">
<param name="user" value="testuser"/>
<param name="password" value="javaee"/>
<param name="groups" value="users"/>
</antcall>
</target>
<target name="run" depends="init-common">
<java classname="${test.client}" fork="yes"
classpath="${s1astest.classpath}">
<arg value="${http.host}"/>
<arg value="${http.port}"/>
<arg value="testuser"/>
<arg value="javaee"/>
</java>
</target>
<target name="unsetup" depends="init-common">
<antcall target="delete-user-common">
<param name="user" value="testuser"/>
</antcall>
</target>
<target name="clean" depends="init-common">
<antcall target="clean-common"/>
</target>
<target name="compile" depends="clean">
</target>
<target name="build" depends="compile">
<antcall target="compile-common">
<param name="src" value="web"/>
</antcall>
<mkdir dir="${assemble.dir}"/>
<antcall target="package-war-common">
<param name="war.classes" value="${build.classes.dir}"/>
<param name="war.file" value="${assemble.dir}/openUncoveredServletTest-web.war"/>
</antcall>
<antcall target="package-war-common">
<param name="war.classes" value="${build.classes.dir}"/>
<param name="web.xml" value="${deny-web.xml}"/>
<param name="war.file" value="${assemble.dir}/denyUncoveredServletTest-web.war"/>
</antcall>
<mkdir dir="${build.classes.dir}/META-INF"/>
<copy file="${application.xml}" tofile="${build.classes.dir}/META-INF/application.xml" failonerror="false"/>
<copy file="${glassfish-application.xml}" tofile="${build.classes.dir}/META-INF/glassfish-application.xml" failonerror="false"/>
<jar jarfile="${assemble.dir}/${appname}App.ear">
<fileset dir="${assemble.dir}">
<include name="*.war"/>
</fileset>
<fileset dir="${build.classes.dir}">
<include name="META-INF/application.xml"/>
<include name="META-INF/glassfish-application.xml"/>
</fileset>
</jar>
<antcall target="compile-common">
<param name="src" value="client"/>
</antcall>
</target>
<target name="deploy" depends="init-common">
<antcall target="deploy-common"/>
</target>
<target name="undeploy" depends="init-common">
<antcall target="undeploy-common"/>
</target>
<target name="usage">
<antcall target="usage-common"/>
</target>
</project>