| <?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 Config 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="./../../../../../config.properties"/> |
| <property file="./build.properties"/> |
| |
| |
| <path id="compile.classpath"> |
| <pathelement location="${jmxri.jar}"/> |
| <pathelement location="${mbeanapi.jar}"/> |
| <pathelement location="${mbeanapi-impl.jar}"/> |
| <pathelement location="${mgmtapi.jar}"/> |
| </path> |
| |
| <path id="run.classpath"> |
| <pathelement location="${build}"/> |
| <pathelement location="${jmxri.jar}"/> |
| <pathelement location="${mbeanapi.jar}"/> |
| <pathelement location="${mbeanapi-impl.jar}"/> |
| <pathelement location="${jmxremote.jar}"/> |
| <pathelement location="${mgmtapi.jar}"/> |
| </path> |
| |
| <target name="init" description="MBeanapi Tests initialization"> |
| <mkdir dir="${build}"/> |
| </target> |
| |
| <!-- all --> |
| <target name="all" depends="build" |
| description="Build entire component" /> |
| |
| <!-- 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> |
| |
| <target name="run-standalone-instance-manager" description="runs the standalone instance manager unit test twice to create two standalone instances"> |
| <java classname="com.sun.enterprise.admin.mbeanapi.common.StandaloneInstanceManager"> |
| <classpath refid="run.classpath"/> |
| <arg value="${standalone.instance.one}"/> |
| </java> |
| <java classname="com.sun.enterprise.admin.mbeanapi.common.StandaloneInstanceManager"> |
| <classpath refid="run.classpath"/> |
| <arg value="${standalone.instance.two}"/> |
| <sysproperty key="HOST" value="localhost"/> |
| <sysproperty key="PORT" value="8686"/> |
| <sysproperty key="ADMIN_USER" value="admin"/> |
| <sysproperty key="ADMIN_PASSWORD" value="adminadmin"/> |
| </java> |
| </target> |
| |
| <target name="run-amx-connection-verifier" description="runs the amx connection verifier unit test"> |
| <java classname="com.sun.enterprise.admin.mbeanapi.common.AMXConnectionVerifier"> |
| <classpath refid="run.classpath"/> |
| <arg value="${standalone.instance.one}"/> |
| <sysproperty key="HOST" value="localhost"/> |
| <sysproperty key="PORT" value="8686"/> |
| <sysproperty key="ADMIN_USER" value="admin"/> |
| <sysproperty key="ADMIN_PASSWORD" value="adminadmin"/> |
| </java> |
| </target> |
| </project> |