ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Lalevée (JIRA) <j...@apache.org>
Subject [jira] Commented: (IVYDE-35) Parsing ivy file fails in IvyDE while it succeeds in Ant
Date Fri, 20 Feb 2009 17:07:02 GMT

    [ https://issues.apache.org/jira/browse/IVYDE-35?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675401#action_12675401
] 

Nicolas Lalevée commented on IVYDE-35:
--------------------------------------

Ok, thanks. I have been able to reproduce it.

After some googling I have found this comment:
http://www.jdom.org/pipermail/jdom-interest/2005-March/014721.html
{quote}
The default XML parser in JDK 1.4 is Crimson, the default parser in JDK 1.5
is Xerces. Xerces accepts a BOM marker in UTF-8 files, Crimson does not. The
original XML 1.0 specification was not explicit as to whether a BOM was
allowed in UTF-8 files, this has been clarified in later specs but many
parsers have not been updated.
{quote}

With OSGi we can have a pretty good control of the classpath, so we should be able to make
Ivy use Xerces, just like WTP does:
http://wiki.eclipse.org/FAQ_Why_doesn't_Eclipse_play_well_with_Xerces%3F


> Parsing ivy file fails in IvyDE while it succeeds in Ant
> --------------------------------------------------------
>
>                 Key: IVYDE-35
>                 URL: https://issues.apache.org/jira/browse/IVYDE-35
>             Project: IvyDE
>          Issue Type: Bug
>          Components: classpath container
>    Affects Versions: 1.2.0
>            Reporter: Maarten Coene
>            Assignee: Xavier Hanin
>             Fix For: 2.0.0.final
>
>         Attachments: velocity-1.4.ivy
>
>
> Hi,
> I receive the following error when doing a resolve:
> === eclipse log file ===
> !ENTRY org.jayasoft.ivyde.eclipse 1 0 2006-10-10 16:13:06.484
> !MESSAGE resolved dependencies of C:\working\vhs\scontra_vhscontract\ant\ivy.xml
> !ENTRY org.jayasoft.ivyde.eclipse 4 4 2006-10-10 16:13:06.494
> !MESSAGE Impossible to resolve dependencies of [ LCMB | scontra-vhscontract | NONE ]:
> unresolved dependency: [ OTHER | velocity | 1.4 ]: java.text.ParseException: [[Fatal
Error] c:\working\repository\commons\lcm\ant_build\ivy\velocity-1.4.ivy:1:-1: Document root
element is missing. in c:\working\repository\commons\lcm\ant_build\ivy\velocity-1.4.ivy
> ]
> See IvyConsole for further details
> === end ===
> However, I checked the velocity-1.4.ivy file and the XML is correct.
> Even more, if I resolve the ivy file using ant, there is no problem parsing the velocity-1.4.ivy
file
> regards,
> Maarten

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


Mime
View raw message