ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin" <xavier.ha...@gmail.com>
Subject Re: RuntimeException with buildnumber ant task
Date Wed, 14 May 2008 06:19:59 GMT
On Fri, May 9, 2008 at 12:36 PM, Christoph Atteneder <
christoph.atteneder@gmail.com> wrote:

> Hi,
>
> I´m pretty new to ivy and have set up my own repository and wanted to use
> the buildnumber ant task for getting an updated revision number each time
> I´m publishing a new version of my library.
>
> <!-- =================================
>          target: ivy-new-version
>         ================================= -->
> <target name="ivy-new-version" description="--> description">
>        <ivy:info file="${ivy.file}"/>
>        <ivy:buildnumber organisation="${ivy.organisation}"
> module="${ivy.module}" revision="${ivy.module.version.target}" revSep="."
> defaultBuildNumber="1"/>
>  </target>
>
> This target works fine if there is no version inside the repository.
>
> If I´m trying to publish a new version to the repository I get following
> build failure:
>
> BUILD FAILED
> C:\[PATH]\build.xml:95: java.lang.RuntimeException: problem while parsing
> repository module descriptor for myorg#core;1+: java.text.ParseException:
> inconsistent module descriptor file found in
> '[REP-PATH]\ivys\core-1.1.xml':
> bad status: 'internal';

This message says that the module descriptor (i.e. Ivy file) found at
[REP-PATH]\ivys\core-1.1.xml has a bad value for the status attribute.
Unless you change your settings, the only recognized statuses are
integration, milestone and release. Change either your settings or your ivy
file in your repo.

Xavier


>
> I´m using following ant properties which are used int he ivy-new-version
> target:
>
> ivy.file=${build.dir}/ivy/ivy.xml
>
> ivy.organisation=myorg
> ivy.module=core
> ivy.module.version.target=1.0
> ivy.module.status=internal
>
> Did I missed a setting or something else?
>
> thx in adavance for any hints!
>
> cheers,
>
> Christoph
>



-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/

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