summarylogtreecommitdiffstats
path: root/build.patch
blob: 21dba0f874f2258df1e8d2f48827e15e0539e0ba (plain)
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
diff -Nur chatty-0.8.4.orig/build.xml chatty-0.8.4/build.xml
--- chatty-0.8.4.orig/build.xml	1970-01-01 01:00:00.000000000 +0100
+++ chatty-0.8.4/build.xml	2016-10-24 22:23:20.312077302 +0200
@@ -0,0 +1,29 @@
+<project name="chatty" default="jar">
+  <target name="clean">
+    <delete dir="bin"/>
+    <delete dir="dist"/>
+    <delete dir="assets/lib/dlls"/>
+  </target>
+
+  <target name="compile" depends="clean">
+     <mkdir dir="bin"/>
+     <javac srcdir="src/chatty" encoding="utf-8" destdir="bin">
+        <classpath>
+           <fileset dir="assets/lib">
+              <include name="**/*.jar" />
+           </fileset>
+        </classpath>
+     </javac>
+     <copy  todir="bin">
+       <fileset dir="src" excludes="**/*.java"/>
+     </copy>
+  </target>
+
+  <target name="jar" depends="compile">
+     <mkdir dir="dist"/>
+     <jar manifest="manifest.mf" destfile="dist/chatty.jar">
+        <fileset dir="bin" />
+        <zipgroupfileset dir="assets/lib" />
+     </jar>
+  </target>
+ </project>