MINOR Prompting for version info in archive task

This commit is contained in:
Ingo Schommer 2012-02-01 18:15:29 +01:00
parent 1b8d1bebc7
commit 812d904935
1 changed files with 7 additions and 1 deletions

View File

@ -183,6 +183,12 @@ Options:
</target> </target>
<target name="archive" if="basedir" description="Creates a gzip archive from the current folder (removes any version control files)"> <target name="archive" if="basedir" description="Creates a gzip archive from the current folder (removes any version control files)">
<if>
<not><isset property="version"/></not>
<then><input propertyName="version" defaultValue="x.y.z" promptChar=":">Please choose a version</input></then>
</if>
<if> <if>
<isset property="archivetype"/> <isset property="archivetype"/>
<then> <then>
@ -200,7 +206,7 @@ Options:
<echo msg="Creating '${archivename}' archive"/> <echo msg="Creating '${archivename}' archive"/>
</then> </then>
<else> <else>
<input propertyName="archivename" defaultValue="SilverStripe-vX.Y.Z" promptChar=":">Please enter a name for the archive (without extension)</input> <input propertyName="archivename" defaultValue="SilverStripe-v${version}" promptChar=":">Please enter a name for the archive (without extension)</input>
<echo msg="Creating '${archivename}' archive"/> <echo msg="Creating '${archivename}' archive"/>
</else> </else>
</if> </if>