| <?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 name="samples" value="${testsRoot}/samples"/> | |
| <property file="./bootstrap.subcomponent.properties"/> | |
| <property file="./../../../../../../bootstrap/bootstrap.properties"/> | |
| <property file="./../../../../../../appserv/build.properties"/> | |
| <property file="./build.properties"/> | |
| <property name="listfiles" value="false"/> | |
| <path id="compile.classpath"> | |
| <pathelement location="${jmxri.jar}"/> | |
| <pathelement location="${mbeanapi.jar}"/> | |
| </path> | |
| <path id="run.classpath"> | |
| <pathelement location="${mbeanapi.jar}"/> | |
| <pathelement location="${jmxri.jar}"/> | |
| <pathelement location="${jmxremote.jar}"/> | |
| <pathelement location="${build}"/> | |
| </path> | |
| <target name="init" description="MBeanapi Tests initialization"> | |
| <mkdir dir="${build}"/> | |
| </target> | |
| <!-- all --> | |
| <target name="all" depends="build,copyuisamples" | |
| 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" | |
| listfiles="${listfiles}"> | |
| <classpath refid="compile.classpath"/> | |
| <include name="**/*.java"/> | |
| </javac> | |
| </target> | |
| <!-- copysamples--> | |
| <target name="copyuisamples" depends="compile"> | |
| <copy todir="${samples.dest}"> | |
| <fileset dir="${samples.src}"/> | |
| </copy> | |
| </target> | |
| <!-- clean --> | |
| <target name="clean" description="clean"> | |
| <delete dir="${build}"/> | |
| <delete dir="${samples}"/> | |
| </target> | |
| <!-- copyautosamples --> | |
| <target name="copyautosamples"> | |
| <unzip src="${testsRoot}/samples.zip" dest="${samples}"/> | |
| <unzip src="${testsRoot}/dir-deploy.zip" dest="${samples}"/> | |
| </target> | |
| <!-- runtests --> | |
| <target name="runtests" depends="compile,copyautosamples"> | |
| <java classname="com.sun.enterprise.admin.mbeanapi.deployment.DeploymentTestsAuto" fork="true"> | |
| <jvmarg value="-ea"/> | |
| <arg value="ant"/> | |
| <classpath refid="run.classpath"/> | |
| </java> | |
| </target> | |
| <!-- runtestsdebug --> | |
| <target name="runtestsdebug" depends="compile,copyautosamples"> | |
| <echo message="Running tests with debugging on Port 3333. Suspended -- go attach now."/> | |
| <java classname="com.sun.enterprise.admin.mbeanapi.deployment.DeploymentTestsAuto" fork="true"> | |
| <jvmarg value="-ea"/> | |
| <jvmarg value="-Xdebug"/> | |
| <jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=3333"/> | |
| <arg value="ant"/> | |
| <classpath refid="run.classpath"/> | |
| </java> | |
| </target> | |
| </project> |