source: installer/lib/izpack5/patches/java/build.xml

Last change on this file was 099cacd, checked in by zzz <zzz@…>, 13 months ago

Installer: Fix -console install for izpack 5 (ticket #2492)
Switch to izpack 5 for non-windows release installer

  • Property mode set to 100644
File size: 2.6 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<project basedir="." default="all" name="tooljar">
3    <target name="all" depends="clean, build" />
4    <target name="build" depends="builddep, jar" />
5    <target name="builddep">
6        <!-- noop -->
7    </target>
8    <condition property="depend.available">
9        <typefound name="depend" />
10    </condition>
11    <target name="depend" if="depend.available">
12        <depend
13            cache="../../../build"
14            srcdir="./src"
15            destdir="./build/obj" >
16        </depend>
17    </target>
18
19    <!-- only used if not set by a higher build.xml -->
20    <property name="javac.compilerargs" value="" />
21    <property name="javac.classpath" value="" />
22    <property name="javac.version" value="1.7" />
23    <property name="izpack5.version" value="5.1.3" />
24
25    <property name="izpack.lib" value="${izpack5.home}/lib" />
26
27    <target name="compile" depends="depend">
28        <mkdir dir="./build" />
29        <mkdir dir="./build/obj" />
30        <javac srcdir="./src" debug="true" source="${javac.version}" target="${javac.version}" deprecation="on"
31            includeAntRuntime="false"
32            destdir="./build/obj" >
33            <compilerarg line="${javac.compilerargs}" />
34            <classpath>
35                <pathelement location="${javac.classpath}" />
36                <pathelement location="${izpack.lib}/izpack-api-${izpack5.version}.jar" />
37                <pathelement location="${izpack.lib}/izpack-core-${zpack.ver}.jar" />
38                <pathelement location="${izpack.lib}/izpack-installer-${izpack5.version}.jar" />
39                <pathelement location="${izpack.lib}/izpack-panel-${izpack5.version}.jar" />
40                <pathelement location="${izpack.lib}/izpack-util-${izpack5.version}.jar" />
41            </classpath>
42        </javac>
43    </target>
44
45    <target name="jar" depends="compile">
46        <jar destfile="build/izpack-i2p.jar">
47            <fileset dir="./build/obj" includes="**" />
48            <manifest>
49                <attribute name="Built-By" value="${build.built-by}" />
50                <attribute name="Build-Date" value="${build.timestamp}" />
51                <attribute name="Base-Revision" value="${workspace.version}" />
52                <attribute name="X-Compile-Source-JDK" value="${javac.version}" />
53                <attribute name="X-Compile-Target-JDK" value="${javac.version}" />
54            </manifest>
55        </jar>
56    </target>
57
58    <target name="clean">
59        <delete dir="./build" />
60    </target>
61    <target name="cleandep" depends="clean">
62    </target>
63    <target name="distclean" depends="clean">
64    </target>
65</project>
Note: See TracBrowser for help on using the repository browser.