package at.gv.egiz.pdfas.test; import at.gv.egiz.pdfas.api.commons.Constants; import at.gv.egiz.pdfas.utils.ConfigUtils; public final class JarExtractTest { private JarExtractTest() { } public static void main(String[] args) { try { String sysProp = System.getProperty(Constants.CONFIG_DIR_SYSTEM_PROPERTY); System.out.println("System property \"" + Constants.CONFIG_DIR_SYSTEM_PROPERTY + "\" = " + (sysProp != null ? ("\"" + sysProp + "\"") : null)); String deployedTo = ConfigUtils.deployDefaultConfiguration(); if (deployedTo != null) { System.out.println("Configuration successfully deployed to \"" + deployedTo + "\"."); } else { System.out.println("Configuration was NOT deployed. Maybe a configuration already exists."); } } catch (Exception e) { e.printStackTrace(); } } }