| <?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 commonBuild SYSTEM "file:./../../../../../config/run.xml"> |
| <!ENTITY eeCommonBuild SYSTEM "file:./../../../../../config/ee-common.xml"> |
| <!ENTITY testproperties SYSTEM "file:./build.properties"> |
| ]> |
| |
| <project name="ee-synchronization" default="usage" basedir="."> |
| |
| &commonSetup; |
| &commonBuild; |
| &eeCommonBuild; |
| &testproperties; |
| |
| <target name="all" depends="setup, run-tests, cleanup"/> |
| |
| <target name="setup"> |
| <antcall target="deploy-apps"/> |
| <antcall target="create-connection-pools"/> |
| </target> |
| |
| <target name="deploy-apps"> |
| <echo message="Deploying ${env.S1AS_HOME}/samples/ejb/stateless/apps/simple/stateless-simple.ear "/> |
| <antcall target="deploy-common"> |
| <param name="deployed.app" value="${env.S1AS_HOME}/samples/ejb/stateless/apps/simple/stateless-simple.ear"/> |
| </antcall> |
| </target> |
| |
| <target name="undeploy-apps"> |
| <echo message="Un deploying stateless-simple"/> |
| <antcall target="undeploy-common"> |
| <param name="deployedapp.name" value="stateless-simple"/> |
| </antcall> |
| </target> |
| |
| <target name="create-connection-pools"> |
| <echo message="creating a connection pool mbeanapi-test-conn-pool"/> |
| <antcall target="create-connector-connpool"> |
| <param name="ra.name" value="stateless-simple#jdbcra"/> |
| <param name="connection.defname" value="javax.sql.DataSource"/> |
| <param name="connector.conpool.name" value="mbeanapi-test-conn-pool"/> |
| </antcall> |
| </target> |
| |
| <target name="remove-connection-pools"> |
| <echo message="deleting connection pool mbeanapi-test-conn-pool"/> |
| <antcall target="delete-connector-connpool-common"> |
| <param name="connector.conpool.name" value="mbeanapi-test-conn-pool"/> |
| </antcall> |
| </target> |
| |
| <target name="run-tests" depends="setup"> |
| <antcall target="ejb"> |
| <param name="ejb.target" value="all"/> |
| </antcall> |
| <antcall target="web"> |
| <param name="web.target" value="all"/> |
| </antcall> |
| <antcall target="jdbc"> |
| <param name="jdbc.target" value="all"/> |
| </antcall> |
| <antcall target="misc"> |
| <param name="misc.target" value="all"/> |
| </antcall> |
| </target> |
| |
| <target name="ejb"> |
| <record name="ejb.output" action="start"/> |
| <ant dir="ejb" target="${ejb.target}"/> |
| <record name="ejb.output" action="stop"/> |
| </target> |
| |
| <target name="web"> |
| <record name="web.output" action="start"/> |
| <ant dir="web" target="${web.target}"/> |
| <record name="web.output" action="stop"/> |
| </target> |
| |
| <target name="jdbc"> |
| <record name="jdbc.output" action="start"/> |
| <ant dir="jdbc" target="${jdbc.target}"/> |
| <record name="jdbc.output" action="stop"/> |
| </target> |
| |
| <target name="misc"> |
| <record name="misc.output" action="start"/> |
| <ant dir="misc" target="${misc.target}"/> |
| <record name="misc.output" action="stop"/> |
| </target> |
| |
| <target name="cleanup"> |
| <antcall target="undeploy-apps"/> |
| <antcall target="remove-connection-pools"/> |
| </target> |
| |
| <target name="usage"> |
| <antcall target="usage-common"/> |
| </target> |
| |
| </project> |