mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 22:32:06 +01:00
Support for daily builds.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1864 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
70de83e19f
commit
c9e5c8a674
1 changed files with 20 additions and 2 deletions
|
@ -11,6 +11,13 @@
|
||||||
|
|
||||||
<project name="Smack Release Script" default="all" basedir="..">
|
<project name="Smack Release Script" default="all" basedir="..">
|
||||||
|
|
||||||
|
<!-- Include Ant Optional Tasks -->
|
||||||
|
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
|
||||||
|
<classpath>
|
||||||
|
<pathelement location="${basedir}/build/ant-contrib.jar"/>
|
||||||
|
</classpath>
|
||||||
|
</taskdef>
|
||||||
|
|
||||||
<!-- PROPERTIES -->
|
<!-- PROPERTIES -->
|
||||||
<!-- ======================================================================================= -->
|
<!-- ======================================================================================= -->
|
||||||
|
|
||||||
|
@ -21,7 +28,18 @@
|
||||||
<!-- ======================================================================================= -->
|
<!-- ======================================================================================= -->
|
||||||
<target name="all">
|
<target name="all">
|
||||||
<!-- create release properties -->
|
<!-- create release properties -->
|
||||||
|
<if>
|
||||||
|
<equals arg1="${dailybuild}" arg2="true" />
|
||||||
|
<then>
|
||||||
|
<tstamp>
|
||||||
|
<format property="build.date" pattern="MMM-dd-yyyy" locale="en"/>
|
||||||
|
</tstamp>
|
||||||
|
<property name="release.name" value="smack-${build.date}" />
|
||||||
|
</then>
|
||||||
|
<else>
|
||||||
<property name="release.name" value="smack-${version.major}.${version.minor}-${version.string}" />
|
<property name="release.name" value="smack-${version.major}.${version.minor}-${version.string}" />
|
||||||
|
</else>
|
||||||
|
</if>
|
||||||
<property name="release.dir" value="${basedir}/release/${release.name}" />
|
<property name="release.dir" value="${basedir}/release/${release.name}" />
|
||||||
<!-- create release dirs -->
|
<!-- create release dirs -->
|
||||||
<mkdir dir="${release.dir}" />
|
<mkdir dir="${release.dir}" />
|
||||||
|
|
Loading…
Reference in a new issue