blob: e66c28fa4123a29d9c42a04a7d4c8e22d9bc481a [file] [log] [blame]
Vinay Vishal57171472018-09-18 20:22:00 +05301<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE project [
3<!--
4
5 Copyright (c) 2017, 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<!ENTITY commonSetup SYSTEM "./../../../config/properties.xml">
22<!ENTITY commonBuild SYSTEM "./../../../config/common.xml">
23<!ENTITY testproperties SYSTEM "./build.properties">
24]>
25
26<project name="jdbc-onlygetconnectionservletApp" default="usage" basedir=".">
27
28 &commonSetup;
29 &commonBuild;
30 &testproperties;
31
32 <target name="all" depends="build,deploy"/>
33
34 <target name="clean" depends="init-common">
35 <antcall target="clean-common"/>
36 </target>
David Matějčekf4dc06a2021-05-17 12:10:57 +020037
Vinay Vishal57171472018-09-18 20:22:00 +053038 <target name="compile" depends="clean">
39 <antcall target="compile-common">
40 <param name="src" value="servlet"/>
41 </antcall>
42 <antcall target="compile-common">
43 <param name="src" value="client"/>
44 </antcall>
45 </target>
46
47 <target name="build" depends="compile">
48 <property name="hasWebclient" value="yes"/>
49 <antcall target="webclient-war-common">
50 <param name="hasWebclient" value="yes"/>
David Matějčekf4dc06a2021-05-17 12:10:57 +020051 <param name="webclient.war.classes" value="**/servlet/*.class"/>
Vinay Vishal57171472018-09-18 20:22:00 +053052 </antcall>
53 <antcall target="appclient-jar-common"/>
54 <antcall target="ear-common"/>
David Matějčekf4dc06a2021-05-17 12:10:57 +020055
56 </target>
57
Vinay Vishal57171472018-09-18 20:22:00 +053058 <target name="deploy" depends="init-common">
59 <antcall target="deploy-jdbc-common">
60 <param name="jdbc.resource.name" value="jdbc/onlygetconnectionservlet"/>
61 <param name="jdbc.conpool.name" value="jdbc-onlygetconnectionservlet-pool"/>
62 </antcall>
63 <antcall target="asadmin-common">
64 <param name="admin.command" value="set"/>
David Matějčekf4dc06a2021-05-17 12:10:57 +020065 <param name="operand.props" value="${resources.dottedname.prefix}.jdbc-connection-pool.jdbc-onlygetconnectionservlet-pool.property.associatewiththread=true"/>
Vinay Vishal57171472018-09-18 20:22:00 +053066 </antcall>
67<antcall target="deploy-common"/>
68 </target>
David Matějčekf4dc06a2021-05-17 12:10:57 +020069
Vinay Vishal57171472018-09-18 20:22:00 +053070 <target name="run" depends="init-common">
71 <antcall target="execute-sql-common">
72 <param name="sql.file" value="sql/create.sql"/>
David Matějčekf4dc06a2021-05-17 12:10:57 +020073 </antcall>
Vinay Vishal57171472018-09-18 20:22:00 +053074
75 <java classname="com.sun.s1asdev.jdbc.onlygetconnectionservlet.client.Client">
76 <classpath>
77 <pathelement location="${assemble.dir}/${appname}-client.jar"/>
78 </classpath>
79 </java>
80 </target>
David Matějčekf4dc06a2021-05-17 12:10:57 +020081
Vinay Vishal57171472018-09-18 20:22:00 +053082 <target name="undeploy" depends="init-common">
83 <antcall target="execute-sql-common">
84 <param name="sql.file" value="sql/drop.sql"/>
David Matějčekf4dc06a2021-05-17 12:10:57 +020085 </antcall>
Vinay Vishal57171472018-09-18 20:22:00 +053086 <antcall target="undeploy-jdbc-common">
87 <param name="jdbc.resource.name" value="jdbc/onlygetconnectionservlet"/>
88 <param name="jdbc.connpool.name" value="jdbc-onlygetconnectionservlet-pool"/>
89 </antcall>
90 <antcall target="undeploy-common"/>
David Matějčekf4dc06a2021-05-17 12:10:57 +020091 </target>
Vinay Vishal57171472018-09-18 20:22:00 +053092
93 <target name="usage">
94 <antcall target="usage-common"/>
95 </target>
96</project>