blob: a6f6c424454a6fe113fffce3757be7c5e242ef3b [file] [log] [blame]
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE project [
<!--
Copyright (c) 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 commonSetup SYSTEM "file:./../../../../config/properties.xml">
<!ENTITY commonBuild SYSTEM "file:./../../../../config/common.xml">
<!ENTITY testproperties SYSTEM "file:./build.properties">
<!ENTITY jwsSetup SYSTEM "file:./../jwsSetup.xml">
]>
<project name="jws-forceFailure" default="usage" basedir=".">
&commonSetup;
&commonBuild;
&testproperties;
&jwsSetup;
<target name="all" depends="build,deploy,run,undeploy"/>
<target name="clean" depends="init-common">
<antcall target="clean-common"/>
</target>
<!-- In this example there are only .java files for the client -->
<target name="compile" depends="clean">
<antcall target="compile-common">
<param name="src" value="client"/>
</antcall>
</target>
<target name="build">
<antcall target="build.client"/>
</target>
<target name="build.client" depends="compile">
<antcall target="appclient-jar-common">
<param name="application-client.xml" value="client/application-client.xml"/>
<param name="appclientjar.classes" value="**/*.class" />
</antcall>
</target>
<target name="deploy"
depends="init-common">
<antcall target="deploy.client"/>
</target>
<target name="deploy.client" depends="build.client">
<antcall target="deploy-common">
<param name="deployed.app" value="${assemble.dir}/${appname}-client.jar"/>
</antcall>
</target>
<target name="undeploy" depends="init-common">
<antcall target="undeploy.client"/>
</target>
<target name="undeploy.client" depends="init-common">
<antcall target="undeploy-client-common"/>
</target>
<target name="run" depends="init-common">
<antcall target="test.standalone.client"/>
<antcall target="test.embedded.client"/>
</target>
<target name="test.standalone.client">
<antcall target="test.client">
<param name="urlpath" value="/${clientname}"/>
</antcall>
</target>
<target name="test.client" depends="init-common">
<fail unless="urlpath">Please specify the argument 'urlpath' when invoking test.client</fail>
<!--
The very simple client under test just writes the arguments it
receives out to a file.
-->
<run-jws
urlpath="${urlpath}"
resultproperty="result"
/>
<echo>Result property is ${result}</echo>
</target>
<target name="usage">
<antcall target="usage-common"/>
</target>
</project>