mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-23 04:57:58 +01:00
Added some versioning to the jar files to match the versioning on the release build.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/branches/smack_3_4_0@13876 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
fb6dbda30f
commit
3a0b1b6197
4 changed files with 39 additions and 50 deletions
BIN
build/ant-contrib-1.0b2.jar
Normal file
BIN
build/ant-contrib-1.0b2.jar
Normal file
Binary file not shown.
Binary file not shown.
|
@ -17,7 +17,7 @@
|
|||
|
||||
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
|
||||
<classpath>
|
||||
<pathelement location="${basedir}/build/ant-contrib.jar"/>
|
||||
<pathelement location="${basedir}/build/ant-contrib-1.0b2.jar"/>
|
||||
</classpath>
|
||||
</taskdef>
|
||||
|
||||
|
@ -30,25 +30,26 @@
|
|||
<property name="version.revision" value="0" />
|
||||
<property name="version.extra" value="SNAPSHOT" />
|
||||
|
||||
<if>
|
||||
<equals arg1="${version.extra}" arg2=""/>
|
||||
<then>
|
||||
<property name="version"
|
||||
value="${version.major}.${version.minor}.${version.revision}"/>
|
||||
<property name="version.filename"
|
||||
value="${version.major}_${version.minor}_${version.revision}"/>
|
||||
</then>
|
||||
<else>
|
||||
<property name="version"
|
||||
value="${version.major}.${version.minor}.${version.revision}.${version.extra}"/>
|
||||
<property name="version.filename"
|
||||
value="${version.major}.${version.minor}.${version.revision}.${version.extra}"/>
|
||||
</else>
|
||||
</if>
|
||||
<tstamp>
|
||||
<format property="builddate" pattern="MM/dd/yyyy"/>
|
||||
</tstamp>
|
||||
<var name="mutable-version" value="${version.major}.${version.minor}.${version.revision}"/>
|
||||
|
||||
<if>
|
||||
<length string="${version.extra}" when="greater" length="0"/>
|
||||
<then>
|
||||
<var name="mutable-version" value="${mutable-version}.${version.extra}"/>
|
||||
</then>
|
||||
</if>
|
||||
|
||||
<if>
|
||||
<equals arg1="${dailybuild}" arg2="true" />
|
||||
<then>
|
||||
<tstamp>
|
||||
<format property="build.date" pattern="yyyyMMdd" locale="en"/>
|
||||
</tstamp>
|
||||
<var name="mutable-version" value="${mutable-version}-${build.date}" />
|
||||
</then>
|
||||
</if>
|
||||
|
||||
<property name="version" value="${mutable-version}" />
|
||||
<property file="${basedir}/build/build.properties" />
|
||||
<property name="compile.dir" value="${basedir}/target/classes" />
|
||||
<property name="compile.test.dir" value="${basedir}/target/classes-test" />
|
||||
|
@ -190,7 +191,7 @@
|
|||
<copy todir="${compile.dir}/META-INF" file="${basedir}/build/resources/META-INF/jul.properties" />
|
||||
<copy todir="${compile.dir}/META-INF" file="${basedir}/build/resources/META-INF/smack-config.xml" />
|
||||
<copy todir="${compile.dir}/META-INF" file="${basedir}/build/resources/META-INF/core.providers" />
|
||||
<property name="smack.jar.name" value="${jar.dest.dir}/smack.jar" />
|
||||
<property name="smack.jar.name" value="${jar.dest.dir}/smack-${version}.jar" />
|
||||
<jar destfile="${smack.jar.name}"
|
||||
basedir="${compile.dir}"
|
||||
includes="org/jivesoftware/smack/**/*.class, **/smack-config.xml, **/core.providers, **/jul.properties">
|
||||
|
@ -204,7 +205,7 @@
|
|||
</manifest>
|
||||
</jar>
|
||||
|
||||
<property name="smackx.jar.name" value="${jar.dest.dir}/smackx.jar" />
|
||||
<property name="smackx.jar.name" value="${jar.dest.dir}/smackx-${version}.jar" />
|
||||
<copy todir="${compile.dir}/META-INF" file="${basedir}/build/resources/META-INF/extension.providers" />
|
||||
<jar destfile="${smackx.jar.name}"
|
||||
basedir="${compile.dir}"
|
||||
|
@ -222,7 +223,7 @@
|
|||
</manifest>
|
||||
</jar>
|
||||
|
||||
<property name="debug.jar.name" value="${jar.dest.dir}/smackx-debug.jar" />
|
||||
<property name="debug.jar.name" value="${jar.dest.dir}/smackx-debug-${version}.jar" />
|
||||
<copy todir="${compile.dir}/images">
|
||||
<fileset dir="${basedir}/build/resources/images">
|
||||
<include name="*.png"/>
|
||||
|
@ -242,7 +243,7 @@
|
|||
</manifest>
|
||||
</jar>
|
||||
|
||||
<property name="jingle.jar.name" value="${jar.dest.dir}/smackx-jingle.jar" />
|
||||
<property name="jingle.jar.name" value="${jar.dest.dir}/smackx-jingle-${version}.jar" />
|
||||
<jar destfile="${jingle.jar.name}"
|
||||
basedir="${compile.dir}/jingle/extension"
|
||||
includes="org/jivesoftware/smackx/**/*.class">
|
||||
|
@ -258,7 +259,7 @@
|
|||
</manifest>
|
||||
</jar>
|
||||
|
||||
<property name="workgroup.jar.name" value="${jar.dest.dir}/smackx-workgroup.jar" />
|
||||
<property name="workgroup.jar.name" value="${jar.dest.dir}/smackx-workgroup-${version}.jar" />
|
||||
<copy todir="${compile.dir}/workgroup/META-INF" file="${basedir}/workgroup/resources/META-INF/workgroup.providers" />
|
||||
<jar destfile="${workgroup.jar.name}"
|
||||
basedir="${compile.dir}/workgroup"
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<!-- Include Ant Optional Tasks -->
|
||||
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
|
||||
<classpath>
|
||||
<pathelement location="${basedir}/build/ant-contrib.jar"/>
|
||||
<pathelement location="${basedir}/build/ant-contrib-1.0b2.jar"/>
|
||||
</classpath>
|
||||
</taskdef>
|
||||
|
||||
|
@ -28,19 +28,7 @@
|
|||
<!-- ======================================================================================= -->
|
||||
<target name="all">
|
||||
<!-- create release properties -->
|
||||
<if>
|
||||
<equals arg1="${dailybuild}" arg2="true" />
|
||||
<then>
|
||||
<tstamp>
|
||||
<format property="build.date" pattern="yyyyMMdd" locale="en"/>
|
||||
</tstamp>
|
||||
<property name="release.name" value="smack-${version.filename}-${build.date}" />
|
||||
</then>
|
||||
<else>
|
||||
<property name="release.name" value="smack-${version.filename}" />
|
||||
</else>
|
||||
</if>
|
||||
<property name="release.dir" value="${basedir}/target/release/${release.name}" />
|
||||
<property name="release.dir" value="${basedir}/target/release/${version}" />
|
||||
<property name="release.samples.dir" value="${release.dir}/samples" />
|
||||
|
||||
<!-- create release dirs -->
|
||||
|
@ -49,11 +37,11 @@
|
|||
|
||||
<!-- Copy smack.jar -->
|
||||
<copy todir="${release.dir}">
|
||||
<fileset dir="${jar.dest.dir}" includes="smack.jar" />
|
||||
<fileset dir="${jar.dest.dir}" includes="smackx.jar" />
|
||||
<fileset dir="${jar.dest.dir}" includes="smackx-debug.jar" />
|
||||
<fileset dir="${jar.dest.dir}" includes="smackx-jingle.jar" />
|
||||
<fileset dir="${jar.dest.dir}" includes="smackx-workgroup.jar" />
|
||||
<fileset dir="${jar.dest.dir}" includes="smack-${version}.jar" />
|
||||
<fileset dir="${jar.dest.dir}" includes="smackx-${version}.jar" />
|
||||
<fileset dir="${jar.dest.dir}" includes="smackx-debug-${version}.jar" />
|
||||
<fileset dir="${jar.dest.dir}" includes="smackx-jingle-${version}.jar" />
|
||||
<fileset dir="${jar.dest.dir}" includes="smackx-workgroup-${version}.jar" />
|
||||
</copy>
|
||||
<copy todir="${release.samples.dir}">
|
||||
<fileset dir="${basedir}/build/resources/META-INF" includes="sample.providers" />
|
||||
|
@ -76,19 +64,19 @@
|
|||
<copy todir="${release.dir}">
|
||||
<fileset dir="${basedir}/build/resources/releasedocs" includes="*.html" />
|
||||
<filterset>
|
||||
<filter token="builddate" value="${builddate}"/>
|
||||
<filter token="builddate" value="${build.date}"/>
|
||||
<filter token="version" value="${version}"/>
|
||||
</filterset>
|
||||
</copy>
|
||||
|
||||
<!-- Package -->
|
||||
<zip destfile="${basedir}/target/release/${release.name}.zip"
|
||||
basedir="${release.dir}/.."
|
||||
includes="${release.name}/**/*.*"
|
||||
<zip destfile="${basedir}/target/release/smack-${version}.zip"
|
||||
basedir="${release.dir}"
|
||||
includes="**/*.*"
|
||||
/>
|
||||
<tar destfile="${basedir}/target/release/${release.name}.tar.gz"
|
||||
basedir="${release.dir}/.."
|
||||
includes="${release.name}/**/*.*"
|
||||
<tar destfile="${basedir}/target/release/smack-${version}.tar.gz"
|
||||
basedir="${release.dir}"
|
||||
includes="**/*.*"
|
||||
compression="gzip"
|
||||
/>
|
||||
<echo>
|
||||
|
|
Loading…
Reference in a new issue