Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 1 | <?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ček | f4dc06a | 2021-05-17 12:10:57 +0200 | [diff] [blame^] | 37 | |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 38 | <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ček | f4dc06a | 2021-05-17 12:10:57 +0200 | [diff] [blame^] | 51 | <param name="webclient.war.classes" value="**/servlet/*.class"/> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 52 | </antcall> |
| 53 | <antcall target="appclient-jar-common"/> |
| 54 | <antcall target="ear-common"/> |
David Matějček | f4dc06a | 2021-05-17 12:10:57 +0200 | [diff] [blame^] | 55 | |
| 56 | </target> |
| 57 | |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 58 | <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ček | f4dc06a | 2021-05-17 12:10:57 +0200 | [diff] [blame^] | 65 | <param name="operand.props" value="${resources.dottedname.prefix}.jdbc-connection-pool.jdbc-onlygetconnectionservlet-pool.property.associatewiththread=true"/> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 66 | </antcall> |
| 67 | <antcall target="deploy-common"/> |
| 68 | </target> |
David Matějček | f4dc06a | 2021-05-17 12:10:57 +0200 | [diff] [blame^] | 69 | |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 70 | <target name="run" depends="init-common"> |
| 71 | <antcall target="execute-sql-common"> |
| 72 | <param name="sql.file" value="sql/create.sql"/> |
David Matějček | f4dc06a | 2021-05-17 12:10:57 +0200 | [diff] [blame^] | 73 | </antcall> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 74 | |
| 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ček | f4dc06a | 2021-05-17 12:10:57 +0200 | [diff] [blame^] | 81 | |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 82 | <target name="undeploy" depends="init-common"> |
| 83 | <antcall target="execute-sql-common"> |
| 84 | <param name="sql.file" value="sql/drop.sql"/> |
David Matějček | f4dc06a | 2021-05-17 12:10:57 +0200 | [diff] [blame^] | 85 | </antcall> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 86 | <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ček | f4dc06a | 2021-05-17 12:10:57 +0200 | [diff] [blame^] | 91 | </target> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 92 | |
| 93 | <target name="usage"> |
| 94 | <antcall target="usage-common"/> |
| 95 | </target> |
| 96 | </project> |