blob: 174a89c16c3395749cc87f085b38abb0642f7502 [file] [log] [blame]
<!--
Copyright (c) 2017, 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
-->
<property environment="env"/>
<condition property="uber.mode">
<or>
<isset property="uber.jar.repo"/>
<isset property="uber.jar"/>
</or>
</condition>
<condition property="uber.jar" value="${uber.jar.repo}/repository/org/glassfish/extras/glassfish-embedded-all/3.1-SNAPSHOT/glassfish-embedded-all-3.1-SNAPSHOT.jar">
<and>
<isset property="uber.mode"/>
<not>
<isset property="uber.jar"/>
</not>
</and>
</condition>
<condition property="embedded.classpath" value="${uber.jar}" else="${env.S1AS_HOME}/lib/embedded/glassfish-embedded-static-shell.jar">
<isset property="uber.mode"/>
</condition>
<target name="start-database" unless="skip.start.database">
<antcall target="start-derby"/>
</target>
<target name="start-derby" unless="uber.mode">
<antcall target="startDerby"/>
</target>
<target name="stop-database" unless="skip.stop.database">
<antcall target="stop-derby"/>
</target>
<target name="stop-derby" unless="uber.mode">
<antcall target="stopDerby"/>
</target>
<target name="clean-result">
<delete>
<fileset dir="${env.APS_HOME}" includes="test_results*"/>
</delete>
<delete>
<fileset dir="." includes="*.output"/>
</delete>
</target>
<target name="compile-util">
<antcall target="compile-common">
<param name="src" value="../util/src"/>
</antcall>
</target>