forked from Hunternif/JGitVersion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
35 lines (30 loc) · 1.08 KB
/
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
28
29
30
31
32
33
34
35
<?xml version="1.0"?>
<project name="JGitVersion" default="build-release">
<target name="declare" depends="build">
<taskdef name="jgitversion" classname="hunternif.jgitversion.JGitVersionTask">
<classpath>
<pathelement path="bin"/>
<pathelement path="lib/gitective/gitective-core-0.9.9.jar"/>
<pathelement path="lib/jgit/org.eclipse.jgit_2.2.0.201212191850-r.jar"/>
</classpath>
</taskdef>
</target>
<target name="version" depends="declare">
<jgitversion dir="." property="build.version"/>
<echo message="${build.version}"/>
</target>
<target name="build">
<delete dir="bin"/>
<mkdir dir="bin"/>
<javac srcdir="src" destdir="bin">
<classpath>
<pathelement path="lib/gitective/gitective-core-0.9.9.jar"/>
<pathelement path="lib/jgit/org.eclipse.jgit_2.2.0.201212191850-r.jar"/>
</classpath>
</javac>
</target>
<target name="build-release" depends="version">
<mkdir dir="build"/>
<jar destfile="build/jgitversion-${build.version}.jar" basedir="bin"/>
</target>
</project>