| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Copyright (c) 2017, 2021 Oracle and/or its affiliates. All rights reserved. |
| |
| This program and the accompanying materials are made available under the |
| terms of the Eclipse Distribution License v. 1.0, which is available at |
| http://www.eclipse.org/org/documents/edl-v10.php. |
| |
| SPDX-License-Identifier: BSD-3-Clause |
| |
| --> |
| |
| <project name="schematest" default="test" basedir="."> |
| |
| <target name="test"> |
| <echoproperties/> |
| </target> |
| |
| <target name="init"> |
| <property name="libs.folder" value="${bin.folder}/lib"/> |
| <property name="schemagen.lib" value="${bin.folder}/schemagen-cp"/> |
| <property name="lib.dir" value="lib"/> |
| <property name="build.dir" value="build"/> |
| <property name="src.dir" value="src"/> |
| </target> |
| |
| <target name="setup" depends="init"> |
| <mkdir dir="${lib.dir}"/> |
| <mkdir dir="${build.dir}"/> |
| <mkdir dir="${src.dir}"/> |
| <copy todir="${lib.dir}"> |
| <fileset dir="${libs.folder}"/> |
| </copy> |
| <path id="task.cp"> |
| <pathelement location="${bin.folder}/classes"/> |
| <fileset dir="${lib.dir}"/> |
| <fileset dir="${schemagen.lib}"/> |
| </path> |
| </target> |
| |
| <target name="schemagen-init" depends="setup"> |
| <taskdef name="schemagen" classname="com.sun.tools.jxc.SchemaGenTask"> |
| <classpath refid="task.cp"/> |
| </taskdef> |
| </target> |
| |
| <target name="schemagen-fork" depends="schemagen-init"> |
| <echo message="Generating schemas..."/> |
| <schemagen destdir="${build.dir}" fork="true"> |
| <src path="${src.dir}"/> |
| </schemagen> |
| </target> |
| |
| <target name="schemagen-addmodules"/> |
| |
| <target name="clean" depends="init"> |
| <delete dir="${src.dir}" verbose="true" failonerror="false"/> |
| <delete dir="${build.dir}" verbose="true" failonerror="false"/> |
| <delete dir="${lib.dir}" verbose="true" failonerror="false"/> |
| </target> |
| |
| </project> |