GeezerVison is showing github.com — Merge pull request #1 from npike/master · jonfhancock/JsonToJava@1ad1e39
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +36Lines changed: 36 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +<project name="JsonToJava"> |
| 2 | + <property name="src.dir" value="src"/> |
| 3 | + <property name="build.dir" value="build"/> |
| 4 | + <property name="libs.dir" value="libs"/> |
| 5 | + |
| 6 | + <path id="external.classpath"> |
| 7 | + <pathelement location="${libs.dir}/commons-io-2.4.jar"/> |
| 8 | + <pathelement location="${libs.dir}/commons-lang3-3.1.jar"/> |
| 9 | + <pathelement location="${libs.dir}/modeshape-jpa-ddl-gen-2.1.0.Final-jar-with-dependencies.jar"/> |
| 10 | + <pathelement location="${libs.dir}/okhttp-1.1.1.jar"/> |
| 11 | + </path> |
| 12 | + |
| 13 | + <target name="clean"> |
| 14 | + <delete dir="${build.dir}"/> |
| 15 | + </target> |
| 16 | + |
| 17 | + <target name="compile"> |
| 18 | + <mkdir dir="build/classes"/> |
| 19 | + <javac srcdir="${src.dir}" destdir="${build.dir}/classes"> |
| 20 | + <classpath> |
| 21 | + <path refid="external.classpath" /> |
| 22 | + </classpath> |
| 23 | + </javac> |
| 24 | + </target> |
| 25 | + |
| 26 | + <target name="jar" depends="compile"> |
| 27 | + <mkdir dir="${build.dir}/jar"/> |
| 28 | + <jar destfile="${build.dir}/jar/JsonToJava.jar" basedir="${build.dir}/classes"> |
| 29 | + <zipgroupfileset dir="${libs.dir}" includes="*.jar"/> |
| 30 | + <manifest> |
| 31 | + <attribute name="Main-Class" value="com.jsontojava.Main"/> |
| 32 | + </manifest> |
| 33 | + </jar> |
| 34 | + </target> |
| 35 | + |
| 36 | +</project> |