forked from ShaneMcC/jgit-describe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
27 lines (27 loc) · 785 Bytes
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?xml version="1.0" encoding="UTF-8"?>
<project name="git-describe" default="jar" basedir=".">
<path id="java.lib.path">
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="build">
<mkdir dir="bin"/>
<javac destdir="bin" source="1.5" encoding="UTF-8" debug="on" classpathref="java.lib.path" includeAntRuntime="true">
<src path="src"/>
<include name="org/mdonoughe/JGitDescribeTask.java"/>
</javac>
</target>
<target name="jar" depends="build">
<mkdir dir="dist"/>
<jar destfile="dist/jgit-describe.jar">
<fileset dir="bin">
<include name="**/*.class"/>
</fileset>
</jar>
</target>
<target name="clean" >
<delete dir="dist"/>
<delete dir="bin"/>
</target>
</project>