Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-1166

ivy unable to increment revision correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 2.1.0-RC1, 2.1.0
    • None
    • Ant
    • None
    • client(s): windowsxp and linux
      server repository: linux

    Description

      ivy unable to increment revision correctly

      when buildnumber and publish task finish it keeps publishing version 1.0.2
      using ivy 2.0.0 works fine.

      using :

      <target name="publish.release" depends="client.deploy" description="Publishes a library to the corporate Ivy repository">
              <!-- asks to ivy an available version number -->
              
      		<!-- auto-increment the next release number -->
      		<ivy:buildnumber
      			organisation="uk.co.company" 
      			module="AppWebServiceClient"
      		/>
      	    <echo message="Ivy repository says that the current ivy.revision is : ${ivy.revision}" />
      	    <echo message="Ivy repository says that the current ivy.new.revision is : ${ivy.new.revision}" />
      	    <echo message="Ivy repository says that the current ivy.build.number is : ${ivy.build.number}" />
      	    <echo message="Ivy repository says that the current ivy.new.build.number is : ${ivy.new.build.number}" />
      						
      		<ivy:publish 
      			settingsRef="basic.settings"			
      			artifactspattern="${dist.dir}/[artifact].[ext]" 
      			resolver="vm-repository" 			 
      			status="release"
      			conf="unversioned.jar"
      			forcedeliver="true"
      			overwrite="true"
      		    pubrevision="${ivy.new.revision}"
      		/>					
      		<echo message="project ${ivy.module} released with version ${ivy.new.revision}" />
      	</target>
      

      Client ant output:

      publish.release:
      [ivy:buildnumber] DEPRECATED: 'ivy.conf.file' is deprecated, use 'ivy.settings.file' instead
      [ivy:buildnumber] :: loading settings :: file = C:\dev\eclipse.workspace\AppClient\ivy\ivysettings-basic.xml
           [echo] Ivy repository says that the current ivy.revision is : 1.0.1
           [echo] Ivy repository says that the current ivy.new.revision is : 1.0.2
           [echo] Ivy repository says that the current ivy.build.number is : 1
           [echo] Ivy repository says that the current ivy.new.build.number is : 2
      :: delivering :: uk.co.company#AppWebServiceClient;working@z953831w :: 1.0.2 :: release :: Mon Feb 01 17:16:03 GMT 2010
      	delivering ivy file to C:\dev\eclipse.workspace\AppClient\dist\ivy.xml
      :: publishing :: uk.co.company#AppWebServiceClient
      	published AppWebServiceClient to /opt/ivy-repository-2.1.0/myrepositoryNoDeps/no-namespace/uk.co.company/AppWebServiceClient//jars/AppWebServiceClient-1.0.2.jar
      	published ivy to /opt/ivy-repository-2.1.0/myrepositoryNoDeps/no-namespace/uk.co.company/AppWebServiceClient//ivys/ivy-1.0.2.xml
           [echo] project AppWebServiceClient released with version 1.0.2
      

      Attachments

        1. ivysettings-basic.xml
          2 kB
          Amir
        2. appwebserviceclient.files.list.txt
          2 kB
          Amir
        3. -build-base.xml
          8 kB
          Amir

        Activity

          People

            Unassigned Unassigned
            amirsyed Amir
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: