Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to see a file content in shrinkWrap

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

like image 566
Yashar Avatar asked May 22 '13 10:05

Yashar


1 Answers

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>
like image 116
bartosz.majsak Avatar answered Oct 16 '22 18:10

bartosz.majsak