mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 00:02:06 +01:00
Changed the way releases are made - now a dev and bin release are made. the dev one is for developers and includes full ant scripts and source. the bin is for end users and only includes jars and docs.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2122 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
9ff61ae9a3
commit
2098b0882d
1 changed files with 32 additions and 6 deletions
|
@ -35,21 +35,29 @@
|
||||||
<format property="build.date" pattern="MMM-dd-yyyy" locale="en"/>
|
<format property="build.date" pattern="MMM-dd-yyyy" locale="en"/>
|
||||||
</tstamp>
|
</tstamp>
|
||||||
<property name="release.name" value="smack-${build.date}" />
|
<property name="release.name" value="smack-${build.date}" />
|
||||||
|
<property name="release-dev.name" value="smack-dev-${build.date}" />
|
||||||
</then>
|
</then>
|
||||||
<else>
|
<else>
|
||||||
<property name="release.name" value="smack-${version.name}" />
|
<property name="release.name" value="smack-${version.name}" />
|
||||||
|
<property name="release-dev.name" value="smack-dev-${version.name}" />
|
||||||
</else>
|
</else>
|
||||||
</if>
|
</if>
|
||||||
<property name="release.dir" value="${basedir}/release/${release.name}" />
|
<property name="release.dir" value="${basedir}/release/${release.name}" />
|
||||||
|
<property name="release-dev.dir" value="${basedir}/release/${release-dev.name}" />
|
||||||
<!-- create release dirs -->
|
<!-- create release dirs -->
|
||||||
<mkdir dir="${release.dir}" />
|
<mkdir dir="${release.dir}" />
|
||||||
|
<mkdir dir="${release-dev.dir}" />
|
||||||
<!-- Copy smack.jar -->
|
<!-- Copy smack.jar -->
|
||||||
<copy todir="${release.dir}">
|
<copy todir="${release.dir}">
|
||||||
<fileset dir="${jar.dest.dir}" includes="smack.jar" />
|
<fileset dir="${jar.dest.dir}" includes="smack.jar" />
|
||||||
<fileset dir="${jar.dest.dir}" includes="smackx.jar" />
|
<fileset dir="${jar.dest.dir}" includes="smackx.jar" />
|
||||||
</copy>
|
</copy>
|
||||||
|
<copy todir="${release-dev.dir}">
|
||||||
|
<fileset dir="${jar.dest.dir}" includes="smack.jar" />
|
||||||
|
<fileset dir="${jar.dest.dir}" includes="smackx.jar" />
|
||||||
|
</copy>
|
||||||
<!-- Copy build dir -->
|
<!-- Copy build dir -->
|
||||||
<copy todir="${release.dir}/build">
|
<copy todir="${release-dev.dir}/build">
|
||||||
<fileset dir="${basedir}/build">
|
<fileset dir="${basedir}/build">
|
||||||
<include name="ant*" />
|
<include name="ant*" />
|
||||||
<include name="junit.jar" />
|
<include name="junit.jar" />
|
||||||
|
@ -63,26 +71,35 @@
|
||||||
<copy todir="${release.dir}/javadoc">
|
<copy todir="${release.dir}/javadoc">
|
||||||
<fileset dir="${basedir}/javadoc" includes="**/*.*" />
|
<fileset dir="${basedir}/javadoc" includes="**/*.*" />
|
||||||
</copy>
|
</copy>
|
||||||
|
<copy todir="${release-dev.dir}/javadoc">
|
||||||
|
<fileset dir="${basedir}/javadoc" includes="**/*.*" />
|
||||||
|
</copy>
|
||||||
<!-- Copy documentation -->
|
<!-- Copy documentation -->
|
||||||
<copy todir="${release.dir}/documentation">
|
<copy todir="${release.dir}/documentation">
|
||||||
<fileset dir="${basedir}/documentation" includes="**/*.*" />
|
<fileset dir="${basedir}/documentation" includes="**/*.*" />
|
||||||
</copy>
|
</copy>
|
||||||
|
<copy todir="${release-dev.dir}/documentation">
|
||||||
|
<fileset dir="${basedir}/documentation" includes="**/*.*" />
|
||||||
|
</copy>
|
||||||
<!-- Copy source -->
|
<!-- Copy source -->
|
||||||
<copy todir="${release.dir}/source">
|
<copy todir="${release-dev.dir}/source">
|
||||||
<fileset dir="${basedir}/source" includes="**/*.java" />
|
<fileset dir="${basedir}/source" includes="**/*.java" />
|
||||||
<fileset dir="${basedir}/source" includes="**/*.html" />
|
<fileset dir="${basedir}/source" includes="**/*.html" />
|
||||||
</copy>
|
</copy>
|
||||||
<copy todir="${release.dir}/test">
|
<copy todir="${release-dev.dir}/test">
|
||||||
<fileset dir="${basedir}/test" includes="**/*.java" />
|
<fileset dir="${basedir}/test" includes="**/*.java" />
|
||||||
</copy>
|
</copy>
|
||||||
<!-- Copy resources -->
|
<!-- Copy resources -->
|
||||||
<copy todir="${release.dir}/build/resources">
|
<copy todir="${release-dev.dir}/build/resources">
|
||||||
<fileset dir="${basedir}/build/resources" includes="META-INF/smack.providers" />
|
<fileset dir="${basedir}/build/resources" includes="META-INF/smack.providers" />
|
||||||
</copy>
|
</copy>
|
||||||
<!-- Copy readme.html and changelog.html -->
|
<!-- Copy readme.html and changelog.html -->
|
||||||
<copy todir="${release.dir}">
|
<copy todir="${release.dir}">
|
||||||
<fileset dir="${basedir}/build/resources/releasedocs" includes="*.html" />
|
<fileset dir="${basedir}/build/resources/releasedocs" includes="*.html" />
|
||||||
</copy>
|
</copy>
|
||||||
|
<copy todir="${release-dev.dir}">
|
||||||
|
<fileset dir="${basedir}/build/resources/releasedocs" includes="*.html" />
|
||||||
|
</copy>
|
||||||
<!-- Package -->
|
<!-- Package -->
|
||||||
<zip destfile="${basedir}/release/${release.name}.zip"
|
<zip destfile="${basedir}/release/${release.name}.zip"
|
||||||
basedir="${release.dir}/.."
|
basedir="${release.dir}/.."
|
||||||
|
@ -93,6 +110,15 @@
|
||||||
includes="${release.name}/**/*.*"
|
includes="${release.name}/**/*.*"
|
||||||
compression="gzip"
|
compression="gzip"
|
||||||
/>
|
/>
|
||||||
|
<zip destfile="${basedir}/release/${release-dev.name}.zip"
|
||||||
|
basedir="${release-dev.dir}/.."
|
||||||
|
includes="${release-dev.name}/**/*.*"
|
||||||
|
/>
|
||||||
|
<tar destfile="${basedir}/release/${release-dev.name}.tar.gz"
|
||||||
|
basedir="${release-dev.dir}/.."
|
||||||
|
includes="${release-dev.name}/**/*.*"
|
||||||
|
compression="gzip"
|
||||||
|
/>
|
||||||
|
|
||||||
<echo>
|
<echo>
|
||||||
-----------------------------------------------
|
-----------------------------------------------
|
||||||
|
@ -107,12 +133,12 @@ Release made, testing Ant targets of release...
|
||||||
<!-- test -->
|
<!-- test -->
|
||||||
<!-- ======================================================================================= -->
|
<!-- ======================================================================================= -->
|
||||||
<target name="test">
|
<target name="test">
|
||||||
<property name="testdir" value="${release.dir}/.test" />
|
<property name="testdir" value="${release-dev.dir}/.test" />
|
||||||
|
|
||||||
<!-- copy the build to a temp dir so we can run sanity tests -->
|
<!-- copy the build to a temp dir so we can run sanity tests -->
|
||||||
<mkdir dir="${testdir}" />
|
<mkdir dir="${testdir}" />
|
||||||
<copy todir="${testdir}">
|
<copy todir="${testdir}">
|
||||||
<fileset dir="${release.dir}">
|
<fileset dir="${release-dev.dir}">
|
||||||
<exclude name=".test/**/*.*" />
|
<exclude name=".test/**/*.*" />
|
||||||
</fileset>
|
</fileset>
|
||||||
</copy>
|
</copy>
|
||||||
|
|
Loading…
Reference in a new issue