| <?xml version="1.0" encoding="ISO-8859-1"?> |
| <!DOCTYPE project [ |
| <!-- |
| |
| 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 |
| |
| --> |
| |
| <!ENTITY commonBuild SYSTEM "./../../../config/common.xml"> |
| ]> |
| |
| <project name="wstoejb" default="all" basedir="."> |
| |
| &commonBuild; |
| <property name="archivedir" value="${build}/archives"/> |
| |
| <target name="prepare" depends="init"> |
| <mkdir dir="${build}" /> |
| <mkdir dir="${archivedir}" /> |
| <copy file="WebServiceToEjb.wsdl" todir="${build}/META-INF/wsdl"/> |
| <exec executable="${WSCOMPILE}" failonerror="true" > |
| <arg line="-import -d ${build} -classpath ${build} -mapping ${build}/mapping.xml wscompile_config.xml"/> |
| </exec> |
| </target> |
| |
| <target name="compile" depends="prepare"> |
| <javac srcdir="wstoejb" destdir="${build}"> |
| <classpath refid="gfv3.classpath"/> |
| </javac> |
| |
| </target> |
| |
| <target name="assemble" depends="compile,setHttpPort"> |
| <mkdir dir="${build}/META-INF"/> |
| <copy file="application-client.xml" todir="${build}/META-INF"/> |
| <jar destfile="${archivedir}/appclient-portable.jar" basedir="${build}"> |
| <manifest> |
| <attribute name="main-class" value="wstoejb.Client"/> |
| </manifest> |
| </jar> |
| <copy file="sun-application-client.xml" todir="${build}/META-INF" failonerror="false"/> |
| <replace file="${build}/META-INF/sun-application-client.xml"> |
| <replacefilter token="HTTP_HOST" value="${http.host}" /> |
| <replacefilter token="HTTP_PORT" value="${depltest.port}"/> |
| </replace> |
| <jar destfile="${archivedir}/appclient.jar" basedir="${build}"> |
| <manifest> |
| <attribute name="main-class" value="wstoejb.Client"/> |
| </manifest> |
| </jar> |
| </target> |
| |
| <target name="private-all" depends="assemble"/> |
| |
| </project> |