Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
| 2 | <!-- |
| 3 | |
arjantijms | e92149d | 2021-11-24 19:33:29 +0100 | [diff] [blame^] | 4 | Copyright (c) 2021 Contributors to the Eclipse Foundation |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 5 | 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ček | 0b20e98 | 2021-05-06 09:43:16 +0200 | [diff] [blame] | 37 | <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 Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 44 | |
David Matějček | 0b20e98 | 2021-05-06 09:43:16 +0200 | [diff] [blame] | 45 | <target name="compile" depends="clean"> |
| 46 | <antcall target="compile-common"> |
| 47 | <param name="src" value="servlet" /> |
| 48 | </antcall> |
| 49 | </target> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 50 | |
David Matějček | 0b20e98 | 2021-05-06 09:43:16 +0200 | [diff] [blame] | 51 | <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 Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 57 | |
David Matějček | 0b20e98 | 2021-05-06 09:43:16 +0200 | [diff] [blame] | 58 | <javac srcdir="client" classpath="${env.APS_HOME}/lib/reportbuilder.jar" includes="test/client/WebTest.java" /> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 59 | |
David Matějček | 0b20e98 | 2021-05-06 09:43:16 +0200 | [diff] [blame] | 60 | </target> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 61 | |
David Matějček | 0b20e98 | 2021-05-06 09:43:16 +0200 | [diff] [blame] | 62 | <target name="build-publish-war" depends="build, publish-war-common" /> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 63 | |
David Matějček | 0b20e98 | 2021-05-06 09:43:16 +0200 | [diff] [blame] | 64 | <target name="deploy" depends="init-common"> |
| 65 | <antcall target="deploy-war-common" /> |
| 66 | </target> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 67 | |
David Matějček | 0b20e98 | 2021-05-06 09:43:16 +0200 | [diff] [blame] | 68 | <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 Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 77 | |
| 78 | |
David Matějček | 0b20e98 | 2021-05-06 09:43:16 +0200 | [diff] [blame] | 79 | <target name="run" depends="init-common"> |
arjantijms | e92149d | 2021-11-24 19:33:29 +0100 | [diff] [blame^] | 80 | <java classname="test.client.WebTest" fork="true"> |
David Matějček | 0b20e98 | 2021-05-06 09:43:16 +0200 | [diff] [blame] | 81 | <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 Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 90 | |
David Matějček | 0b20e98 | 2021-05-06 09:43:16 +0200 | [diff] [blame] | 91 | <target name="undeploy" depends="init-common"> |
| 92 | <antcall target="undeploy-war-common" /> |
| 93 | </target> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 94 | |
David Matějček | 0b20e98 | 2021-05-06 09:43:16 +0200 | [diff] [blame] | 95 | <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 Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 99 | |
David Matějček | 0b20e98 | 2021-05-06 09:43:16 +0200 | [diff] [blame] | 100 | <antcall target="delete-jdbc-connpool-common"> |
| 101 | <param name="jdbc.connpool.name" value="jdbc-dev-test-pool" /> |
| 102 | </antcall> |
| 103 | </target> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 104 | |
David Matějček | 0b20e98 | 2021-05-06 09:43:16 +0200 | [diff] [blame] | 105 | <target name="usage"> |
| 106 | <antcall target="usage-common" /> |
| 107 | </target> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 108 | </project> |