Permalink
Browse files

Make it possible to add enother env variable so no version addition w…

…ill happen - for real releases
  • Loading branch information...
1 parent ab22545 commit 1b9dfcc02dc438205351b85383825a459298c6a9 @olabini committed Apr 23, 2011
Showing with 9 additions and 0 deletions.
  1. +5 −0 build.xml
  2. +4 −0 ioke-ikc.build
View
@@ -6,6 +6,11 @@
</description>
<property environment="env" />
+
+ <condition property="VERSION_ADDITION" value="">
+ <isset property="env.BUILD_RELEASE_VERSION" />
+ </condition>
+
<condition property="VERSION_ADDITION" value="-p${env.GO_PIPELINE_COUNTER}">
<isset property="env.ADD_SNAPSHOT_VERSION" />
</condition>
View
@@ -41,6 +41,10 @@
<property name="VERSION_ADDITION" value="${version::extract-property('VERSION_ADDITION', 'version.properties')}" />
+ <if test="${environment::variable-exists('BUILD_RELEASE_VERSION')}">
+ <property name="VERSION_ADDITION" value="" />
+ </if>
+
<if test="${environment::variable-exists('ADD_SNAPSHOT_VERSION')}">
<property name="VERSION_ADDITION" value="-p${environment::get-variable('GO_PIPELINE_COUNTER')}" />
</if>

0 comments on commit 1b9dfcc

Please sign in to comment.