You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2012/08/24 10:37:16 UTC

[Bug 53773] New: [junitreport] Failed to transform using stylesheet jar

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.

[Bug 53773] [junitreport] Failed to transform using stylesheet jar

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53773

yicheng.lin@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yicheng.lin@gmail.com
   Target Milestone|---                         |1.8.3

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

[Bug 53773] [junitreport] Failed to transform using stylesheet jar

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53773

Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Stefan Bodewig <bo...@apache.org> ---
Are you sure you are running the exact files you have attached?  The build
works for me and from the error message I'd guess you were using the wrong
property in the dir attribute of the fileset nested into the junitreport task -
it seems to try reading files from the HTML rather than the XML subdirectory.

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