ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Pietsch" <and...@pietschy.com>
Subject Build number issues
Date Thu, 22 May 2008 00:41:25 GMT
Hi there,

I'm having a problem with <ivy:buildnumber> when trying to create a release
version after previously creating an integration version.    The release
version is using the previously generated integration version.  My
integration releases are published to the local repository, my final release
is published to the shared repositiory (both on my local disk).  I'm using
2.0.0 beta 1.  I've also just tried it with beta 2 with the same result.

Any help would be greatly appreciated.

The integration version use the following:

<ivy:buildnumber organisation="${ivy-module-org}"
                 module="${ivy-module-name}"
                 revision="*MyApp-1.0-BETA*"
                 defaultBuildNumber="1"
                 revSep=""/>

And produces

-prepare-integration-version:
     [echo] ivy.revision=1.0-BETA11
     [echo] ivy.new.revision=1.0-BETA12
     [echo] version=1.0-BETA12

-publish-integration:
[ivy:publish] :: delivering :: com.pietschy#
gui-framework;working@c220-239-211-156.chirn1.vic.optusnet.com.au<gui-framework%3Bworking@c220-239-211-156.chirn1.vic.optusnet.com.au>::
1.0-BETA12 :: integration :: Thu May 22 10:10:38 EST 2008
[ivy:publish]   delivering ivy file to target/dist/ivy.xml
[ivy:publish] :: publishing :: com.pietschy#gui-framework
[ivy:publish]   published gui-framework to /Users/andrew/.ivy2*/local/*
com.pietschy/gui-framework/*1.0-BETA12*/jars/gui-framework.jar
[ivy:publish]   published ivy to
/Users/andrew/.ivy2/local/com.pietschy/gui-framework/1.0-BETA12/ivys/ivy.xml
     [echo] project framework published locally with version 1.0-BETA12



My release version uses:

 <ivy:buildnumber organisation="${ivy-module-org}"
                  module="${ivy-module-name}"
                  revision="*MyApp-1.0*"/>

And generates..

-prepare-release-version:
     [echo] 1.0
     [echo] *ivy.revision=1.0-BETA12*
     [echo] ivy.new.revision=1.0-BETA13
     [echo] version=1.0-BETA13

-publish-release:
[ivy:publish] :: delivering :: com.pietschy#
gui-framework;working@c220-239-211-156.chirn1.vic.optusnet.com.au<gui-framework%3Bworking@c220-239-211-156.chirn1.vic.optusnet.com.au>::
1.0-BETA13 :: release :: Thu May 22 10:12:35 EST 2008
[ivy:publish]   delivering ivy file to target/dist/ivy.xml
[ivy:publish] :: publishing :: com.pietschy#gui-framework
[ivy:publish]   published gui-framework to /Users/andrew/.ivy2*/shared/*
com.pietschy/gui-framework/*1.0-BETA13*/jars/gui-framework-1.0-BETA13.jar
[ivy:publish]   published ivy to
/Users/andrew/.ivy2/shared/com.pietschy/gui-framework/1.0-BETA13/ivys/ivy.xml
     [echo] project framework published to shared with version 1.0-BETA13*
*

The full source for the two -prepare-XX-version targets is below:

 <!-- =================================
   target: -prepare-release-version
  ================================= -->

   <target name="-prepare-release-version" unless="${version}">
      <!-- asks to ivy an available version number -->
      <ivy:info file="${ivy-file}"/>

      <echo message="${ivy-version-prefix}"/>

      <ivy:buildnumber organisation="${ivy-module-org}"
                       module="${ivy-module-name}"
                       revision="${ivy-version-prefix}"/>

      <echo message="ivy.revision=${ivy.revision}"/>
      <echo message="ivy.new.revision=${ivy.new.revision}"/>

      <!-- Create a local version based on the current ivy version number.
-->
      <property name="version" value="${ivy.new.revision}"/>
      <echo message="version=${version}"/>

   </target>

   <!-- =================================
   target: -prepare-integration-version
  ================================= -->
   <target name="-prepare-integration-version" unless="${version}">

      <ivy:info file="${ivy-file}"/>

      <ivy:buildnumber organisation="${ivy-module-org}"
                       module="${ivy-module-name}"
                       revision="${ivy-version-prefix}-BETA"
                       defaultBuildNumber="1"
                       revSep=""/>

      <echo message="ivy.revision=${ivy.revision}"/>
      <echo message="ivy.new.revision=${ivy.new.revision}"/>

      <!-- Create a local version based on the current ivy version number.
-->
      <property name="version" value="${ivy.new.revision}"/>
      <echo message="version=${version}"/>
   </target>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message