forked from jonfhancock/JsonToJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
37 lines (32 loc) · 1.3 KB
/
build.xml
File metadata and controls
37 lines (32 loc) · 1.3 KB
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
36
37
<project name="JsonToJava">
<property name="src.dir" value="src"/>
<property name="build.dir" value="build"/>
<property name="libs.dir" value="libs"/>
<path id="external.classpath">
<pathelement location="${libs.dir}/commons-io-2.4.jar"/>
<pathelement location="${libs.dir}/commons-lang3-3.1.jar"/>
<pathelement location="${libs.dir}/modeshape-jpa-ddl-gen-2.1.0.Final-jar-with-dependencies.jar"/>
<pathelement location="${libs.dir}/okhttp-1.1.1.jar"/>
<pathelement location="${libs.dir}/commons-cli-1.2.jar"/>
</path>
<target name="clean">
<delete dir="${build.dir}"/>
</target>
<target name="compile">
<mkdir dir="build/classes"/>
<javac srcdir="${src.dir}" destdir="${build.dir}/classes">
<classpath>
<path refid="external.classpath" />
</classpath>
</javac>
</target>
<target name="jar" depends="compile">
<mkdir dir="${build.dir}/jar"/>
<jar destfile="${build.dir}/jar/JsonToJava.jar" basedir="${build.dir}/classes">
<zipgroupfileset dir="${libs.dir}" includes="*.jar"/>
<manifest>
<attribute name="Main-Class" value="com.jsontojava.Main"/>
</manifest>
</jar>
</target>
</project>