diff options
-rw-r--r-- | build.xml | 13 | ||||
-rw-r--r-- | src/java/fr/umlv/java/wallj/Main.java | 5 |
2 files changed, 17 insertions, 1 deletions
@@ -19,14 +19,25 @@ | |||
19 | 19 | ||
20 | <target name="compile"> | 20 | <target name="compile"> |
21 | <mkdir dir="${dir.classes}"/> | 21 | <mkdir dir="${dir.classes}"/> |
22 | <javac srcdir="${dir.src}" destdir="${dir.classes}"/> | 22 | <javac srcdir="${dir.src}" destdir="${dir.classes}" includeantruntime="false"> |
23 | <classpath> | ||
24 | <fileset dir="${dir.lib}" includes="*.jar"/> | ||
25 | </classpath> | ||
26 | </javac> | ||
23 | </target> | 27 | </target> |
24 | 28 | ||
25 | <target name="jar" depends="compile"> | 29 | <target name="jar" depends="compile"> |
30 | <manifestclasspath property="jar.classpath" jarfile="${file.jar}"> | ||
31 | <classpath> | ||
32 | <fileset dir="${dir.lib}" includes="*.jar"/> | ||
33 | </classpath> | ||
34 | </manifestclasspath> | ||
26 | <jar jarfile="${file.jar}" basedir="${dir.classes}"> | 35 | <jar jarfile="${file.jar}" basedir="${dir.classes}"> |
27 | <manifest> | 36 | <manifest> |
28 | <attribute name="Main-Class" value="${class.entry}"/> | 37 | <attribute name="Main-Class" value="${class.entry}"/> |
38 | <attribute name="Class-Path" value="${jar.classpath}"/> | ||
29 | </manifest> | 39 | </manifest> |
40 | <zipfileset prefix="${dir.lib}" dir="${dir.lib}" includes="*.jar"/> | ||
30 | </jar> | 41 | </jar> |
31 | </target> | 42 | </target> |
32 | 43 | ||
diff --git a/src/java/fr/umlv/java/wallj/Main.java b/src/java/fr/umlv/java/wallj/Main.java index 4f94793..bbd800f 100644 --- a/src/java/fr/umlv/java/wallj/Main.java +++ b/src/java/fr/umlv/java/wallj/Main.java | |||
@@ -1,5 +1,9 @@ | |||
1 | package fr.umlv.java.wallj; | 1 | package fr.umlv.java.wallj; |
2 | 2 | ||
3 | import fr.umlv.zen5.Application; | ||
4 | |||
5 | import java.awt.*; | ||
6 | |||
3 | public class Main { | 7 | public class Main { |
4 | 8 | ||
5 | /** | 9 | /** |
@@ -9,6 +13,7 @@ public class Main { | |||
9 | */ | 13 | */ |
10 | public static void main(String[] args) { | 14 | public static void main(String[] args) { |
11 | System.out.println("Hello World!"); | 15 | System.out.println("Hello World!"); |
16 | Application.run(Color.BLACK, (ac)-> {}); | ||
12 | } | 17 | } |
13 | 18 | ||
14 | } | 19 | } |