使用Tomcat库中的webapp项目 [英] Use Tomcat Library in Webapp project
本文介绍了使用Tomcat库中的webapp项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个使用Tomcat的库的Web应用程序。我没有复制从Tomcat库的罐子到WEB-INF / lib目录下。
I have a web application that uses the Tomcat library. I have not copied the jars from the Tomcat library into the web-inf/lib directory.
现在,当我运行一个Ant构建/ TestNG的类,它因为有关罐子不是WEB-INF / lib目录下的present抛出一个错误。
Now when I run an ant build / testNG class, it throws an error since the concerned jars are not present under the web-inf/lib directory.
有什么办法(配置),我可以使用Tomcat的库运行Ant编译/ TestNG的类。
Is there any way (configuration) that I can use the Tomcat library for the running the ant build / testNG classes.
由于提前,
维韦克
推荐答案
在 <&TestNG的GT;
任务,只需要提供tomcat的库的作为额外的路径元素的。
<TestNG>
<classpath>
<pathelement path="${classpath}"/>
<pathelement location="path/to/tomcat/lib.jar"/>
</classpath>
</TestNG>
这篇关于使用Tomcat库中的webapp项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文