ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "hem006 (JIRA)" <>
Subject [jira] Created: (IVY-1081) Another wrong error message when publishing
Date Fri, 22 May 2009 13:10:45 GMT
Another wrong error message when publishing

                 Key: IVY-1081
             Project: Ivy
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.1.0-RC1
            Reporter: hem006

  <target name="publish">
    <copy file="${jar.dir}/${}.jar" todir="." />
    <ivy:publish artifactspattern="${jar.dir}/${}" resolver="shared" pubrevision="${}"

leads to the following output

...\build.xml:26: impossible to publish artifacts for;working@MY-PC:
java.lang.IllegalStateException: bad ivy file for;working@MY-PC:
[...]/MyComponent: java.text.ParseException: [[Fatal Error] :1:1: Content is not allowed in
prolog. in file:[...]/MyComponent/

Note that it is the ivy:publish task that fails, whereas the ant copy works as intended. Now,
the error message sends you hunting in the ivy file - maybe there is some malformed xml...?
However, the problem turns out to be related to the ${jar.dir} variable reference in the 'artifactspattern'
parameter. The same variable caused no trouble in the line before, so what is wrong?

Remove the variable reference, and everything works fine.

This is the second bug I've experienced - and reported - in a couple of days, relating to
Ivy providing wrong feedback in case of an error. Maybe it is time for a review of the code,
related to error handling?

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message