Arquillian ShrinkWrap exclude import.sql

685 views Asked by At

I'm using Arquillian to test my ejb's. I have a separate project made for testing. I want to exclude import.sql file from deployment.

I already tried this:

.addAsResource("test-import.sql", "import.sql")
test-import.sql -empty file

But scripts are still executed. Ideas?

1

There are 1 answers

0
MackieTheKnife On

I suppose you want to exclude that file from the ShrinkWrap archive. 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:

.delete("/WEB-INF/classes/import.sql")