Jan,

are you sure that ${ivy.organisation} and ${ivy.module} are specified before 
calling ivy:findrevision?

Maarten



----- Original Message ----
From: "[email protected]" <[email protected]>
To: [email protected]
Sent: Wed, July 14, 2010 3:38:16 PM
Subject: How to get the newest version number?

I published an artefact with

  <ivy:publish resolver="publish.snapshot"
      pubrevision="0.0.1.test" forcedeliver="true" pubdate="now"
overwrite="true"
      publishivy="true" status="integration">
      <artifacts pattern="${jars.dir}/[artifact].[ext]" />
  </ivy:publish>

For the next run I want to get the newest version from the repository
manager (Nexus) for increasing the version number. 
Looking at the Ivy Ant Tasks I found <ivy:findrevision>

While
  <ivy:findrevision property="junit.ver1" organisation="junit"
module="junit" revision="latest.integration"/>
gives me a value (4.8.1)

this
  <ivy:findrevision property="ver" organisation="${ivy.organisation}"
module="${ivy.module}" revision="latest.integration"/>
does not find anything ("ver" is unset).


Any ideas where to look at?


Jan



      

Reply via email to