You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Christoph Atteneder <ch...@gmail.com> on 2008/05/09 12:36:32 UTC

RuntimeException with buildnumber ant task

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';

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

Re: RuntimeException with buildnumber ant task

Posted by Christoph Atteneder <ch...@gmail.com>.
Hi,

thanks a lot. Now it works!

cheers,

Christoph

On Wed, May 14, 2008 at 8:19 AM, Xavier Hanin <xa...@gmail.com>
wrote:

> 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/
>

Re: RuntimeException with buildnumber ant task

Posted by Xavier Hanin <xa...@gmail.com>.
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/