dcsimg
Running the junitreport task in ant breaks the build in!_NEWLINE_!transform(AggregateTransformer)
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Oyvind_Roth
Posted On:   Monday, July 8, 2002 06:15 AM

using ant 1.5 beta 3 using junit 3.7 using xalan 2.3.1 having ANT_HOME set appropriately having junit.jar, xalan.jar, xercesImpl.jar and jakarta-ant-1.4.1-optional.jar in the classpath upon starting ant. (xercesImpl.jar is the one accompanying the ant 1.5 beta 3). The offending ant code: The ant -verbose ouput: BUILD FAILED G:dataoorProjectsjavadevjavas3.root.ANT:113: Errors while applying transfo rmations at org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.tra nsform(AggregateTransformer.java:191) at org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregat   More>>

using ant 1.5 beta 3

using junit 3.7

using xalan 2.3.1

having ANT_HOME set appropriately

having junit.jar, xalan.jar, xercesImpl.jar and jakarta-ant-1.4.1-optional.jar in the classpath upon starting ant. (xercesImpl.jar is the one accompanying the ant 1.5 beta 3).


The offending ant code:
			









The ant -verbose ouput:
			
BUILD FAILED
G:dataoorProjectsjavadevjavas3.root.ANT:113: Errors while applying transfo
rmations
at org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.tra
nsform(AggregateTransformer.java:191)
at org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.exec
ute(XMLResultAggregator.java:173)
at org.apache.tools.ant.Task.perform(Task.java:317)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:334)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
at org.apache.tools.ant.Main.runBuild(Main.java:606)
at org.apache.tools.ant.Main.start(Main.java:195)
at org.apache.tools.ant.Main.main(Main.java:234)
--- Nested Exception ---
Could not find xalan2 nor xalan1 in the classpath. Check http://xml.apache.org/x
alan-j
at org.apache.tools.ant.taskdefs.optional.junit.XalanExecutor.newInstanc
e(XalanExecutor.java:116)
at org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.tra
nsform(AggregateTransformer.java:188)
at org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.exec
ute(XMLResultAggregator.java:173)
at org.apache.tools.ant.Task.perform(Task.java:317)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:334)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
at org.apache.tools.ant.Main.runBuild(Main.java:606)
at org.apache.tools.ant.Main.start(Main.java:195)
at org.apache.tools.ant.Main.main(Main.java:234)
   <<Less

Re: Running the junitreport task in ant breaks the build in!_NEWLINE_!transform(AggregateTransformer)

Posted By:   Oren_Gross  
Posted On:   Monday, July 22, 2002 04:54 AM

First of all, this is not a JUnit issue, never the less:
you should have one of the followings in your ${ANT_HOM}/lib directory:
  • xalan.jar, xerces.jar, jaxp.jar

  • xalan.jar, xml-apis.jar (http://xml.apache.org/xalan-j/index.html)


  • Note, taht if you have parser.jar in your classpath, have the ant (usually in NT) load the xalan.jar before the parser.jar

    Goodluck
    About | Sitemap | Contact