[英]Arquillian ShrinkWrap exclude import.sql
I'm using Arquillian to test my ejb's. 我正在使用Arquillian测试我的ejb。 I have a separate project made for testing.
我有一个单独的项目用于测试。 I want to exclude
import.sql
file from deployment. 我想从部署中排除
import.sql
文件。
I already tried this: 我已经试过了:
.addAsResource("test-import.sql", "import.sql")
test-import.sql -empty file
But scripts are still executed. 但是脚本仍在执行。 Ideas?
想法?
I suppose you want to exclude that file from the ShrinkWrap archive. 我想您想从ShrinkWrap存档中排除该文件。 There is a solution to delete files from that archive.
有一种解决方案,可以从该存档中删除文件。 So suppose that is added in a resource folder (like what is src/main/resources in Eclipse by default), you call:
因此,假设将其添加到资源文件夹中(例如默认情况下在Eclipse中为src / main / resources),您可以调用:
.delete("/WEB-INF/classes/import.sql")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.