Fix to version/date/docformat prompts in build script

This commit is contained in:
Mark Baker 2013-04-28 17:08:30 +01:00
parent 6f83afd512
commit 2cf5e0f5aa
1 changed files with 24 additions and 15 deletions

View File

@ -4,27 +4,36 @@
<target name="gather"> <target name="gather">
<if> <if>
<isfalse value="${packageVersion}"/> <isset property="${packageVersion}"/>
<then> <then>
<propertyprompt propertyName="packageVersion" defaultValue="1.0.0" <echo message="PHPExcel version number is ${packageVersion}" />
promptText="Enter PHPExcel version number"/> </then>
</then> <else>
<propertyprompt propertyName="packageVersion" defaultValue="1.0.0"
promptText="Enter PHPExcel version number"/>
</else>
</if> </if>
<if> <if>
<isfalse value="${releaseDate}"/> <isset property="${releaseDate}"/>
<then> <then>
<propertyprompt propertyName="releaseDate" defaultValue="2010-01-01" <echo message="Release date is ${releaseDate}" />
promptText="Enter PHPExcel release date"/> </then>
</then> <else>
<propertyprompt propertyName="releaseDate" defaultValue="2010-01-01"
promptText="Enter PHPExcel release date"/>
</else>
</if> </if>
<if> <if>
<isfalse value="${documentFormat}"/> <isset property="${documentFormat}"/>
<then> <then>
<propertyprompt propertyName="documentFormat" defaultValue="doc" <echo message="Document Format is ${documentFormat}" />
promptText="Enter Document Format"/> </then>
</then> <else>
<propertyprompt propertyName="documentFormat" defaultValue="doc"
promptText="Enter Document Format"/>
</else>
</if> </if>
</target> </target>