You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/06/03 16:08:57 UTC
[jira] Updated: (MPJCOVERAGE-9) Bad path to stylesheet generated
The following issue has been updated:
Updater: Philippe Mouawad (mailto:EXTERNAL.Z19PMOUA@DECATHLON.COM)
Date: Thu, 3 Jun 2004 10:08 AM
Comment:
What is described in the mail
Changes:
Attachment changed to CoverageReport.java
---------------------------------------------------------------------
For a full history of the issue, see:
http://jira.codehaus.org/browse/MPJCOVERAGE-9?page=history
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPJCOVERAGE-9
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPJCOVERAGE-9
Summary: Bad path to stylesheet generated
Type: Bug
Status: Open
Priority: Major
Original Estimate: 0 minutes
Time Spent: Unknown
Remaining: 0 minutes
Project: maven-jcoverage-plugin
Versions:
1.0.3
1.0.4
1.0.5
Assignee: Emmanuel Venisse
Reporter: Philippe Mouawad
Created: Thu, 3 Jun 2004 10:06 AM
Updated: Thu, 3 Jun 2004 10:08 AM
Environment: Windows NT
Description:
When I use jcoverage plugin, it generate HTML files with the following kind of path for stylesheet:
<link rel ="stylesheet" type="text/css" href="\.\./\.\./\.\./style.css" title="Style">
As you can see there is \. that should be .
This results into the browser not finding the stylesheet.
I opened the code and replaced
return new Perl5Util().substitute("s/[^\\.]*(\\.|$)/\\.\\.\\//g", path);
by
return new Perl5Util().substitute("s/[^\\.]*(\\.|$)/..\\//g", path);
In method org.apache.maven.jcoveragereport.CoverageReport => private String getRelativePath(String path)
In fact if you look at ;
http://jakarta.apache.org/oro/api/org/apache/oro/text/perl/Perl5Util.html
In the following example:
line = util.substitute("s/description1\\.html/about1.html/", line);
They don't escape the . in the replacement string.
and it know generates good pathes.
Since I didn't find a bug for this I thought I may be doing something wrong,
could you help me please.
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org