在Cakuban项目中运行build.xml时出错

时间:2013-03-14 11:46:35

标签: xml unit-testing xslt-2.0 xslt-grouping

我们计划使用Cakupan(Link)作为XSLT单元测试覆盖率工具。我们已经下载了示例项目并运行了build.xml。那时我们打赌波纹管错误。

C:\ Cakupan \ build.xml:143:java.lang.NoClassDefFoundError:com / thoughtworks / xstream / XStream

我在类路径中设置了所有的relatd lib。 Bellow build.xml内容可以确保。

<property name="lib.dir" value="lib" />
<path id="classpath.xslt">
   <pathelement location="${lib.dir}/commons-lang-2.1.jar" />
   <pathelement location="${lib.dir}/xstream-1.4.4.jar" />
   <pathelement location="${lib.dir}/xpp3-1.1.4c.jar" />
   <pathelement location="${lib.dir}/saxon9.jar" />
   <pathelement location="${lib.dir}/xalan-2.6.0.jar" />
   <pathelement location="${lib.dir}/${ant.test.lib}" />
   <pathelement location="${lib.dir}/junit-4.10.jar" />
</path>

我已将所有jar放在lib文件夹中。请找到下面的屏幕截图

注意:xStream.class在xstream-1.4.4.jar

中可用

enter image description here

请帮我解决此问题。

1 个答案:

答案 0 :(得分:0)

我们已经在Patrick的帮助下解决了这个问题(Cakupan的一个出口 - patrick.oosterveld@gmail.com)。

我们必须在eclipse的ant运行时类路径定义的全局条目中添加xstream jar和xpp3-1.1.4c jar文件。

相关问题