-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
42 lines (37 loc) · 1.52 KB
/
build.xml
File metadata and controls
42 lines (37 loc) · 1.52 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
38
39
40
41
42
<?xml version="1.0" encoding="UTF-8"?>
<project name="JsonToJava">
<property name="src.dir" value="src"/>
<property name="build.dir" value="build"/>
<property name="libs.dir" value="libs"/>
<property name="classes.dir" value="${build.dir}/classes"/>
<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}/log4j-api-2.1.jar"/>
<pathelement location="${libs.dir}/log4j-core-2.1.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" encoding="UTF-8">
<classpath>
<path refid="external.classpath" />
</classpath>
</javac>
<copy todir="${classes.dir}">
<fileset dir="${src.dir}" excludes="**/*.java"/>
</copy>
</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.zc.Main"/>
</manifest>
</jar>
</target>
</project>