You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by bo...@werken.com on 2003/01/15 16:08:55 UTC

[maven-bug] Closed: (MAVEN-168) fop:fop produces cryptic message for missing navigation.xml

Message:

   The following issue has been closed.

   Resolver: dion gillard
       Date: Wed, 15 Jan 2003 9:08 AM

Applied patches, thanks
---------------------------------------------------------------------
View the issue:

  http://jira.werken.com/secure/ViewIssue.jspa?key=MAVEN-168


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-168
    Summary: fop:fop produces cryptic message for missing navigation.xml
       Type: Bug

     Status: Closed
   Priority: Trivial
 Resolution: FIXED

 Time Spent: Unknown
   Estimate: 0 minutes

    Project: maven
  Component: None
   Versions:
             1.0-beta-8

   Assignee: Jason van Zyl
   Reporter: Brian Ewins

    Created: Tue, 3 Dec 2002 10:30 AM
    Updated: Wed, 15 Jan 2003 9:08 AM
Environment: any win32

Description:
The message you get when executing fo:fo and navigation.xml is missing is excessively cryptic. 
    [echo] Generating C:\extant\work\portalizer/target/docs/project.fo ...
    [java]
    [java] (Location of error unknown)XSLT Error (javax.xml.transform.TransformerException): java.net.UnknownHostException: C

The reason is because the URL expands to:
file://C:/path/to/maven/xdocs/navigation.xml
This is interpreted as having a host of 'C'. This is partly a xalan issue, but since maven knows it is using a file: url, the message can be improved.

eg, in plugin.jelly,
    <available file="${maven.docs.src}/navigation.xml" 
      property="maven.fo.navigation.available"/>
    <fail message="Cannot find ${maven.docs.src}/navigation.xml"
      property="maven.fo.navigation.available"/>
    <java classname="org.apache.xalan.xslt.Process" fork="yes">
    [...etc...]

fails with the much more informative message:
[ERROR] BUILD FAILED
[ERROR] Cannot find C:\extant\work\portalizer/xdocs/navigation.xml




---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.werken.com/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira