java - How can I remove my Test Classes from my ShrinkWrap Archive -
How can I filter out sections of my final collection? Public static JavaArchive unitTestJar (return) ShrinkWrap.create (JavaArchive.class) .addAsManifestResource (EmptyAsset.INSTANCE, "Beans.Xml") .addPackages (wrong, getCorePackages ()); } Public stable string [] getCorePackages (string ... args) {list & lt; String & gt; Wire = Arrays.asList ("com.lm.util", "com.lm.infrastructure"); Strings.adl (eroslists (args)); Return (string []) strings. Arrow (); }
I think there is one, but I can not find any examples how to use it. After all I thought I would just remove anything that is * Test *
. Which is easier than trying to add a category at a time.
Try it out:
sequowcup.rackcat (webarchive.class) .addPackages (true, filter. Remove (". * Test. *"), GetCorePackages ());
Comments
Post a Comment