| <?xml version="1.0"?> |
| <!-- |
| ~ Licensed to the Apache Software Foundation (ASF) under one |
| ~ or more contributor license agreements. See the NOTICE file |
| ~ distributed with this work for additional information |
| ~ regarding copyright ownership. The ASF licenses this file |
| ~ to you under the Apache License, Version 2.0 (the |
| ~ "License"); you may not use this file except in compliance |
| ~ with the License. You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, |
| ~ software distributed under the License is distributed on an |
| ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| ~ KIND, either express or implied. See the License for the |
| ~ specific language governing permissions and limitations |
| ~ under the License. |
| --> |
| <project name="quickstart" default="package"> |
| |
| <property name="root.base.dir" value="../.."/> |
| <property name="module.name" value="samples-quickstart"/> |
| <import file="${root.base.dir}/common.ant.xml"/> |
| <property name="dist.jarName" value="${project.name}-${module.name}-${version}"/> |
| <property name="dist.jar" value="${dist.dir}/samples/${dist.jarName}.jar"/> |
| <property name="dist.warName" value="${project.name}-${module.name}-${version}"/> |
| <property name="dist.war" value="${dist.dir}/samples/${dist.warName}.war"/> |
| |
| <path id="compile.path"> |
| <fileset dir="${lib.dir}/samples"> |
| <include name="*.jar"/> |
| </fileset> |
| <fileset dir="${dist.dir}/modules"> |
| <include name="${project.name}-core-${version}.jar"/> |
| </fileset> |
| </path> |
| |
| <path id="run.path"> |
| <pathelement location="${classes.dir}"/> |
| <fileset dir="${lib.dir}/samples"> |
| <include name="commons-logging-*.jar"/> |
| <include name="log4j-*.jar"/> |
| <!-- Not normally needed, but mac os x JDK needs it for some reason: --> |
| <include name="xercesImpl-*.jar"/> |
| </fileset> |
| <fileset dir="${root.dist.dir}" includes="${project.name}-${version}.jar"/> |
| </path> |
| |
| <target name="compile" depends="compile.src"/> <!-- no test classes, no need to depend on compile.test --> |
| |
| <target name="run" depends="package" description="Runs the simple ${module.name} class"> |
| <java classname="Quickstart" classpathref="run.path"/> |
| </target> |
| |
| </project> |