After creating the ShrinkWrap I am able to see the file structure by using this line of code
System.out.println(webArchive.toString(true));
I wonder if is it possible to see the content of a specific file inside shrinkWrap, for example I want too see the content of my persistence.xml after creating the shrinkWrap.
is there any specific piece of code to print the content of files inside shrinkWrap? or is there any place in file system to look for the temporary shrinkWrap file and explore it's files and contents
Put the part reported below in your arquillian.xml, as described in the guide. This way you will be able to browse deployed test archive. ShrinkWrap on its own does not provide such inspection feature.
This is the XML you should add to your arquillian.xml file:
<engine>
<property name="deploymentExportPath">target/deployments</property>
</engine>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With