2003-01-20 16:57:23 +01:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<!-- Smack Build Script ========================================== -->
|
|
|
|
<!-- Jive Software ============================================== -->
|
|
|
|
|
|
|
|
<!--
|
|
|
|
$RCSfile$
|
|
|
|
$Revision$
|
|
|
|
$Date$
|
|
|
|
-->
|
|
|
|
|
|
|
|
<project name="Smack Release Script" default="all" basedir="..">
|
|
|
|
|
|
|
|
<!-- PROPERTIES -->
|
|
|
|
<!-- ======================================================================================= -->
|
|
|
|
|
|
|
|
<!-- TARGETS -->
|
|
|
|
<!-- ======================================================================================= -->
|
|
|
|
|
|
|
|
<!-- all -->
|
|
|
|
<!-- ======================================================================================= -->
|
|
|
|
<target name="all">
|
|
|
|
<!-- create release properties -->
|
|
|
|
<property name="release.name" value="smack-${version.major}.${version.minor}-${version.string}" />
|
|
|
|
<property name="release.dir" value="${basedir}/release/${release.name}" />
|
|
|
|
<!-- create release dirs -->
|
|
|
|
<mkdir dir="${release.dir}" />
|
2003-01-24 03:44:25 +01:00
|
|
|
<!-- Copy smack.jar -->
|
|
|
|
<copy todir="${release.dir}">
|
2003-01-24 04:30:37 +01:00
|
|
|
<fileset dir="${jar.dest.dir}" includes="smack.jar" />
|
2003-01-24 03:44:25 +01:00
|
|
|
</copy>
|
2003-01-20 16:57:23 +01:00
|
|
|
<!-- Copy build dir -->
|
|
|
|
<copy todir="${release.dir}/build">
|
|
|
|
<fileset dir="${basedir}/build">
|
|
|
|
<include name="ant*" />
|
|
|
|
<include name="build.xml" />
|
|
|
|
<include name="README.html" />
|
|
|
|
<include name="lib/*.jar" />
|
2003-01-24 04:30:37 +01:00
|
|
|
<include name="merge/*.jar" />
|
2003-01-20 16:57:23 +01:00
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
<!-- Copy Javadocs -->
|
|
|
|
<copy todir="${release.dir}/javadoc">
|
|
|
|
<fileset dir="${basedir}/javadoc" includes="**/*.*" />
|
|
|
|
</copy>
|
|
|
|
<!-- Copy documentation -->
|
|
|
|
<copy todir="${release.dir}/documentation">
|
|
|
|
<fileset dir="${basedir}/documentation" includes="**/*.*" />
|
|
|
|
</copy>
|
|
|
|
<!-- Copy source -->
|
|
|
|
<copy todir="${release.dir}/source">
|
|
|
|
<fileset dir="${basedir}/source" includes="**/*.java" />
|
|
|
|
</copy>
|
|
|
|
<!-- Copy readme.html and changelog.html -->
|
|
|
|
<copy todir="${release.dir}">
|
|
|
|
<fileset dir="${basedir}/resources/releasedocs" includes="*.html" />
|
|
|
|
</copy>
|
|
|
|
<!-- Package -->
|
|
|
|
<zip destfile="${basedir}/release/${release.name}.zip"
|
|
|
|
basedir="${release.dir}/.."
|
|
|
|
includes="${release.name}/**/*.*"
|
|
|
|
/>
|
|
|
|
<tar destfile="${basedir}/release/${release.name}.tar.gz"
|
|
|
|
basedir="${release.dir}/.."
|
|
|
|
includes="${release.name}/**/*.*"
|
|
|
|
compression="gzip"
|
|
|
|
/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|