开发者

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜