mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-25 21:42:07 +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="..">
|
||||
|
||||
<!-- Include Ant Optional Tasks -->
|
||||
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
|
||||
<classpath>
|
||||
<pathelement location="${basedir}/build/ant-contrib.jar"/>
|
||||
</classpath>
|
||||
</taskdef>
|
||||
|
||||
<!-- PROPERTIES -->
|
||||
<!-- ======================================================================================= -->
|
||||
|
||||
|
@ -21,7 +28,18 @@
|
|||
<!-- ======================================================================================= -->
|
||||
<target name="all">
|
||||
<!-- create release properties -->
|
||||
<property name="release.name" value="smack-${version.major}.${version.minor}-${version.string}" />
|
||||
<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}" />
|
||||
|
|
Loading…
Reference in a new issue