diff options
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 13 |
1 files changed, 12 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 | ||