blob: 51a5339bd81fcb98ca3e9cd9674a0f50224729eb [file] [log] [blame]
<?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="WebServiceToEjb" default="all" basedir=".">
&commonBuild;
<property name="archivedir" value="${build}/archives"/>
<target name="prepare" depends="init">
<property name="binary" value="${build}/WEB-INF/classes"/>
<property name="wsdl" value="${build}/WEB-INF/wsdl"/>
<mkdir dir="${binary}" />
<mkdir dir="${wsdl}"/>
<mkdir dir="${archivedir}" />
</target>
<target name="compile" depends="prepare, import-dep">
<javac srcdir="wstoejb" destdir="${binary}">
<classpath>
<path refid="gfv3.classpath"/>
<path location="${build}/WEB-INF/lib/library.jar"/>
</classpath>
</javac>
<echo message="invoking wscompile to generate wsdl file"/>
<exec executable="${WSCOMPILE}">
<arg line="-define config-interface.xml -d ${binary} -nd ${wsdl} -classpath ${binary} -mapping ${build}/mapping.xml"/>
</exec>
</target>
<target name="import-dep">
<mkdir dir="${build}/WEB-INF/lib" />
<mkdir dir="${build}/tmp/wstoejb" />
<copy file="${build}/../ejb/wstoejb/StatefulSessionBean.class" todir="${build}/tmp/wstoejb"/>
<copy file="${build}/../ejb/wstoejb/StatefulSessionBeanHome.class" todir="${build}/tmp/wstoejb"/>
<jar destfile="${build}/WEB-INF/lib/library.jar" basedir="${build}/tmp"/>
<delete dir="${build}/tmp"/>
</target>
<target name="assemble" depends="compile">
<copy file="web.xml" todir="${build}/WEB-INF"/>
<copy file="webservices.xml" todir="${build}/WEB-INF"/>
<jar destfile="${archivedir}/sayhello-portable.war" basedir="${build}"/>
<copy file="sun-web.xml" todir="${build}/WEB-INF" failonerror="false"/>
<jar destfile="${archivedir}/sayhello.war" basedir="${build}"/>
</target>
<target name="private-all" depends="assemble"/>
</project>