}
}
}
// Apply script security option
ApplicationSecurityEnforcer securityEnforcer =
new ApplicationSecurityEnforcer(this.getClass(),
RASTERIZER_SECURITY_POLICY);
securityEnforcer.enforceSecurity(!c.getSecurityOff());
String[] expandedSources = expandSources(sources);
c.setSources(expandedSources);
validateConverterConfig(c);
if (expandedSources== null || expandedSources.length < 1){
System.out.println(USAGE);
System.out.flush();
securityEnforcer.enforceSecurity(false);
return;
}
try {
c.execute();
} catch(SVGConverterException e){
error(ERROR_WHILE_CONVERTING_FILES,
new Object[] { e.getMessage() });
} finally {
System.out.flush();
securityEnforcer.enforceSecurity(false);
}
}