diff options
author | michelou <michelou@epfl.ch> | 2005-10-16 00:32:43 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2005-10-16 00:32:43 +0000 |
commit | 252505f3bd816e50361d6afb75ff451ce04ab798 (patch) | |
tree | f038853df4d16bde97442c6d3c2d6f4550cd118f | |
parent | ad601a268017b928657e4b7cdd85e17f0300366c (diff) | |
download | scala-252505f3bd816e50361d6afb75ff451ce04ab798.tar.gz scala-252505f3bd816e50361d6afb75ff451ce04ab798.tar.bz2 scala-252505f3bd816e50361d6afb75ff451ce04ab798.zip |
- added 'izpack' task.
-rw-r--r-- | build.support/build-izpack.xml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/build.support/build-izpack.xml b/build.support/build-izpack.xml new file mode 100644 index 0000000000..5fc7ef06f4 --- /dev/null +++ b/build.support/build-izpack.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- $Id$ --> + +<project default="izpack"> + + <!-- A path containing the IzPack library --> + <path id="izpack.classpath"> + <pathelement location="${izpack.jar}"/> + </path> + + <!-- + ##################################################################### + IZPACK + ##################################################################### + --> + + <target name="init.izpack"> + <echo level="verbose">izpack.jar=${izpack.jar}</echo> + <fail message="Missing library ${izpack.jar}; check the 'izpack.jar' property in 'build.${user.name}.properties'."> + <condition><not> + <available classname="com.izforge.izpack.ant.IzPackTask" + classpathref="izpack.classpath"/> + </not></condition> + </fail> + <taskdef name="izpack" + classname="com.izforge.izpack.ant.IzPackTask" + classpathref="izpack.classpath"/> + </target> + + <target name="izpack" depends="izpack.unix"/> + +<!--<target name="izpack.unix" depends="init.izpack, distrib.unix" --> + <target name="izpack.unix" depends="init.izpack" + description="Builds the Scala installer."> + <echo>Generating ${distrib.dir}/nscala-install-${scala.version}.jar</echo> + <copy file="${config.dir}/izpack/install-nsc.xml" + tofile="/tmp/install-nsc-${user.name}.xml" + overwrite="true"> + <filterset> + <filter token="VERSION" value="${scala.version}"/> + </filterset> + </copy> + <izpack input="/tmp/install-nsc-${user.name}.xml" + output="${distrib.dir}/nscala-install-${scala.version}.jar" + installerType="standard" basedir="${basedir}"/> + </target> + +</project> |