1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 06:12:05 +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:
Matt Tucker 2003-04-05 01:13:07 +00:00 committed by mtucker
parent 70de83e19f
commit c9e5c8a674

View file

@ -11,6 +11,13 @@
<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 -->
<!-- ======================================================================================= -->
@ -20,8 +27,19 @@
<!-- all -->
<!-- ======================================================================================= -->
<target name="all">
<!-- create release properties -->
<property name="release.name" value="smack-${version.major}.${version.minor}-${version.string}" />
<!-- 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}" />
</else>
</if>
<property name="release.dir" value="${basedir}/release/${release.name}" />
<!-- create release dirs -->
<mkdir dir="${release.dir}" />