blob: 902daa874b614940923167dc0ff170be2e6551ab [file] [log] [blame]
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
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
-->
<project name="ejb" default="usage" basedir=".">
<property name="stateful-target" value="all"/>
<target name="all">
<antcall target="stateful-tests">
<param name="stateful-target" value="all"/>
</antcall>
</target>
<target name="run-test">
<antcall target="stateful-tests">
<param name="stateful-target" value="run-test"/>
</antcall>
</target>
<target name="clean">
<antcall target="stateful-tests">
<param name="stateful-target" value="clean"/>
</antcall>
</target>
<target name="build">
<antcall target="stateful-tests">
<param name="stateful-target" value="build"/>
</antcall>
</target>
<target name="setup">
<antcall target="stateful-tests">
<param name="stateful-target" value="setup"/>
</antcall>
</target>
<target name="deploy">
<antcall target="stateful-tests">
<param name="stateful-target" value="deploy"/>
</antcall>
</target>
<target name="undeploy">
<antcall target="stateful-tests">
<param name="stateful-target" value="undeploy"/>
</antcall>
</target>
<target name="unsetup">
<antcall target="stateful-tests">
<param name="stateful-target" value="unsetup"/>
</antcall>
</target>
<target name="run">
<antcall target="stateful-tests">
<param name="stateful-target" value="run"/>
</antcall>
</target>
<target name="stateful-tests">
<antcall target="passivate"/>
</target>
<target name="persistence">
<record name="persistence.output" action="start" />
<ant dir="persistence" target="${stateful-target}"/>
<record name="persistence.output" action="stop" />
</target>
<target name="passivate">
<record name="passivate.output" action="start" />
<ant dir="passivate" target="${stateful-target}"/>
<record name="passivate.output" action="stop" />
</target>
<target name="usage">
<echo>
Usage:
ant persistence (Executes the persistence tests)
ant all (Executes all the ejb session stateful tests)
ant clean (cleans all the ejb session stateful tests)
ant build (builds all the ejb session stateful tests)
ant setup (sets up resources for all the ejb session stateful tests)
ant deploy (deploys all the ejb session stateful apps)
ant run (Executes all the ejb session stateful tests)
ant undeploy (undeploys all the ejb session stateful apps)
ant unsetup (unsets all resources the ejb session stateful tests)
</echo>
</target>
</project>