diff --git a/buildInstallers.xml b/buildInstallers.xml index 474004165f456cab114e92474b89cf5c91237802..d5e90264545b878e22ceb58633e0d55926c03f1d 100644 --- a/buildInstallers.xml +++ b/buildInstallers.xml @@ -43,21 +43,28 @@ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --> - <property name="installers.dir" location="installers"/> + <property name="installers.dir" location="installers"/> + + <!-- Prerequisite for creating installer: you must have local izPack v5+ installed --> + <property file="nbproject/private/access.properties"/> + <property name="izpack-dist" value="${IZPACK_DIST}" description="local installation of latest distribution from http://izpack.org"/> + <path id="lib.path"> + <fileset dir="${izpack-dist}/lib" includes="*.jar"/> + </path> + + <target name="update.izpack.jar"> + <echo message="Prerequisite: apply .jar fix in installers/util/izpack-lang-fix in local $IZPACK_DIST .jar at"/> + <echo message=" ${IZPACK_DIST}/lib/izpack-core-5.1.3.jar"/> + <copy file="installers/util/izpack-core-5.1.3.jar" todir="${IZPACK_DIST}/lib/" verbose="true" force="true"/> + </target> - <!-- Prerequisite for creating installer: you must have local izPack v5+ installed --> - <property file="nbproject/private/access.properties"/> - <property name="izpack-dist" value="${IZPACK_DIST}" description="local installation of latest distribution from http://izpack.org"/> - <path id="lib.path"> - <fileset dir="${izpack-dist}/lib" includes="*.jar"/> - </path> - <taskdef name="izpack" + <taskdef name="izpack" classpathref="lib.path" classname="com.izforge.izpack.ant.IzPackTask"/> - <target name="build.installers" + <target name="build.installers" description="Build Xj3D installer jars" - depends="clean.installer.materials"> + depends="clean.installers"> <!-- TODO validate the izPack XML files --> @@ -108,13 +115,17 @@ POSSIBILITY OF SUCH DAMAGE. <chmod file="${installers.dir}/${win.linux.32.64.installer.jar}" perm="ugo+rx"/> <chmod file="${installers.dir}/${macosx.installer.jar}" perm="ugo+rx"/> - + + <length file="${installers.dir}/${win.linux.32.64.installer.jar}" property="length.win.linux.32.64.installer.jar"/> + <length file="${installers.dir}/${macosx.installer.jar}" property="length.macosx.installer.jar"/> + <echo message="Installer file sizes: ${win.linux.32.64.installer.jar}=${length.win.linux.32.64.installer.jar} bytes, ${macosx.installer.jar}=${length.macosx.installer.jar} bytes"/> + <echo/> <echo message="IzPack installer builds complete"/> </target> - <target name="clean.installer.materials" - description="Clean up all materials generated from producing the installers"> + <target name="clean.installers" + description="Clean up all executables generated by producing the installers"> <delete> <fileset dir="installers">