blob: b957c4eee879363732df66b16da3c42243237076 [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 commonBuild SYSTEM "./../../config/common.xml">
]>
<project name="WebAnnotationTest" default="all" basedir=".">
&commonBuild;
<property name="src" location="src"/>
<target name="private-all">
<antcall target="cleanXml"/>
<antcall target="compile"/>
<antcall target="assemble"/>
<antcall target="test"/>
</target>
<target name="cleanXml">
<delete dir="${basedir}/META-INF"/>
</target>
<target name="prepare">
<mkdir dir="${build}/_war/WEB-INF/classes"/>
</target>
<target name="compile" depends="init, prepare, compile.util">
<javac srcdir="${src}" destdir="${build}/_war/WEB-INF/classes" debug="on">
<classpath>
<path refid="gfv3.classpath"/>
<pathelement location="${inst}/lib/appserv-rt.jar"/>
<pathelement location="${junit.jar}"/>
<pathelement path="${testsRoot}/util/build"/>
</classpath>
</javac>
</target>
<target name="assemble" depends="init,prepare,compile">
<move file="${build}/_war/WEB-INF/classes/WebAnnotationTest.class"
todir="${build}" overwrite="true" failonerror="false"/>
</target>
<target name="test" depends="assemble">
<mkdir dir="${annotation.report.dir}"/>
<junit printsummary="yes" haltonerror="no" haltonfailure="no" fork="true">
<formatter type="plain" usefile="false"/>
<formatter type="xml"/>
<test name="WebAnnotationTest"
todir="${annotation.report.dir}"/>
<jvmarg value="-Dcom.sun.aas.installRoot=${inst}"/>
<jvmarg value="-DtestClasspath=${build}/_war"/>
<jvmarg value="-DworkDir=${basedir}"/>
<classpath>
<path refid="test.compile.classpath"/>
<path refid="gfv3.classpath"/>
<pathelement path="${testsRoot}/util/build"/>
<pathelement path="${build}"/>
<pathelement path="${junit.jar}"/>
</classpath>
</junit>
</target>
</project>