ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53773] New: [junitreport] Failed to transform using stylesheet jar
Date Fri, 24 Aug 2012 08:37:16 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53773

          Priority: P2
            Bug ID: 53773
          Assignee: notifications@ant.apache.org
           Summary: [junitreport] Failed to transform using stylesheet jar
          Severity: normal
    Classification: Unclassified
                OS: Windows XP
          Reporter: yicheng.lin@gmail.com
          Hardware: PC
            Status: NEW
           Version: 1.8.3
         Component: Optional Tasks
           Product: Ant

Created attachment 29271
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29271&action=edit
Source code

I follow this tutorial to create a task & gerneate HTML report.
(http://ant.apache.org/manual/tutorial-writing-tasks.html)

But following error message is shown while gererating html report.

D:\eclipse\workspace\Test>ant
Buildfile: D:\eclipse\workspace\Test\build.xml

compile:
    [javac] D:\eclipse\workspace\Test\build.xml:32: warning:
'includeantruntime'
 was not set, defaulting to build.sysclasspath=last; set to false for
repeatable
 builds

jar:

junit:
   [delete] Deleting directory D:\eclipse\workspace\Test\report\junit\xml
    [mkdir] Created dir: D:\eclipse\workspace\Test\report\junit\xml
    [junit] Running HelloWorldTest
    [junit] Tests run: 5, Failures: 3, Errors: 0, Time elapsed: 1.36 sec
    [junit] Test HelloWorldTest FAILED

junitreport:
[junitreport] Processing
D:\eclipse\workspace\Test\report\junit\html\TESTS-TestS
uites.xml to C:\DOCUME~1\myname\LOCALS~1\Temp\null1784577025
[junitreport] Loading stylesheet
jar:file:/D:/eclipse/plugins/org.apache.ant_1.8
.3.v20120321-1730/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/juni
t/xsl/junit-frames.xsl
[junitreport] Failed to transform using stylesheet
jar:file:/D:/eclipse/plugins/
org.apache.ant_1.8.3.v20120321-1730/lib/ant-junit.jar!/org/apache/tools/ant/task
defs/optional/junit/xsl/junit-frames.xsl
[junitreport] Failed to process
D:\eclipse\workspace\Test\report\junit\html\TEST
S-TestSuites.xml

BUILD FAILED
D:\eclipse\workspace\Test\build.xml:89: Errors while applying transformations:
D
:\eclipse\workspace\Test\build.xml:89: class
org.apache.tools.ant.taskdefs.optio
nal.TraXLiaison accepts the stylesheet only as a file

Total time: 3 seconds

Ant: v1.8.3
JDK: v1.6.0_33

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message