ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ingmar Stein" <st...@xtramind.com>
Subject still having problems when invoking JUnitReport
Date Thu, 12 Apr 2001 09:33:57 GMT
Hi all,

this is how I invoke the junitreport task:

 <target name="junitreport" depends="prepare">
  <junitreport todir="${logs}/${DSTAMP}">
   <fileset dir="${logs}/${DSTAMP}">
    <include name="TEST-*.xml" />
   </fileset>
   <report format="frames" todir="${logs}/${DSTAMP}/html" />
  </junitreport>
 </target>

I have included the optional JAR in the classpath and there is only one parser in
my classpath.

The classpath is:
:.:/home/tester/jakarta-ant-1.3/lib/ant.jar:/home/tester/jakarta-ant-1.3/lib/jakarta-ant-1.3-optional.jar:/usr/java/lib/tools.jar:/home/tester/jaf-1.0.1/activation.jar:/home/tester/junit3.5/junit.jar:/home/tester/xalan-j_1_2_2/xerces.jar:/home/tester/xalan-j_1_2_2/xalan.jar

This is the debug output:

Ant version 1.3 compiled on March 2 2001

Buildfile: build.xml
Setting project property: ant.java.version -> 1.3
Detected Java Version: 1.3
Detected OS: SunOS
 +User task: tar     org.apache.tools.ant.taskdefs.Tar
 +User task: fail     org.apache.tools.ant.taskdefs.Exit
 +User task: uptodate     org.apache.tools.ant.taskdefs.UpToDate
 +User task: java     org.apache.tools.ant.taskdefs.Java
 +User task: execon     org.apache.tools.ant.taskdefs.ExecuteOn
 +User task: echo     org.apache.tools.ant.taskdefs.Echo
 +User task: native2ascii     org.apache.tools.ant.taskdefs.optional.Native2Ascii
 +User task: jjtree     org.apache.tools.ant.taskdefs.optional.javacc.JJTree
 +User task: compileTask     org.apache.tools.ant.taskdefs.CompileTask
 +User task: chmod     org.apache.tools.ant.taskdefs.Chmod
 +User task: javadoc2     org.apache.tools.ant.taskdefs.Javadoc
 +User task: deltree     org.apache.tools.ant.taskdefs.Deltree
 +User task: cvs     org.apache.tools.ant.taskdefs.Cvs
 +User task: jlink     org.apache.tools.ant.taskdefs.optional.jlink.JlinkTask
 +User task: tstamp     org.apache.tools.ant.taskdefs.Tstamp
 +User task: unjar     org.apache.tools.ant.taskdefs.Expand
 +User task: patch     org.apache.tools.ant.taskdefs.Patch
 +User task: sound     org.apache.tools.ant.taskdefs.optional.sound.SoundTask
 +User task: cccheckout     org.apache.tools.ant.taskdefs.optional.clearcase.CCCheckout
 +User task: mail     org.apache.tools.ant.taskdefs.SendEmail
 +User task: gzip     org.apache.tools.ant.taskdefs.GZip
 +User task: p4label     org.apache.tools.ant.taskdefs.optional.perforce.P4Label
 +User task: wlrun     org.apache.tools.ant.taskdefs.optional.ejb.WLRun
 +User task: copy     org.apache.tools.ant.taskdefs.Copy
 +User task: filter     org.apache.tools.ant.taskdefs.Filter
 +User task: jar     org.apache.tools.ant.taskdefs.Jar
 +User task: unzip     org.apache.tools.ant.taskdefs.Expand
 +User task: rename     org.apache.tools.ant.taskdefs.Rename
 +User task: propertyfile     org.apache.tools.ant.taskdefs.optional.PropertyFile
 +User task: copyfile     org.apache.tools.ant.taskdefs.Copyfile
 +User task: p4submit     org.apache.tools.ant.taskdefs.optional.perforce.P4Submit
 +User task: gunzip     org.apache.tools.ant.taskdefs.GUnzip
 +User task: antcall     org.apache.tools.ant.taskdefs.CallTarget
 +User task: taskdef     org.apache.tools.ant.taskdefs.Taskdef
 +User task: mkdir     org.apache.tools.ant.taskdefs.Mkdir
 +User task: sql     org.apache.tools.ant.taskdefs.SQLExec
 +User task: replace     org.apache.tools.ant.taskdefs.Replace
 +User task: ant     org.apache.tools.ant.taskdefs.Ant
 +User task: style     org.apache.tools.ant.taskdefs.XSLTProcess
 +User task: p4sync     org.apache.tools.ant.taskdefs.optional.perforce.P4Sync
 +User task: fixcrlf     org.apache.tools.ant.taskdefs.FixCRLF
 +User task: vssget     org.apache.tools.ant.taskdefs.optional.vss.MSVSSGET
 +User task: genkey     org.apache.tools.ant.taskdefs.GenerateKey
 +User task: p4edit     org.apache.tools.ant.taskdefs.optional.perforce.P4Edit
 +User task: zip     org.apache.tools.ant.taskdefs.Zip
 +User task: antstructure     org.apache.tools.ant.taskdefs.AntStructure
 +User task: javah     org.apache.tools.ant.taskdefs.optional.Javah
 +User task: javac     org.apache.tools.ant.taskdefs.Javac
 +User task: test     org.apache.tools.ant.taskdefs.optional.Test
 +User task: cab     org.apache.tools.ant.taskdefs.optional.Cab
 +User task: mparse     org.apache.tools.ant.taskdefs.optional.metamata.MParse
 +User task: ccuncheckout     org.apache.tools.ant.taskdefs.optional.clearcase.CCUnCheckout
 +User task: ejbjar     org.apache.tools.ant.taskdefs.optional.ejb.EjbJar
 +User task: available     org.apache.tools.ant.taskdefs.Available
 +User task: p4have     org.apache.tools.ant.taskdefs.optional.perforce.P4Have
 +User task: vsslabel     org.apache.tools.ant.taskdefs.optional.vss.MSVSSLABEL
 +User task: wljspc     org.apache.tools.ant.taskdefs.optional.jsp.WLJspc
 +User task: move     org.apache.tools.ant.taskdefs.Move
 +User task: junitreport     org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator
 +User task: csc     org.apache.tools.ant.taskdefs.optional.dotnet.CSharp
 +User task: p4change     org.apache.tools.ant.taskdefs.optional.perforce.P4Change
 +User task: signjar     org.apache.tools.ant.taskdefs.SignJar
 +User task: javacc     org.apache.tools.ant.taskdefs.optional.javacc.JavaCC
 +User task: cccheckin     org.apache.tools.ant.taskdefs.optional.clearcase.CCCheckin
 +User task: property     org.apache.tools.ant.taskdefs.Property
 +User task: unwar     org.apache.tools.ant.taskdefs.Expand
 +User task: touch     org.apache.tools.ant.taskdefs.Touch
 +User task: ilasm     org.apache.tools.ant.taskdefs.optional.dotnet.Ilasm
 +User task: get     org.apache.tools.ant.taskdefs.Get
 +User task: stylebook     org.apache.tools.ant.taskdefs.optional.StyleBook
 +User task: javadoc     org.apache.tools.ant.taskdefs.Javadoc
 +User task: netrexxc     org.apache.tools.ant.taskdefs.optional.NetRexxC
 +User task: antlr     org.apache.tools.ant.taskdefs.optional.ANTLR
 +User task: untar     org.apache.tools.ant.taskdefs.Untar
 +User task: delete     org.apache.tools.ant.taskdefs.Delete
 +User task: ejbc     org.apache.tools.ant.taskdefs.optional.ejb.Ejbc
 +User task: ddcreator     org.apache.tools.ant.taskdefs.optional.ejb.DDCreator
 +User task: copydir     org.apache.tools.ant.taskdefs.Copydir
 +User task: war     org.apache.tools.ant.taskdefs.War
 +User task: ccupdate     org.apache.tools.ant.taskdefs.optional.clearcase.CCUpdate
 +User task: depend     org.apache.tools.ant.taskdefs.optional.depend.Depend
 +User task: renameext     org.apache.tools.ant.taskdefs.optional.RenameExtensions
 +User task: exec     org.apache.tools.ant.taskdefs.ExecTask
 +User task: apply     org.apache.tools.ant.taskdefs.Transform
 +User task: junit     org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
 +User task: wlstop     org.apache.tools.ant.taskdefs.optional.ejb.WLStop
 +User task: rmic     org.apache.tools.ant.taskdefs.Rmic
 +User datatype: fileset     org.apache.tools.ant.types.FileSet
 +User datatype: patternset     org.apache.tools.ant.types.PatternSet
 +User datatype: path     org.apache.tools.ant.types.Path
 +User datatype: mapper     org.apache.tools.ant.types.Mapper
Setting project property: java.runtime.name -> Java(TM) 2 Runtime Environment, Standard
Edition
Setting project property: sun.boot.library.path -> /usr/j2se/jre/lib/i386
Setting project property: java.vm.version -> 1.3.0
Setting project property: java.vm.vendor -> Sun Microsystems Inc.
Setting project property: java.vendor.url -> http://java.sun.com/
Setting project property: path.separator -> :
Setting project property: java.vm.name -> Java HotSpot(TM) Client VM
Setting project property: file.encoding.pkg -> sun.io
Setting project property: java.vm.specification.name -> Java Virtual Machine Specification
Setting project property: user.dir -> /home/tester
Setting project property: java.runtime.version -> 1.3.0
Setting project property: java.awt.graphicsenv -> sun.awt.X11GraphicsEnvironment
Setting project property: os.arch -> x86
Setting project property: java.io.tmpdir -> /var/tmp/
Setting project property: line.separator -> 

Setting project property: java.vm.specification.vendor -> Sun Microsystems Inc.
Setting project property: java.awt.fonts -> 
Setting project property: os.name -> SunOS
Setting project property: ant.home -> /home/tester/jakarta-ant-1.3
Setting project property: java.library.path -> /usr/java/bin/../jre/lib/i386/client:/usr/java/bin/../jre/lib/i386::/usr/java/bin/../jre/../lib/i386:/usr/lib
Setting project property: java.specification.name -> Java Platform API Specification
Setting project property: java.class.version -> 47.0
Setting project property: os.version -> 5.8
Setting project property: user.home -> /home/tester
Setting project property: user.timezone -> 
Setting project property: java.awt.printerjob -> sun.awt.motif.PSPrinterJob
Setting project property: file.encoding -> 646
Setting project property: java.specification.version -> 1.3
Setting project property: java.class.path -> :.:/home/tester/jakarta-ant-1.3/lib/ant.jar:/home/tester/jakarta-ant-1.3/lib/jakarta-ant-1.3-optional.jar:/usr/java/lib/tools.jar:/home/tester/jaf-1.0.1/activation.jar:/home/tester/junit3.5/junit.jar:/home/tester/xalan-j_1_2_2/xerces.jar:/home/tester/xalan-j_1_2_2/xalan.jar
Setting project property: user.name -> tester
Setting project property: java.vm.specification.version -> 1.0
Setting project property: java.home -> /usr/j2se/jre
Setting project property: user.language -> en
Setting project property: java.specification.vendor -> Sun Microsystems Inc.
Setting project property: java.vm.info -> mixed mode
Setting project property: java.version -> 1.3.0
Setting project property: java.ext.dirs -> /usr/j2se/jre/lib/ext
Setting project property: sun.boot.class.path -> /usr/j2se/jre/lib/rt.jar:/usr/j2se/jre/lib/i18n.jar:/usr/j2se/jre/lib/sunrsasign.jar:/usr/j2se/jre/classes
Setting project property: java.vendor -> Sun Microsystems Inc.
Setting project property: file.separator -> /
Setting project property: java.vendor.url.bug -> http://java.sun.com/cgi-bin/bugreport.cgi
Setting project property: sun.io.unicode.encoding -> UnicodeBig
Setting project property: sun.cpu.endian -> little
Setting project property: sun.cpu.isalist -> pentium_pro+mmx pentium_pro pentium+mmx pentium
i486 i386 i86
Setting ro project property: ant.file -> /home/tester/build.xml
parsing buildfile /home/tester/build.xml with URI = file:/home/tester/build.xml
resolving systemId: file:/home/tester/project.dtd
Setting ro project property: ant.project.name -> xtramind
Setting project property: basedir -> /home/tester
Project base dir set to: /home/tester
   +Task: property
 [property] Loading /home/tester/xnbs.properties
Setting project property: cvs.root -> :pserver:tester@bender.xtramind.dfki.de:/home/cvs/xm
Setting project property: cvs.expectscript -> logon.expect
Setting project property: expect.unix -> /usr/local/bin/expect
Setting project property: logs -> logs
Setting project property: mail.host -> bender.xtramind.dfki.de
Setting project property: cvs.module -> java
Setting project property: src -> java
Setting project property: cvs.password -> toaster
Setting project property: build.compiler -> classic
Setting project property: mail.from -> Xtramind Nightly Build System &lt;stein@xtramind.com&gt;
Setting project property: docs -> docs
Setting project property: bin -> bin
Setting project property: build -> build
Setting project property: mail.subject -> Results of nightly build
Setting project property: expect.win32 -> c:programmeexpectexpect.exe
Setting project property: cvs.logfile -> cvs.log
Setting project property: mail.to -> stein@xtramind.com
Setting project property: mail.message -> 
Setting project property: cvs.errfile -> cvs.err
   +DataType: path
 +Target: checkout
   +Task: exec
   +Task: exec
   +Task: cvs
   +Task: cvs
 +Target: junit
   +Task: junit
 +Target: junitreport
   +Task: junitreport
 +Target: javadoc
   +Task: mkdir
   +Task: javadoc
 +Target: movelog
   +Task: move
 +Target: mail
   +Task: mail
 +Target: prepare
   +Task: tstamp
   +Task: mkdir
   +Task: mkdir
   +Task: mkdir
 +Target: compile
   +Task: javac
 +Target: clean
   +Task: delete
 +Target: realclean
   +Task: delete
 +Target: main
 +Target: report
Build sequence for target `junitreport' is [prepare, junitreport]
Complete build sequence is [prepare, junitreport, clean, realclean, checkout, compile, javadoc,
main, movelog, mail, report, junit]

prepare:
Setting project property: DSTAMP -> 20010412
Setting project property: TSTAMP -> 1038
Setting project property: TODAY -> April 12 2001

junitreport:
[junitreport] Applying 'all-packages.xsl'. Generating '/home/tester/logs/20010412/html/all-packages.html'
XSL Error: Cannot use a DTMLiaison for a input DOM node... pass a org.apache.xalan.xpath.xdom.XercesLiaison
instead!
XSL Error: SAX Exception
org.apache.xalan.xslt.XSLProcessorException: 
at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1799)
at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1691)
at org.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput(XSLTEngineImpl.java:919)
at org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:643)
at org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(AggregateTransformer.java:460)
at org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.createPackageList(AggregateTransformer.java:310)
at org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(AggregateTransformer.java:233)
at org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XMLResultAggregator.java:169)
at org.apache.tools.ant.Target.execute(Target.java:153)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at org.apache.tools.ant.Project.executeTargets(Project.java:510)
at org.apache.tools.ant.Main.runBuild(Main.java:421)
at org.apache.tools.ant.Main.main(Main.java:149)

BUILD FAILED

/home/tester/build.xml:52: Errors while applying transformations
--- Nested Exception ---
org.apache.xalan.xslt.XSLProcessorException: 
at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1799)
at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1691)
at org.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput(XSLTEngineImpl.java:919)
at org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:643)
at org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(AggregateTransformer.java:460)
at org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.createPackageList(AggregateTransformer.java:310)
at org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(AggregateTransformer.java:233)
at org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XMLResultAggregator.java:169)
at org.apache.tools.ant.Target.execute(Target.java:153)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at org.apache.tools.ant.Project.executeTargets(Project.java:510)
at org.apache.tools.ant.Main.runBuild(Main.java:421)
at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 1 second

Cheers,

Ingmar Stein

Mime
View raw message