jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1416414 - /jmeter/trunk/build.xml
Date Mon, 03 Dec 2012 10:21:04 GMT
Author: sebb
Date: Mon Dec  3 10:21:03 2012
New Revision: 1416414

URL: http://svn.apache.org/viewvc?rev=1416414&view=rev
Log:
Fail if old version == current version

Modified:
    jmeter/trunk/build.xml

Modified: jmeter/trunk/build.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/build.xml?rev=1416414&r1=1416413&r2=1416414&view=diff
==============================================================================
--- jmeter/trunk/build.xml (original)
+++ jmeter/trunk/build.xml Mon Dec  3 10:21:03 2012
@@ -1755,7 +1755,11 @@ run JMeter unless all the JMeter jars ar
 
   <target name="release_delete" description="Delete old release candidate from svnpubsub
area" depends="init-version">
     <fail message="jmeter.old.version property must be defined!" unless="jmeter.old.version"/>
-    <echo>Version = ${jmeter.old.version}</echo>
+    <condition property="same">
+      <equals arg1="${jmeter.old.version}" arg2="${jmeter.version}"/>
+    </condition>
+    <echo>Old Version = ${jmeter.old.version}</echo>
+    <fail message="jmeter.old.version must be different from current jmeter.version!"
if="same"/>
     <property name="dist.name" value="apache-jmeter-${jmeter.old.version}"/>
     <property name="tempfile" value="svnmucc_delete.tmp"/>
     <svnmuccScript type="delete" tempfile="${dist.dir}/${tempfile}"/>



Mime
View raw message