| <?xml version="1.0"?> |
| <!--/******************************************************************************* |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 |
| * which accompanies this distribution. |
| * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html |
| * and the Eclipse Distribution License is available at |
| * http://www.eclipse.org/org/documents/edl-v10.php. |
| * |
| * Ant naming conventions: |
| * - regardless of the actual OS platform,'/' is the directory separator |
| * (Ant will convert as appropriate). |
| * - multi-word properties use periods '.' |
| * - properties ending in .jar define jarfile names only (no path) |
| * - properties ending in .lib are fully qualified jars (path and filename) |
| * - properties ending in .dir are directory paths |
| * - properties ending in .path are path refid names (classpath fragments) |
| * - multi-word targets use hyphens '-' |
| * - targets beginning with test- are reserved for high level test targets, |
| * and are used in test results parsing |
| * - targets typically use the form <action>-<object>-<type> (ie. package-bundle-zip) |
| * - multi-word macros use underscores '_' |
| * - multi-word macro attributes are concatenated |
| * e.g. 'runpathref' |
| * - multi-word tasks (taskdef) names are concatenated |
| * e.g. 'validateconnection' |
| * - OS environment variables are in ALLCAPS and have 'env' as a prefix |
| * e.g. ${env.XXX}. |
| * - Ant properties are lower case. |
| * |
| * Contributors: |
| * bdoughan - initial API and implementation |
| #******************************************************************************/--> |
| <project name="eclipselink.utils.jaxb" default="build" basedir="."> |
| <available file="../${ant.project.name}" type="dir" property="jaxbutil.is.local"/> |
| <!-- Test to make sure that the calling script doesn't inherit the variable --> |
| <!-- (should be set locally, and be destroyed upon return) --> |
| <fail unless="jaxbutil.is.local" message="Not running from '${ant.project.name}' directory"/> |
| <condition property="is.java.version.16"> |
| <equals arg1="${ant.java.version}" arg2="1.6"/> |
| </condition> |
| |
| <dirname property="jaxbutil.build.location" file="${ant.file.eclipselink.utils.jaxb}"/> |
| <condition property="jaxbutil.2.common.plugins.dir" value="../../plugins" else="../plugins"> |
| <contains string="${jaxbutil.build.location}" substring="util"/> |
| </condition> |
| |
| <!-- OS environment variables have 'env' as a prefix --> |
| <property environment="env"/> |
| <!-- local property overrides --> |
| <property file="${user.home}/build.properties"/> |
| <!-- properties checked into SVN --> |
| <property file="${jaxbutil.build.location}/antbuild.properties"/> |
| |
| <!-- versioning --> |
| <!-- These variables are set in autobuild.xml. A manual build gets defaults --> |
| <tstamp> |
| <format property="build.date" pattern="yyyyMMdd"/> |
| <format property="build.time" pattern="HHmm"/> |
| </tstamp> |
| <property name="build.type" value="SNAPSHOT"/> |
| <property name="svn.revision" value="NA"/> |
| <property name="version.string" value="${release.version}.qualifier"/> |
| <property name="release.designation" value="EclipseLink DeveloperBuild"/> |
| |
| <property name="jaxb-impl.lib" value="${jaxbutil.2.common.plugins.dir}/${jaxb-impl.jar}"/> |
| <property name="jaxb-xjc.lib" value="${jaxbutil.2.common.plugins.dir}/${jaxb-xjc.jar}"/> |
| |
| <!-- Set Compile Path--> |
| <path id="jaxbutil.compile.path"> |
| <pathelement path="${jaxb-impl.lib}"/> |
| <pathelement path="${jaxb-xjc.lib}"/> |
| </path> |
| |
| <!-- all --> |
| <target name="build" depends="clean, compile" description="compile jaxbutils"/> |
| |
| <!-- clean --> |
| <target name="clean" description="Clean all generated content"> |
| <delete includeEmptyDirs="true" failonerror="false"> |
| <fileset dir="${classes.dir}"/> |
| <fileset dir="." includes="${jaxbutil.jar}"/> |
| </delete> |
| </target> |
| |
| <!-- compile --> |
| <target name="compile" description="Compile jaxb Util classes"> |
| <mkdir dir="${classes.dir}"/> |
| <javac srcdir="${src.dir}" |
| destdir="${classes.dir}" |
| includes="**/*.java" |
| debug="${javac.debug}" |
| debuglevel="${javac.debuglevel}" |
| encoding="UTF-8" |
| optimize="${javac.optimize}" |
| source="${javac.version}" |
| target="${javac.version}" |
| deprecation="${javac.deprecation}" |
| failonerror="true" |
| memoryMaximumSize="512m" |
| fork="true" |
| classpathref="jaxbutil.compile.path" |
| /> |
| </target> |
| |
| </project> |