开发者

Use Tomcat Library in Webapp project

开发者 https://www.devze.com 2023-03-29 15:11 出处:网络
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.

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

精彩评论

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

关注公众号