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 | <!ENTITY run SYSTEM "./../../../config/run.xml"> |
| 25 | <!ENTITY jdbcCommon SYSTEM "./../JdbcCommon.xml"> |
| 26 | <!ENTITY jdbcCommonProperties SYSTEM "./../JdbcCommon.properties"> |
| 27 | ]> |
| 28 | |
| 29 | <project name="mix" default="usage" basedir="."> |
| 30 | |
| 31 | &commonSetup; |
| 32 | &commonBuild; |
| 33 | &testproperties; |
| 34 | &run; |
| 35 | &jdbcCommon; |
| 36 | &jdbcCommonProperties; |
| 37 | |
| 38 | <target name="all" depends="build,deploy,run,undeploy"/> |
| 39 | |
| 40 | <target name="clean" depends="init-common"> |
| 41 | <antcall target="clean-common"/> |
| 42 | </target> |
David Matějček | f4dc06a | 2021-05-17 12:10:57 +0200 | [diff] [blame^] | 43 | |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 44 | <target name="compile" depends="clean"> |
| 45 | <antcall target="compile-common"> |
| 46 | <param name="src" value="ejb"/> |
| 47 | </antcall> |
| 48 | <antcall target="compile-common"> |
| 49 | <param name="src" value="client"/> |
| 50 | </antcall> |
| 51 | </target> |
| 52 | |
| 53 | <target name="build" depends="compile"> |
| 54 | <antcall target="build-ear-common"> |
David Matějček | f4dc06a | 2021-05-17 12:10:57 +0200 | [diff] [blame^] | 55 | <param name="ejbjar.classes" |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 56 | value="**/*.class" /> |
David Matějček | f4dc06a | 2021-05-17 12:10:57 +0200 | [diff] [blame^] | 57 | <param name="appclientjar.classes" |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 58 | value="**/SimpleBMP.class, **/SimpleBMPHome.class,**/*Client*.class" /> |
| 59 | </antcall> |
David Matějček | f4dc06a | 2021-05-17 12:10:57 +0200 | [diff] [blame^] | 60 | </target> |
| 61 | |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 62 | <target name="deploy" depends="init-common"> |
| 63 | <antcall target="execute-sql-mysql-common"> |
| 64 | <param name="sql.file" value="sql/create_mysql.sql"/> |
| 65 | </antcall> |
| 66 | <antcall target="deploy-jdbc-mysql-common"/> |
| 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-mysql-common"> |
| 72 | <param name="sql.file" value="sql/create_mysql.sql"/> |
| 73 | </antcall> |
| 74 | <antcall target="runclient-common"/> |
| 75 | </target> |
David Matějček | f4dc06a | 2021-05-17 12:10:57 +0200 | [diff] [blame^] | 76 | |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 77 | <target name="undeploy" depends="init-common"> |
| 78 | <antcall target="execute-sql-mysql-common"> |
| 79 | <param name="sql.file" value="sql/drop_mysql.sql"/> |
| 80 | </antcall> |
| 81 | |
| 82 | <antcall target="undeploy-jdbc-mysql-common"/> |
| 83 | <antcall target="undeploy-common"/> |
David Matějček | f4dc06a | 2021-05-17 12:10:57 +0200 | [diff] [blame^] | 84 | </target> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 85 | |
| 86 | <target name="usage"> |
| 87 | <antcall target="usage-common"/> |
| 88 | </target> |
| 89 | |
| 90 | </project> |