blob: 322e1f791b7bf9a2dee427c476e2cf85019399d3 [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="MBeanApi Monitoring tests" default="all" basedir=".">
<property name="testsRoot" value="."/>
<property name="build" value="${testsRoot}/build"/>
<property file="./bootstrap.subcomponent.properties"/>
<property file="./../../../../../../../bootstrap/bootstrap.properties"/>
<property file="./../../../../../../../appserv/build.properties"/>
<property file="./build.properties"/>
<path id="compile.classpath">
<pathelement location="${jmxri.jar}"/>
<pathelement location="${mbeanapi.jar}"/>
<pathelement location="${mbeanapi-impl.jar}"/>
<pathelement location="../../common/build"/>
</path>
<path id="run.classpath">
<pathelement location="${jmx-ri.jar}"/>
<pathelement location="${mbeanapi.jar}"/>
<pathelement location="${mbeanapi-impl.jar}"/>
<pathelement location="../../common/build"/>
<pathelement location="${jmx-remote.jar}"/>
<pathelement location="${jmx-remote_optional.jar}"/>
<pathelement location="${appserv-commons.jar}"/>
<pathelement location="${mgmt-api.jar}"/>
<pathelement location="build"/>
</path>
<target name="init" description="MBeanapi Tests initialization">
<mkdir dir="${build}"/>
</target>
<!-- all -->
<target name="all" depends="build"
description="Build entire component">
<antcall target="ejb-pool-mtr-test"/>
</target>
<!-- build -->
<target name="build" depends="compile"
description="Build entire component" />
<!-- compile -->
<target name="compile" depends="init">
<javac srcdir="${src.dir}"
destdir="${build}"
debug="${javac.debug}"
optimize="${javac.optimize}"
source="${javac.source}"
deprecation="${javac.deprecation}"
failonerror="true">
<classpath refid="compile.classpath"/>
<include name="**/*.java"/>
</javac>
</target>
<!-- clean -->
<target name="clean" description="clean">
<delete dir="${build}"/>
</target>
<!-- EJB pool monitoring Test Case -->
<target name="ejb-pool-mtr-test">
<antcall target="test-common">
<param name="test.class"
value="com.sun.s1asdev.admin.mbeanapi.monitoring.ejb.EJBMonitoring"/>
</antcall>
</target>
<target name="test-common">
<java classname="${test.class}" failonerror="true" fork="true">
<classpath>
<path refid="run.classpath"/>
</classpath>
<!--jvmarg value="-Dcom.sun.aas.instanceRoot=/tmp"/-->
</java>
</target>
</project>