| <?xml version="1.0" encoding="ISO-8859-1"?> |
| <!-- |
| |
| Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. |
| |
| This program and the accompanying materials are made available under the |
| terms of the Eclipse Public License v. 2.0, which is available at |
| http://www.eclipse.org/legal/epl-2.0. |
| |
| This Source Code may also be made available under the following Secondary |
| Licenses when the conditions for such availability set forth in the |
| Eclipse Public License v. 2.0 are satisfied: GNU General Public License, |
| version 2 with the GNU Classpath Exception, which is available at |
| https://www.gnu.org/software/classpath/license.html. |
| |
| SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 |
| |
| --> |
| |
| <!DOCTYPE project [ |
| <!ENTITY commonSetup SYSTEM "file:./../../../../config/properties.xml"> |
| <!ENTITY commonBuild SYSTEM "file:./../../../../config/common.xml"> |
| <!ENTITY testproperties SYSTEM "file:./build.properties"> |
| <!ENTITY run SYSTEM "file:./../../../../config/run.xml"> |
| ]> |
| |
| <project name="visibroker" default="usage" basedir="."> |
| |
| &commonSetup; |
| &commonBuild; |
| &testproperties; |
| &run; |
| |
| <target name="all" depends="build,deploy,run"/> |
| |
| <target name="clean" depends="init-common"> |
| <antcall target="clean-common"/> |
| </target> |
| |
| <target name="compile" depends="clean"> |
| <echo message="common.xml: Compiling source files with vbjc..." level="verbose"/> |
| <exec executable="/space/Borland/VisiBroker/bin/vbjc" dir="src/Bank" failonerror="false"> |
| <arg line="Account.java AccountManager.java AccountData.java AccountManagerOperations.java"/> |
| </exec> |
| |
| <echo message="common.xml: Run the AccountManager interface (which refers to all the other classes and interfaces) through the java2iiop compiler..." level="verbose"/> |
| <exec dir="src" executable="/space/Borland/VisiBroker/bin/java2iiop" failonerror="false"> |
| <arg line="Bank.AccountData Bank.AccountManager"/> |
| </exec> |
| |
| <mkdir dir="${build.classes.dir}"/> |
| <exec dir="src" executable="/space/Borland/VisiBroker/bin/vbjc" failonerror="false"> |
| <arg line="Bank/AccountHelper.java Bank/AccountHolder.java Bank/AccountManagerHelper.java Bank/AccountManagerHolder.java Bank/AccountManagerPOA.java Bank/AccountManagerPOATie.java Bank/AccountOperations.java Bank/AccountPOA.java Bank/_AccountManagerStub.java Bank/_Account_Stub.java Bank/_Account_Tie.java"/> |
| |
| </exec> |
| <exec dir="src" executable="/space/Borland/VisiBroker/bin/vbjc" failonerror="false"> |
| <arg line="AccountImpl.java AccountManagerImpl.java Client.java Server.java"/> |
| |
| </exec> |
| |
| <copy todir="${build.classes.dir}"> |
| <fileset dir="src/Bank"> |
| <exclude name="**/*.java"/> |
| </fileset> |
| <fileset dir="src"> |
| <exclude name="**/*.java"/> |
| </fileset> |
| |
| </copy> |
| |
| </target> |
| |
| |
| <target name="build" depends="compile"> |
| <property name="hasWebclient" value="yes"/> |
| <antcall target="webclient-war-common"> |
| <param name="hasWebclient" value="yes"/> |
| <param name="webclient.war.classes" value="*.class,**/*.class"/> |
| </antcall> |
| </target> |
| |
| |
| <target name="deploy" depends="init-common"> |
| <echo message="Deploying via asadmin..."/> |
| <antcall target="deploy-war-common"/> |
| </target> |
| |
| |
| <target name="run" depends="init-common"> |
| <antcall target="runwebclient-common"> |
| <param name="testsuite.id" value="rmiiiop"/> |
| </antcall> |
| </target> |
| |
| <target name="undeploy" depends="init-common"> |
| <antcall target="undeploy-war-common"/> |
| </target> |
| |
| |
| </project> |