[ http://jira.codehaus.org/browse/JXR-5?page=comments#action_52887 ] 

mike perham commented on JXR-5:
-------------------------------

Here's an ugly but working patch:

Index: src/main/java/org/apache/maven/jxr/DirectoryIndexer.java
===================================================================
--- src/main/java/org/apache/maven/jxr/DirectoryIndexer.java    (revision 
354452)
+++ src/main/java/org/apache/maven/jxr/DirectoryIndexer.java    (working copy)
@@ -347,6 +347,8 @@
             String pkgName = pkg.getName();
             String pkgDir = perl.substitute( "s/\\./\\//g", pkgName );
             String rootRef = perl.substitute( "s/[^\\.]*(\\.|$)/\\.\\.\\//g", 
pkgName );
+             // TODO Ugly hack to remove spurious backslashes, see JXR-5
+             rootRef = perl.substitute( "s/\\\\//g", rootRef );

             // special case for the default package
             // javadoc doesn't deal with it, but it's easy for us

> JXR report html malformed
> -------------------------
>
>          Key: JXR-5
>          URL: http://jira.codehaus.org/browse/JXR-5
>      Project: Maven JXR
>         Type: Bug
>     Versions: 1.0-beta-1
>     Reporter: mike perham
>      Fix For: 1.0-beta-1

>
>
> Here's a sample of the HTML generated.  Note the invalid links and the 
> unresolved $name variable:
> <html xml:lang="en" lang="en">
>       <head>
>               <meta http-equiv="content-type" content="text/html; 
> charset=ISO-8859-1" />
>               <title>WSF TripleStore SPI 2.2.0-SNAPSHOT Reference Package 
> $name</title>
>               <link rel="stylesheet" type="text/css" 
> href="\.\./\.\./\.\./\.\./\.\./stylesheet.css" title="style" />
>       </head>
>       <body>
>                       <div class="overview">
>               <ul>
>                       <li>
>                       <a 
> href="\.\./\.\./\.\./\.\./\.\./overview-summary.html">Overview</a>
>                       </li>
>                       <li class="selected">Package</li>
>               </ul>
>               </div>
>               <div class="framenoframe">
>               <ul>
>                       <li>
>                       <a href="\.\./\.\./\.\./\.\./\.\./index.html" 
> target="_top">FRAMES</a>
>                       </li>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to