mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 14:02:06 +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">
|
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
|
||||||
<classpath>
|
<classpath>
|
||||||
<pathelement location="${basedir}/build/ant-contrib.jar"/>
|
<pathelement location="${basedir}/build/ant-contrib-1.0b2.jar"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
</taskdef>
|
</taskdef>
|
||||||
|
|
||||||
|
@ -30,25 +30,26 @@
|
||||||
<property name="version.revision" value="0" />
|
<property name="version.revision" value="0" />
|
||||||
<property name="version.extra" value="SNAPSHOT" />
|
<property name="version.extra" value="SNAPSHOT" />
|
||||||
|
|
||||||
<if>
|
<var name="mutable-version" value="${version.major}.${version.minor}.${version.revision}"/>
|
||||||
<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>
|
|
||||||
|
|
||||||
|
<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 file="${basedir}/build/build.properties" />
|
||||||
<property name="compile.dir" value="${basedir}/target/classes" />
|
<property name="compile.dir" value="${basedir}/target/classes" />
|
||||||
<property name="compile.test.dir" value="${basedir}/target/classes-test" />
|
<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/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/smack-config.xml" />
|
||||||
<copy todir="${compile.dir}/META-INF" file="${basedir}/build/resources/META-INF/core.providers" />
|
<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}"
|
<jar destfile="${smack.jar.name}"
|
||||||
basedir="${compile.dir}"
|
basedir="${compile.dir}"
|
||||||
includes="org/jivesoftware/smack/**/*.class, **/smack-config.xml, **/core.providers, **/jul.properties">
|
includes="org/jivesoftware/smack/**/*.class, **/smack-config.xml, **/core.providers, **/jul.properties">
|
||||||
|
@ -204,7 +205,7 @@
|
||||||
</manifest>
|
</manifest>
|
||||||
</jar>
|
</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" />
|
<copy todir="${compile.dir}/META-INF" file="${basedir}/build/resources/META-INF/extension.providers" />
|
||||||
<jar destfile="${smackx.jar.name}"
|
<jar destfile="${smackx.jar.name}"
|
||||||
basedir="${compile.dir}"
|
basedir="${compile.dir}"
|
||||||
|
@ -222,7 +223,7 @@
|
||||||
</manifest>
|
</manifest>
|
||||||
</jar>
|
</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">
|
<copy todir="${compile.dir}/images">
|
||||||
<fileset dir="${basedir}/build/resources/images">
|
<fileset dir="${basedir}/build/resources/images">
|
||||||
<include name="*.png"/>
|
<include name="*.png"/>
|
||||||
|
@ -242,7 +243,7 @@
|
||||||
</manifest>
|
</manifest>
|
||||||
</jar>
|
</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}"
|
<jar destfile="${jingle.jar.name}"
|
||||||
basedir="${compile.dir}/jingle/extension"
|
basedir="${compile.dir}/jingle/extension"
|
||||||
includes="org/jivesoftware/smackx/**/*.class">
|
includes="org/jivesoftware/smackx/**/*.class">
|
||||||
|
@ -258,7 +259,7 @@
|
||||||
</manifest>
|
</manifest>
|
||||||
</jar>
|
</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" />
|
<copy todir="${compile.dir}/workgroup/META-INF" file="${basedir}/workgroup/resources/META-INF/workgroup.providers" />
|
||||||
<jar destfile="${workgroup.jar.name}"
|
<jar destfile="${workgroup.jar.name}"
|
||||||
basedir="${compile.dir}/workgroup"
|
basedir="${compile.dir}/workgroup"
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<!-- Include Ant Optional Tasks -->
|
<!-- Include Ant Optional Tasks -->
|
||||||
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
|
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
|
||||||
<classpath>
|
<classpath>
|
||||||
<pathelement location="${basedir}/build/ant-contrib.jar"/>
|
<pathelement location="${basedir}/build/ant-contrib-1.0b2.jar"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
</taskdef>
|
</taskdef>
|
||||||
|
|
||||||
|
@ -28,19 +28,7 @@
|
||||||
<!-- ======================================================================================= -->
|
<!-- ======================================================================================= -->
|
||||||
<target name="all">
|
<target name="all">
|
||||||
<!-- create release properties -->
|
<!-- create release properties -->
|
||||||
<if>
|
<property name="release.dir" value="${basedir}/target/release/${version}" />
|
||||||
<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.samples.dir" value="${release.dir}/samples" />
|
<property name="release.samples.dir" value="${release.dir}/samples" />
|
||||||
|
|
||||||
<!-- create release dirs -->
|
<!-- create release dirs -->
|
||||||
|
@ -49,11 +37,11 @@
|
||||||
|
|
||||||
<!-- 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-${version}.jar" />
|
||||||
<fileset dir="${jar.dest.dir}" includes="smackx.jar" />
|
<fileset dir="${jar.dest.dir}" includes="smackx-${version}.jar" />
|
||||||
<fileset dir="${jar.dest.dir}" includes="smackx-debug.jar" />
|
<fileset dir="${jar.dest.dir}" includes="smackx-debug-${version}.jar" />
|
||||||
<fileset dir="${jar.dest.dir}" includes="smackx-jingle.jar" />
|
<fileset dir="${jar.dest.dir}" includes="smackx-jingle-${version}.jar" />
|
||||||
<fileset dir="${jar.dest.dir}" includes="smackx-workgroup.jar" />
|
<fileset dir="${jar.dest.dir}" includes="smackx-workgroup-${version}.jar" />
|
||||||
</copy>
|
</copy>
|
||||||
<copy todir="${release.samples.dir}">
|
<copy todir="${release.samples.dir}">
|
||||||
<fileset dir="${basedir}/build/resources/META-INF" includes="sample.providers" />
|
<fileset dir="${basedir}/build/resources/META-INF" includes="sample.providers" />
|
||||||
|
@ -76,19 +64,19 @@
|
||||||
<copy todir="${release.dir}">
|
<copy todir="${release.dir}">
|
||||||
<fileset dir="${basedir}/build/resources/releasedocs" includes="*.html" />
|
<fileset dir="${basedir}/build/resources/releasedocs" includes="*.html" />
|
||||||
<filterset>
|
<filterset>
|
||||||
<filter token="builddate" value="${builddate}"/>
|
<filter token="builddate" value="${build.date}"/>
|
||||||
<filter token="version" value="${version}"/>
|
<filter token="version" value="${version}"/>
|
||||||
</filterset>
|
</filterset>
|
||||||
</copy>
|
</copy>
|
||||||
|
|
||||||
<!-- Package -->
|
<!-- Package -->
|
||||||
<zip destfile="${basedir}/target/release/${release.name}.zip"
|
<zip destfile="${basedir}/target/release/smack-${version}.zip"
|
||||||
basedir="${release.dir}/.."
|
basedir="${release.dir}"
|
||||||
includes="${release.name}/**/*.*"
|
includes="**/*.*"
|
||||||
/>
|
/>
|
||||||
<tar destfile="${basedir}/target/release/${release.name}.tar.gz"
|
<tar destfile="${basedir}/target/release/smack-${version}.tar.gz"
|
||||||
basedir="${release.dir}/.."
|
basedir="${release.dir}"
|
||||||
includes="${release.name}/**/*.*"
|
includes="**/*.*"
|
||||||
compression="gzip"
|
compression="gzip"
|
||||||
/>
|
/>
|
||||||
<echo>
|
<echo>
|
||||||
|
|
Loading…
Reference in a new issue