2001-02-09 16:31:23 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
2002-06-18 11:01:29 +00:00
|
|
|
<project name="Helma" default="usage" basedir=".">
|
2001-02-09 16:31:23 +00:00
|
|
|
|
|
|
|
<!-- =================================================================== -->
|
|
|
|
<!-- Initializes some variables -->
|
|
|
|
<!-- =================================================================== -->
|
2001-02-09 19:01:03 +00:00
|
|
|
<target name="init">
|
2001-06-25 13:31:51 +00:00
|
|
|
<property name="Name" value="helma"/>
|
2002-06-18 11:01:29 +00:00
|
|
|
<property name="year" value="1998-${year}"/>
|
2004-06-07 12:00:13 +00:00
|
|
|
<property name="version" value="1.4.1-rc1"/>
|
2001-06-25 13:31:51 +00:00
|
|
|
<property name="project" value="helma"/>
|
2001-02-09 16:31:23 +00:00
|
|
|
<property name="build.compiler" value="classic"/>
|
2002-04-25 14:08:48 +00:00
|
|
|
|
2002-06-18 11:01:29 +00:00
|
|
|
<property name="cvs.root.apps" value=":pserver:anonymous@adele.helma.at:/opt/cvs/apps"/>
|
|
|
|
<property name="cvs.root.helma" value=":pserver:anonymous@adele.helma.at:/opt/cvs/helma"/>
|
2003-08-20 12:08:10 +00:00
|
|
|
<property name="cvs.apps.tag" value="HEAD"/>
|
2002-04-25 14:08:48 +00:00
|
|
|
|
2002-06-18 11:01:29 +00:00
|
|
|
<property name="home.dir" value=".."/>
|
|
|
|
<property name="build.dir" value="${home.dir}/build"/>
|
|
|
|
<property name="build.src" value="${home.dir}/src"/>
|
|
|
|
<property name="build.lib" value="${home.dir}/lib"/>
|
|
|
|
<property name="build.classes" value="${home.dir}/classes"/>
|
|
|
|
<property name="build.docs" value="${home.dir}/docs"/>
|
|
|
|
<property name="build.javadocs" value="${home.dir}/docs/api"/>
|
2002-04-25 14:08:48 +00:00
|
|
|
|
|
|
|
<property name="build.work" value="${home.dir}/work"/>
|
2002-06-18 11:01:29 +00:00
|
|
|
<property name="build.dist" value="${home.dir}/dist"/>
|
|
|
|
|
|
|
|
<property name="jar.name" value="${project}"/>
|
|
|
|
<property name="package.name" value="${project}-${version}"/>
|
2004-01-13 15:52:43 +00:00
|
|
|
<property name="antclick.name" value="antclick-1.1pre2"/>
|
2002-06-18 11:01:29 +00:00
|
|
|
|
2002-08-01 16:04:04 +00:00
|
|
|
<property name="debug" value="on"/>
|
2001-02-09 16:31:23 +00:00
|
|
|
<property name="optimize" value="on"/>
|
|
|
|
<property name="deprecation" value="off"/>
|
2001-02-09 19:01:03 +00:00
|
|
|
|
2002-06-18 11:01:29 +00:00
|
|
|
<path id="build.class.path">
|
|
|
|
<fileset dir="${home.dir}/lib">
|
|
|
|
<exclude name="**/helma*.jar" />
|
|
|
|
<include name="**/*.jar" />
|
|
|
|
</fileset>
|
|
|
|
</path>
|
|
|
|
|
2001-02-09 19:01:03 +00:00
|
|
|
<tstamp/>
|
|
|
|
|
2001-02-09 16:31:23 +00:00
|
|
|
<filter token="year" value="${year}"/>
|
|
|
|
<filter token="version" value="${version}"/>
|
|
|
|
<filter token="date" value="${TODAY}"/>
|
|
|
|
</target>
|
|
|
|
|
2002-06-18 14:24:06 +00:00
|
|
|
|
2001-02-09 16:31:23 +00:00
|
|
|
<!-- =================================================================== -->
|
2002-06-18 11:01:29 +00:00
|
|
|
<!-- Help on usage -->
|
|
|
|
<!-- =================================================================== -->
|
2002-06-18 14:24:06 +00:00
|
|
|
<target name="help" depends="usage" />
|
2002-06-18 11:01:29 +00:00
|
|
|
<target name="usage">
|
|
|
|
<echo message=""/>
|
|
|
|
<echo message=""/>
|
|
|
|
<echo message="Helma build instructions"/>
|
|
|
|
<echo message="-------------------------------------------------------------"/>
|
|
|
|
<echo message=""/>
|
|
|
|
<echo message=" available targets are:"/>
|
|
|
|
<echo message=""/>
|
|
|
|
<echo message=" compile --> compiles the source code to ./classes"/>
|
|
|
|
<echo message=" jar --> generates the ./lib/helma-YYYYMMDD.jar file"/>
|
|
|
|
<echo message=" javadocs --> generates the API docs"/>
|
|
|
|
<echo message=" docs --> tries to retrieve the HTML documentation "/>
|
2002-06-18 14:24:06 +00:00
|
|
|
<echo message=" (may need proxy settings in startscript)"/>
|
2004-02-11 16:58:35 +00:00
|
|
|
<echo message=" package --> generates the distribution (zip and tar.gz)"/>
|
|
|
|
<echo message=" antclick --> generates the distribution (zip and tar.gz)"/>
|
2002-06-18 11:01:29 +00:00
|
|
|
<echo message=" with antville preconfigured"/>
|
|
|
|
<echo message=" app [name] --> gets an application from the cvs and zips it"/>
|
|
|
|
<echo message=""/>
|
|
|
|
<echo message=" usage --> provides help on using the build tool (default)"/>
|
|
|
|
<echo message=""/>
|
|
|
|
<echo message=" See comments inside the build.xml file for more details."/>
|
|
|
|
<echo message="-------------------------------------------------------------"/>
|
|
|
|
<echo message=""/>
|
|
|
|
<echo message=""/>
|
2002-04-26 15:09:36 +00:00
|
|
|
</target>
|
|
|
|
|
2001-02-09 16:31:23 +00:00
|
|
|
|
|
|
|
<!-- =================================================================== -->
|
|
|
|
<!-- Compiles the source directory -->
|
|
|
|
<!-- =================================================================== -->
|
2001-10-22 16:43:40 +00:00
|
|
|
<target name="compile" depends="init">
|
2002-04-25 14:08:48 +00:00
|
|
|
<mkdir dir="${build.classes}"/>
|
2004-06-17 11:35:52 +00:00
|
|
|
<!-- copy the imageio file -->
|
|
|
|
<copy file="${build.src}/META-INF/services/javax.imageio.spi.ImageWriterSpi"
|
|
|
|
tofile="${build.classes}/META-INF/services/javax.imageio.spi.ImageWriterSpi"/>
|
2001-02-09 16:31:23 +00:00
|
|
|
<javac srcdir="${build.src}"
|
2002-04-25 14:08:48 +00:00
|
|
|
destdir="${build.classes}"
|
2001-02-09 16:31:23 +00:00
|
|
|
debug="${debug}"
|
|
|
|
deprecation="${deprecation}"
|
|
|
|
optimize="${optimize}">
|
2002-06-18 11:01:29 +00:00
|
|
|
<classpath refid="build.class.path" />
|
2001-02-09 16:31:23 +00:00
|
|
|
</javac>
|
2002-09-26 16:43:46 +00:00
|
|
|
<rmic classname="helma.framework.core.RemoteApplication" base="${build.classes}"/>
|
2001-02-09 16:31:23 +00:00
|
|
|
</target>
|
|
|
|
|
2002-06-18 11:01:29 +00:00
|
|
|
|
2001-02-09 16:31:23 +00:00
|
|
|
<!-- =================================================================== -->
|
2002-06-18 11:01:29 +00:00
|
|
|
<!-- Creates a helma.jar file (snapshot) in the lib-directory -->
|
2001-02-09 16:31:23 +00:00
|
|
|
<!-- =================================================================== -->
|
|
|
|
<target name="jar" depends="compile">
|
2002-06-18 11:01:29 +00:00
|
|
|
<jar jarfile="${build.lib}/${jar.name}-${DSTAMP}.jar"
|
2002-04-25 14:08:48 +00:00
|
|
|
basedir="${build.classes}"
|
2002-11-18 16:09:04 +00:00
|
|
|
excludes="**/package.html,**/main/launcher/**"/>
|
|
|
|
<jar jarfile="${home.dir}/launcher.jar"
|
|
|
|
basedir="${build.classes}"
|
|
|
|
includes="**/main/launcher/**"
|
|
|
|
manifest="${build.src}/helma/main/launcher/manifest.txt"/>
|
2001-02-09 16:31:23 +00:00
|
|
|
</target>
|
|
|
|
|
2002-06-18 11:01:29 +00:00
|
|
|
|
2001-02-09 16:31:23 +00:00
|
|
|
<!-- =================================================================== -->
|
|
|
|
<!-- Creates the API documentation -->
|
|
|
|
<!-- =================================================================== -->
|
2001-10-22 16:43:40 +00:00
|
|
|
<target name="javadocs" depends="init">
|
2002-04-25 14:08:48 +00:00
|
|
|
<mkdir dir="${build.javadocs}"/>
|
2001-02-09 16:31:23 +00:00
|
|
|
<javadoc packagenames="helma.*"
|
|
|
|
sourcepath="${build.src}"
|
2002-04-25 14:08:48 +00:00
|
|
|
destdir="${build.javadocs}"
|
2001-02-09 16:31:23 +00:00
|
|
|
author="false"
|
|
|
|
private="false"
|
|
|
|
version="false"
|
|
|
|
windowtitle="${Name} ${version} API"
|
|
|
|
doctitle="${Name} ${version} API"
|
2002-06-18 11:01:29 +00:00
|
|
|
bottom="Copyright © ${year} Helma.org. All Rights Reserved."
|
|
|
|
classpathref="build.class.path"
|
|
|
|
/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- =================================================================== -->
|
|
|
|
<!-- Get the documentation (currently can fail due to request time-out -->
|
|
|
|
<!-- or missing support for proxies) -->
|
|
|
|
<!-- =================================================================== -->
|
|
|
|
<target name="docs" depends="init">
|
|
|
|
<get src="http://www.helma.org/docs/reference/print"
|
|
|
|
dest="${build.docs}/reference.html"
|
|
|
|
ignoreerrors="true"
|
|
|
|
/>
|
2001-02-09 16:31:23 +00:00
|
|
|
</target>
|
|
|
|
|
2002-06-18 11:01:29 +00:00
|
|
|
|
2001-02-09 16:31:23 +00:00
|
|
|
<!-- =================================================================== -->
|
2002-06-18 11:01:29 +00:00
|
|
|
<!-- Creates the full helma distribution -->
|
2001-02-09 16:31:23 +00:00
|
|
|
<!-- =================================================================== -->
|
2002-06-18 11:01:29 +00:00
|
|
|
<target name="package" depends="init">
|
|
|
|
<mkdir dir="${build.work}"/>
|
|
|
|
|
|
|
|
<!-- create the main part of helma -->
|
|
|
|
<antcall target="package-raw">
|
2002-06-25 14:35:03 +00:00
|
|
|
<param name="distribution" value="main" />
|
2002-06-18 11:01:29 +00:00
|
|
|
</antcall>
|
|
|
|
|
2002-06-25 14:35:03 +00:00
|
|
|
<chmod perm="755">
|
|
|
|
<fileset dir="${build.work}">
|
|
|
|
<include name="hop.sh"/>
|
|
|
|
</fileset>
|
|
|
|
</chmod>
|
|
|
|
|
2002-06-18 11:01:29 +00:00
|
|
|
<!-- checkout the demo apps (and zip manage-app) -->
|
|
|
|
<antcall target="package-apps" />
|
|
|
|
|
|
|
|
<!-- zip up the whole thing -->
|
2002-11-26 17:35:17 +00:00
|
|
|
<antcall target="package-zip">
|
2002-06-18 11:01:29 +00:00
|
|
|
<param name="filename" value="${package.name}"/>
|
|
|
|
</antcall>
|
|
|
|
<antcall target="package-tgz">
|
|
|
|
<param name="filename" value="${package.name}"/>
|
|
|
|
</antcall>
|
2002-12-03 12:50:28 +00:00
|
|
|
|
|
|
|
<!-- make the src distributions -->
|
|
|
|
<antcall target="package-src-zip">
|
|
|
|
<param name="filename" value="${package.name}"/>
|
|
|
|
</antcall>
|
|
|
|
<antcall target="package-src-tgz">
|
|
|
|
<param name="filename" value="${package.name}"/>
|
|
|
|
</antcall>
|
2002-06-18 11:01:29 +00:00
|
|
|
|
|
|
|
<!-- clean up -->
|
|
|
|
<delete dir="${build.work}"/>
|
2002-04-25 14:08:48 +00:00
|
|
|
</target>
|
2001-10-22 16:43:40 +00:00
|
|
|
|
2002-06-18 11:01:29 +00:00
|
|
|
|
2002-04-25 14:08:48 +00:00
|
|
|
<!-- =================================================================== -->
|
2002-06-18 11:01:29 +00:00
|
|
|
<!-- Compile Helma and prepare the skeleton in a temporary directory. -->
|
|
|
|
<!-- Used by package and antclick. -->
|
2002-04-25 14:08:48 +00:00
|
|
|
<!-- =================================================================== -->
|
2002-06-18 11:01:29 +00:00
|
|
|
<target name="package-raw" depends="init, jar">
|
2001-10-22 16:43:40 +00:00
|
|
|
|
2002-06-18 11:01:29 +00:00
|
|
|
<!-- copy the framework (apps.props, server.props, hop/db, hop/static) -->
|
|
|
|
<copy todir="${build.work}">
|
2002-06-25 14:35:03 +00:00
|
|
|
<fileset dir="${build.dir}/${distribution}" excludes="**/CVS**"/>
|
2001-11-08 14:44:41 +00:00
|
|
|
</copy>
|
|
|
|
|
2002-11-26 17:35:17 +00:00
|
|
|
<!-- copy the launcher jar file -->
|
|
|
|
<copy file="${home.dir}/launcher.jar" todir="${build.work}/"/>
|
|
|
|
|
2002-12-05 14:15:26 +00:00
|
|
|
<!-- copy README.txt -->
|
|
|
|
<copy file="${home.dir}/README.txt" todir="${build.work}/"/>
|
|
|
|
|
2002-06-18 11:01:29 +00:00
|
|
|
<!-- copy the whole docs-directory -->
|
2002-12-05 14:15:26 +00:00
|
|
|
<!-- copy todir="${build.work}/docs">
|
2002-06-18 11:01:29 +00:00
|
|
|
<fileset dir="${build.docs}"/>
|
2002-12-05 14:15:26 +00:00
|
|
|
</copy -->
|
2001-10-22 16:43:40 +00:00
|
|
|
|
2002-06-18 11:01:29 +00:00
|
|
|
<!-- copy all libraries except helma-YYYYMMDD.jar -->
|
|
|
|
<copy todir="${build.work}/lib">
|
|
|
|
<fileset dir="${home.dir}/lib">
|
2003-06-10 13:37:51 +00:00
|
|
|
<exclude name="**/helma*.jar" />
|
|
|
|
<include name="**/*.jar" />
|
2002-06-18 11:01:29 +00:00
|
|
|
</fileset>
|
2001-06-25 13:31:51 +00:00
|
|
|
</copy>
|
2001-10-22 16:43:40 +00:00
|
|
|
|
2002-07-24 18:46:38 +00:00
|
|
|
<!-- copy the whole licenses-directory -->
|
|
|
|
<copy todir="${build.work}/licenses">
|
|
|
|
<fileset dir="${home.dir}/licenses" excludes="**/CVS**"/>
|
|
|
|
</copy>
|
|
|
|
|
2003-12-01 15:26:08 +00:00
|
|
|
<!-- copy the scripts directory -->
|
|
|
|
<copy todir="${build.work}/scripts">
|
|
|
|
<fileset dir="${home.dir}/scripts" excludes="**/CVS**"/>
|
|
|
|
</copy>
|
|
|
|
|
2002-06-18 11:01:29 +00:00
|
|
|
<!-- rename the current jar-file -->
|
|
|
|
<copy file="${build.lib}/${jar.name}-${DSTAMP}.jar" tofile="${build.work}/lib/helma.jar"/>
|
2002-04-25 14:08:48 +00:00
|
|
|
|
2002-06-18 11:01:29 +00:00
|
|
|
<!-- zip the sourcecode -->
|
2002-12-03 12:50:28 +00:00
|
|
|
<!-- mkdir dir="${build.work}/src"/>
|
2002-06-18 11:01:29 +00:00
|
|
|
<tar tarfile="${build.work}/src/helma-src.tar" basedir="${build.src}/">
|
|
|
|
<tarfileset dir="${build.src}">
|
|
|
|
<include name="${build.src}/**"/>
|
|
|
|
</tarfileset>
|
|
|
|
</tar>
|
2004-02-11 16:58:35 +00:00
|
|
|
<gzip zipfile="${build.work}/src/helma-src.tar.gz" src="${build.work}/src/helma-src.tar"/>
|
2002-12-03 12:50:28 +00:00
|
|
|
<delete file="${build.work}/src/helma-src.tar"/ -->
|
2002-06-18 11:01:29 +00:00
|
|
|
</target>
|
2001-10-22 16:43:40 +00:00
|
|
|
|
|
|
|
|
2002-05-15 15:51:28 +00:00
|
|
|
<!-- =================================================================== -->
|
2002-06-18 11:01:29 +00:00
|
|
|
<!-- Checkout demo apps, put them in work directory and zip manage app -->
|
2002-05-15 15:51:28 +00:00
|
|
|
<!-- =================================================================== -->
|
2002-06-18 11:01:29 +00:00
|
|
|
<target name="package-apps" depends="init">
|
|
|
|
|
2002-12-03 10:33:43 +00:00
|
|
|
<mkdir dir="${build.work}/apps" />
|
2002-06-18 11:01:29 +00:00
|
|
|
|
|
|
|
<!-- get demo apps -->
|
2003-08-20 12:08:10 +00:00
|
|
|
<cvs cvsRoot="${cvs.root.apps}" command="export" tag="${cvs.apps.tag}" package="base" dest="${build.work}/apps" />
|
|
|
|
<cvs cvsRoot="${cvs.root.apps}" command="export" tag="${cvs.apps.tag}" package="bloggerapi" dest="${build.work}/apps" />
|
|
|
|
<cvs cvsRoot="${cvs.root.apps}" command="export" tag="${cvs.apps.tag}" package="himp" dest="${build.work}/apps" />
|
|
|
|
<cvs cvsRoot="${cvs.root.apps}" command="export" tag="${cvs.apps.tag}" package="gong" dest="${build.work}/apps" />
|
|
|
|
<cvs cvsRoot="${cvs.root.apps}" command="export" tag="${cvs.apps.tag}" package="lillebror" dest="${build.work}/apps" />
|
2002-06-18 11:01:29 +00:00
|
|
|
|
|
|
|
<antcall target="package-manage" />
|
|
|
|
|
2002-05-15 15:51:28 +00:00
|
|
|
</target>
|
|
|
|
|
2002-06-18 11:01:29 +00:00
|
|
|
|
2001-02-09 16:31:23 +00:00
|
|
|
<!-- =================================================================== -->
|
2002-06-18 11:01:29 +00:00
|
|
|
<!-- Checkout and zip manage application -->
|
2001-02-09 16:31:23 +00:00
|
|
|
<!-- =================================================================== -->
|
2002-06-28 16:28:56 +00:00
|
|
|
<target name="package-manage" depends="init">
|
2003-08-20 12:08:10 +00:00
|
|
|
<cvs cvsRoot="${cvs.root.apps}" command="export" tag="${cvs.apps.tag}" package="manage" dest="${build.work}" />
|
2002-06-18 11:01:29 +00:00
|
|
|
<mkdir dir="${build.work}/apps/manage"/>
|
2002-06-28 16:28:56 +00:00
|
|
|
<zip zipfile="${build.work}/apps/manage/manage.zip" basedir="${build.work}/manage/" includes="**" excludes="**/properties,readme/**" />
|
|
|
|
<copy todir="${build.work}/apps/manage">
|
|
|
|
<fileset dir="${build.work}/manage" includes="app.properties,class.properties,readme.txt"/>
|
|
|
|
</copy>
|
|
|
|
<delete dir="${build.work}/manage" />
|
|
|
|
</target>
|
2002-06-18 11:01:29 +00:00
|
|
|
|
2001-02-09 16:31:23 +00:00
|
|
|
|
|
|
|
<!-- =================================================================== -->
|
2002-06-18 11:01:29 +00:00
|
|
|
<!-- Packages the work directory with TAR-GZIP -->
|
|
|
|
<!-- needs parameter ${filename} for final dist-file -->
|
2001-02-09 16:31:23 +00:00
|
|
|
<!-- =================================================================== -->
|
2002-06-18 11:01:29 +00:00
|
|
|
<target name="package-tgz" depends="init">
|
|
|
|
<mkdir dir="${build.dist}" />
|
|
|
|
<fixcrlf srcdir="${build.work}" eol="lf" eof="remove" includes="**/*.txt, **/*.properties, **/*.hac, **/*.js, **/*.skin" />
|
2002-06-28 16:28:56 +00:00
|
|
|
<tar tarfile="${build.dist}/${filename}.tar" basedir="${build.work}" excludes="**">
|
|
|
|
<tarfileset prefix="${filename}" dir="${build.work}" mode="755">
|
|
|
|
<include name="hop.sh"/>
|
2002-06-18 11:01:29 +00:00
|
|
|
</tarfileset>
|
2002-06-28 16:28:56 +00:00
|
|
|
<tarfileset prefix="${filename}" dir="${build.work}">
|
|
|
|
<include name="**"/>
|
|
|
|
<exclude name="hop.sh"/>
|
2002-06-18 11:01:29 +00:00
|
|
|
</tarfileset>
|
2001-06-25 13:31:51 +00:00
|
|
|
</tar>
|
2004-02-11 16:58:35 +00:00
|
|
|
<gzip zipfile="${build.dist}/${filename}.tar.gz" src="${build.dist}/${filename}.tar"/>
|
2002-06-18 11:01:29 +00:00
|
|
|
<delete file="${build.dist}/${filename}.tar"/>
|
2001-02-09 16:31:23 +00:00
|
|
|
</target>
|
|
|
|
|
2001-02-09 19:01:03 +00:00
|
|
|
|
2002-04-25 14:08:48 +00:00
|
|
|
<!-- =================================================================== -->
|
2002-06-18 11:01:29 +00:00
|
|
|
<!-- Packages the work directory with ZIP -->
|
|
|
|
<!-- needs parameter ${filename} for final dist-file -->
|
2002-04-25 14:08:48 +00:00
|
|
|
<!-- =================================================================== -->
|
2002-06-18 11:01:29 +00:00
|
|
|
<target name="package-zip" depends="init">
|
2002-12-03 12:50:28 +00:00
|
|
|
<mkdir dir="${build.dist}" />
|
2002-06-18 11:01:29 +00:00
|
|
|
<fixcrlf srcdir="${build.work}" eol="crlf" includes="**/*.txt, **/*.properties, **/*.hac, **/*.js, **/*.skin, **/*.xml" />
|
2002-06-28 16:28:56 +00:00
|
|
|
<zip zipfile="${build.dist}/${filename}.zip">
|
|
|
|
<zipfileset dir="${build.work}" prefix="${filename}" includes="**" />
|
|
|
|
</zip>
|
2002-04-25 14:08:48 +00:00
|
|
|
</target>
|
2001-02-09 19:01:03 +00:00
|
|
|
|
2002-06-18 11:01:29 +00:00
|
|
|
|
2002-12-03 12:50:28 +00:00
|
|
|
<!-- =================================================================== -->
|
|
|
|
<!-- Packages Helma src and build directories with TAR-GZIP -->
|
|
|
|
<!-- needs parameter ${filename} for final dist-file -->
|
|
|
|
<!-- =================================================================== -->
|
|
|
|
<target name="package-src-tgz" depends="init">
|
|
|
|
<mkdir dir="${build.dist}" />
|
|
|
|
<tar tarfile="${build.dist}/${filename}-src.tar">
|
|
|
|
<tarfileset prefix="${filename}" dir="${home.dir}"
|
|
|
|
includes="src/**,build/**,license.txt,licenses/**"/>
|
|
|
|
</tar>
|
2004-02-11 16:58:35 +00:00
|
|
|
<gzip zipfile="${build.dist}/${filename}-src.tar.gz" src="${build.dist}/${filename}-src.tar"/>
|
2002-12-03 12:50:28 +00:00
|
|
|
<delete file="${build.dist}/${filename}-src.tar"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- =================================================================== -->
|
|
|
|
<!-- Packages Helma src and build directories with ZIP -->
|
|
|
|
<!-- needs parameter ${filename} for final dist-file -->
|
|
|
|
<!-- =================================================================== -->
|
|
|
|
<target name="package-src-zip" depends="init">
|
|
|
|
<mkdir dir="${build.dist}" />
|
|
|
|
<zip zipfile="${build.dist}/${filename}-src.zip">
|
|
|
|
<zipfileset dir="${home.dir}" prefix="${filename}"
|
|
|
|
includes="src/**,build/**,license.txt,licenses/**" />
|
|
|
|
</zip>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
2002-05-15 15:51:28 +00:00
|
|
|
<!-- =================================================================== -->
|
|
|
|
<!-- Make Antclick package (helma plus Antville and manage apps) -->
|
|
|
|
<!-- =================================================================== -->
|
2002-06-18 11:01:29 +00:00
|
|
|
<target name="antclick" depends="init">
|
|
|
|
<mkdir dir="${build.work}"/>
|
2002-12-03 10:33:43 +00:00
|
|
|
|
2002-06-18 11:01:29 +00:00
|
|
|
<!-- create the main part of helma -->
|
|
|
|
<antcall target="package-raw">
|
2002-06-25 14:35:03 +00:00
|
|
|
<param name="distribution" value="antclick" />
|
2002-06-18 11:01:29 +00:00
|
|
|
</antcall>
|
|
|
|
|
2002-06-28 16:28:56 +00:00
|
|
|
<!-- get antville -->
|
|
|
|
<mkdir dir="${build.work}/apps" />
|
|
|
|
<!-- to retrieve special versions of antville insert additional attributes:
|
|
|
|
tag="TAGNAME", date="1972-09-24" or date="1972-09-24 20:05" -->
|
|
|
|
<cvs cvsRoot="${cvs.root.apps}" command="export" tag="HEAD" package="antville" dest="${build.work}/apps" />
|
|
|
|
|
|
|
|
<!-- unzip images -->
|
2004-01-13 15:52:43 +00:00
|
|
|
<unzip src="${build.work}/apps/antville/images.zip" dest="${build.work}/static">
|
2003-06-10 13:20:45 +00:00
|
|
|
<patternset>
|
|
|
|
<include name="**"/>
|
|
|
|
</patternset>
|
|
|
|
</unzip>
|
2002-06-28 16:28:56 +00:00
|
|
|
|
2003-06-10 13:20:45 +00:00
|
|
|
<!-- delete antville's mysql-scripts, image-zip etc -->
|
|
|
|
<delete>
|
|
|
|
<fileset dir="${build.work}/apps/antville" includes="images.zip,*.sql" />
|
|
|
|
</delete>
|
2002-06-28 16:28:56 +00:00
|
|
|
|
|
|
|
<!-- get and zip manage-app -->
|
2002-06-18 11:01:29 +00:00
|
|
|
<antcall target="package-manage" />
|
|
|
|
|
2002-06-28 16:28:56 +00:00
|
|
|
<!-- zip up the whole thing -->
|
|
|
|
<antcall target="package-zip">
|
|
|
|
<param name="filename" value="${antclick.name}"/>
|
|
|
|
</antcall>
|
|
|
|
<antcall target="package-tgz">
|
2002-06-18 11:01:29 +00:00
|
|
|
<param name="filename" value="${antclick.name}"/>
|
|
|
|
</antcall>
|
|
|
|
|
|
|
|
<!-- clean up -->
|
|
|
|
<delete dir="${build.work}"/>
|
2002-05-15 15:51:28 +00:00
|
|
|
</target>
|
|
|
|
|
2002-05-10 16:01:14 +00:00
|
|
|
|
2001-06-25 13:31:51 +00:00
|
|
|
<!-- =================================================================== -->
|
2002-06-18 11:01:29 +00:00
|
|
|
<!-- Gets an application from the cvs and zips/targzs it -->
|
2002-05-15 15:51:28 +00:00
|
|
|
<!-- =================================================================== -->
|
2002-12-03 10:33:43 +00:00
|
|
|
<target name="app" depends="init">
|
2002-06-18 11:01:29 +00:00
|
|
|
<mkdir dir="${build.dist}" />
|
|
|
|
<mkdir dir="${build.work}" />
|
2002-05-15 15:51:28 +00:00
|
|
|
|
2002-06-28 16:28:56 +00:00
|
|
|
<!-- to retrieve special versions of an application insert
|
|
|
|
additional attributes: tag="TAGNAME" or date="1972-09-24 20:05" -->
|
2002-12-03 10:33:43 +00:00
|
|
|
<cvs cvsRoot="${cvs.root.apps}" command="export" tag="HEAD" package="${application}" dest="${build.work}" />
|
2001-10-22 16:43:40 +00:00
|
|
|
|
2002-06-18 11:01:29 +00:00
|
|
|
<fixcrlf srcdir="${build.work}" eol="crlf" eof="add" includes="**/*.txt, **/*.properties, **/*.hac, **/*.js, **/*.skin, **/*.xml" />
|
|
|
|
<zip zipfile="${build.dist}/${application}-${DSTAMP}.zip" basedir="${build.work}" includes="**"/>
|
|
|
|
|
|
|
|
<fixcrlf srcdir="${build.work}" eol="lf" eof="remove" includes="**/*.txt, **/*.properties, **/*.hac, **/*.js, **/*.skin" />
|
|
|
|
<tar tarfile="${build.dist}/${application}-${DSTAMP}.tar" basedir="${build.work}">
|
2002-12-03 10:33:43 +00:00
|
|
|
<tarfileset dir="${build.work}">
|
|
|
|
<include name="${build.work}/**"/>
|
|
|
|
</tarfileset>
|
2002-06-18 11:01:29 +00:00
|
|
|
</tar>
|
2004-02-11 16:58:35 +00:00
|
|
|
<gzip zipfile="${build.dist}/${application}-${DSTAMP}.tar.gz" src="${build.dist}/${application}-${DSTAMP}.tar" />
|
2002-06-18 11:01:29 +00:00
|
|
|
|
|
|
|
<delete file="${build.dist}/${application}-${DSTAMP}.tar" />
|
|
|
|
<delete dir="${build.work}" />
|
2002-12-03 10:33:43 +00:00
|
|
|
</target>
|
2002-05-15 15:51:28 +00:00
|
|
|
|
2002-03-21 17:33:14 +00:00
|
|
|
</project>
|