Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.xml
More file actions
Latest commit
33 lines (28 loc) · 855 Bytes
/
Copy pathbuild.xml
File metadata and controls
33 lines (28 loc) · 855 Bytes
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
<projectname="java-config"default="dist">
<targetname="compile">
<mkdirdir="build/classes"/>
<javacsrcdir="src"destdir="build/classes"includeantruntime="false"/>
<copytodir="build/classes">
<filesetdir="src">
<includename="*.txt"/>
</fileset>
</copy>
<exec executable = "git"output="build/classes/build.txt"failifexecutionfails="false"failonerror="false">
<arg value = "rev-parse" />
<arg value = "HEAD" />
</exec>
</target>
<targetname="jar"depends="compile">
<jarjarfile="build/java-config.jar"basedir="build/classes">
<manifest>
<attributename="Main-Class"value="JavaConfig"/>
</manifest>
</jar>
</target>
<targetname="clean">
<deletedir="build"/>
</target>
<targetname="dist"depends="clean,jar">
<copytodir="."file="build/java-config.jar"/>
</target>
</project>