Author: maartenc
Date: Tue Oct 28 14:02:18 2008
New Revision: 708666
URL: http://svn.apache.org/viewvc?rev=708666&view=rev
Log:
Set ${build.version} to the version specified in version.properties and
autodetect the status from this version.
Modified:
ant/ivy/core/branches/2.0.0-rc2/build-release.xml
ant/ivy/core/branches/2.0.0-rc2/build.properties
Modified: ant/ivy/core/branches/2.0.0-rc2/build-release.xml
URL:
http://svn.apache.org/viewvc/ant/ivy/core/branches/2.0.0-rc2/build-release.xml?rev=708666&r1=708665&r2=708666&view=diff
==============================================================================
--- ant/ivy/core/branches/2.0.0-rc2/build-release.xml (original)
+++ ant/ivy/core/branches/2.0.0-rc2/build-release.xml Tue Oct 28 14:02:18 2008
@@ -202,8 +202,16 @@
</target>
<target name="release-version">
- <input message="please enter version: "
addproperty="build.version"/>
- <input message="please enter status:
(integration,milestone,release)" addproperty="status"/>
+ <property name="build.version" value="${target.ivy.version}" />
+ <echo>Setting version to ${build.version}</echo>
+ <condition property="status" value="release">
+ <matches pattern="^\d+\.\d+\.\d+$"
string="${build.version}"/>
+ </condition>
+ <condition property="status" value="milestone">
+ <matches pattern="^\d+\.\d+\.\d+-(alpha|beta|rc)\d+$"
string="${build.version}"/>
+ </condition>
+ <property name="status" value="integration" />
+ <echo>Setting status to ${status}</echo>
</target>
<target name="sign" depends="init-ivy">
Modified: ant/ivy/core/branches/2.0.0-rc2/build.properties
URL:
http://svn.apache.org/viewvc/ant/ivy/core/branches/2.0.0-rc2/build.properties?rev=708666&r1=708665&r2=708666&view=diff
==============================================================================
--- ant/ivy/core/branches/2.0.0-rc2/build.properties (original)
+++ ant/ivy/core/branches/2.0.0-rc2/build.properties Tue Oct 28 14:02:18 2008
@@ -45,7 +45,7 @@
debug.mode=on
ivy.install.version=1.4.1
-status=integration
+#status=integration
test.class.pattern = *Test