I would like to know the Maximum size of a war file that can be read by Shrinkwrap using the syntax
(WebArchive)ShrinkWrap.create(ZipImporter.class, "test.war").importFrom(new File("src/test/resources/test.war")).as(WebArchive.class);
If I have a war file of aboput 20 MB will it read without any exceptions?
There is nothing of a limit exception specified in shrinkwrap/api/src/main/java/org/jboss/shrinkwrap/api/importer/StreamImporter.java at master · shrinkwrap/shrinkwrap · G…
there is indeed no artificial limitation. I'm pretty sure we've run tests with WARs over 40 MiB but in theory it would rather be low ammount of memory assigned to your application server that would cause it to fail.