blob: 06eabc943f68b7d8438869a1cc78a209f3a09642 [file] [log] [blame]
Vinay Vishal57171472018-09-18 20:22:00 +05301<?xml version="1.0" encoding="ISO-8859-1"?>
2<!--
3
arjantijmse92149d2021-11-24 19:33:29 +01004 Copyright (c) 2021 Contributors to the Eclipse Foundation
Vinay Vishal57171472018-09-18 20:22:00 +05305 Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
6
7 This program and the accompanying materials are made available under the
8 terms of the Eclipse Public License v. 2.0, which is available at
9 http://www.eclipse.org/legal/epl-2.0.
10
11 This Source Code may also be made available under the following Secondary
12 Licenses when the conditions for such availability set forth in the
13 Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
14 version 2 with the GNU Classpath Exception, which is available at
15 https://www.gnu.org/software/classpath/license.html.
16
17 SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
18
19-->
20
21<!DOCTYPE project [
22<!ENTITY commonSetup SYSTEM "./../../../../config/properties.xml">
23<!ENTITY commonBuild SYSTEM "./../../../../config/common.xml">
24<!ENTITY run SYSTEM "./../../../../config/run.xml">
25<!ENTITY testproperties SYSTEM "./build.properties">
26]>
27
28<project name="webcontainer_unittest" default="all" basedir=".">
29
30 &commonSetup;
31 &commonBuild;
32 &testproperties;
33 &run;
34
35 <target name="all" depends="build,create-resources,deploy,run,undeploy,delete-resources" />
36
David Matějček0b20e982021-05-06 09:43:16 +020037 <target name="clean" depends="init-common">
38 <antcall target="clean-common" />
39 <delete>
40 <fileset dir="." includes="*.class" />
41 <fileset dir="client/test/client" includes="*.class" />
42 </delete>
43 </target>
Vinay Vishal57171472018-09-18 20:22:00 +053044
David Matějček0b20e982021-05-06 09:43:16 +020045 <target name="compile" depends="clean">
46 <antcall target="compile-common">
47 <param name="src" value="servlet" />
48 </antcall>
49 </target>
Vinay Vishal57171472018-09-18 20:22:00 +053050
David Matějček0b20e982021-05-06 09:43:16 +020051 <target name="build" depends="compile">
52 <property name="hasWebclient" value="yes" />
53 <antcall target="webclient-war-common">
54 <param name="hasWebclient" value="yes" />
55 <param name="webclient.war.classes" value="**/*.class" />
56 </antcall>
Vinay Vishal57171472018-09-18 20:22:00 +053057
David Matějček0b20e982021-05-06 09:43:16 +020058 <javac srcdir="client" classpath="${env.APS_HOME}/lib/reportbuilder.jar" includes="test/client/WebTest.java" />
Vinay Vishal57171472018-09-18 20:22:00 +053059
David Matějček0b20e982021-05-06 09:43:16 +020060 </target>
Vinay Vishal57171472018-09-18 20:22:00 +053061
David Matějček0b20e982021-05-06 09:43:16 +020062 <target name="build-publish-war" depends="build, publish-war-common" />
Vinay Vishal57171472018-09-18 20:22:00 +053063
David Matějček0b20e982021-05-06 09:43:16 +020064 <target name="deploy" depends="init-common">
65 <antcall target="deploy-war-common" />
66 </target>
Vinay Vishal57171472018-09-18 20:22:00 +053067
David Matějček0b20e982021-05-06 09:43:16 +020068 <target name="create-resources" depends="init-common">
69 <antcall target="create-jdbc-connpool-common">
70 <param name="jdbc.connpool.name" value="jdbc-dev-test-pool" />
71 </antcall>
72 <antcall target="create-jdbc-resource-common">
73 <param name="jdbc.connpool.name" value="jdbc-dev-test-pool" />
74 <param name="jdbc.resource.name" value="jdbc/jdbc-dev-test-resource" />
75 </antcall>
76 </target>
Vinay Vishal57171472018-09-18 20:22:00 +053077
78
David Matějček0b20e982021-05-06 09:43:16 +020079 <target name="run" depends="init-common">
arjantijmse92149d2021-11-24 19:33:29 +010080 <java classname="test.client.WebTest" fork="true">
David Matějček0b20e982021-05-06 09:43:16 +020081 <arg value="${http.host}" />
82 <arg value="${http.port}" />
83 <arg value="${contextroot}" />
84 <classpath>
85 <pathelement location="${env.APS_HOME}/lib/reportbuilder.jar" />
86 <pathelement location="client" />
87 </classpath>
88 </java>
89 </target>
Vinay Vishal57171472018-09-18 20:22:00 +053090
David Matějček0b20e982021-05-06 09:43:16 +020091 <target name="undeploy" depends="init-common">
92 <antcall target="undeploy-war-common" />
93 </target>
Vinay Vishal57171472018-09-18 20:22:00 +053094
David Matějček0b20e982021-05-06 09:43:16 +020095 <target name="delete-resources" depends="init-common">
96 <antcall target="delete-jdbc-resource-common">
97 <param name="jdbc.resource.name" value="jdbc/jdbc-dev-test-resource" />
98 </antcall>
Vinay Vishal57171472018-09-18 20:22:00 +053099
David Matějček0b20e982021-05-06 09:43:16 +0200100 <antcall target="delete-jdbc-connpool-common">
101 <param name="jdbc.connpool.name" value="jdbc-dev-test-pool" />
102 </antcall>
103 </target>
Vinay Vishal57171472018-09-18 20:22:00 +0530104
David Matějček0b20e982021-05-06 09:43:16 +0200105 <target name="usage">
106 <antcall target="usage-common" />
107 </target>
Vinay Vishal57171472018-09-18 20:22:00 +0530108</project>