Use Tomcat Library in Webapp project
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.
Now when I run an ant build / testNG class, it throws an error since the concerned jars are not present under th开发者_StackOverflowe web-inf/lib directory.
Is there any way (configuration) that I can use the Tomcat library for the running the ant build / testNG classes.
Thanks in advance,
Vivek
In the <testng>
task, just provide the tomcat libraries as additional classpath elements.
<TestNG>
<classpath>
<pathelement path="${classpath}"/>
<pathelement location="path/to/tomcat/lib.jar"/>
</classpath>
</TestNG>
精彩评论