<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- WARNING: Eclipse auto-generated file.
Any modifications will be overwritten.
To include a user specific buildfile here, simply create one in the same
directory with the processing instruction <?eclipse.ant.import?>
as the first entry and export the buildfile again. -->
<project basedir="." default="jar" name="Utility">
<property environment="env"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.8"/>
<property name="source" value="1.8"/>
<!-- 构建路径 -->
<path id="Maven Dependencies.libraryclasspath">
<fileset dir="../lib"></fileset>
</path>
<path id="Utility.classpath">
<pathelement location="target/classes"/>
<path refid="Maven Dependencies.libraryclasspath"/>
</path>
<!-- 初始化 -->
<target name="init" depends="clean">
<mkdir dir="target/classes"/>
<copy includeemptydirs="false" todir="target/classes">
<fileset dir="src/main/java"></fileset>
</copy>
</target>
<target name="clean">
<delete dir="target/classes"/>
</target>
<!-- 编译 -->
<target depends="init" name="build-project">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac encoding="utf-8" debug="true" debuglevel="${debuglevel}" destdir="target/classes" includeantruntime="false" source="${source}" target="${target}">
<src path="src/main/java"/>
<classpath refid="Utility.classpath"/>
</javac>
</target>
<!-- 打jar包 -->
<target name="jar" depends="build-project">
<jar destfile="target/Utility.jar" basedir="target/classes">
</jar>
</target>
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
</project>