ArquillianDescriptor descriptor = configuration.get();
if(descriptor == null)
{
return;
}
EngineDef engine = descriptor.engine();
String systemExport = SecurityActions.getProperty("arquillian.deploymentExportPath");
String systemExportExploded = SecurityActions.getProperty("arquillian.deploymentExportExploded");
String exportPath = (systemExport == null || systemExport.length() == 0) ? engine.getDeploymentExportPath():systemExport;
Boolean exportExploded = (systemExportExploded == null || systemExportExploded.length() == 0) ? engine.getDeploymentExportExploded():Boolean.parseBoolean(systemExport);
if(exportPath != null && event.getDeployment().isArchiveDeployment())
{
File exportDir = new File(exportPath);
if (exportDir.isFile())