diff --git a/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/PackInApplicationActivator.java b/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/PackInApplicationActivator.java index 7470392d2e..5666eafabd 100644 --- a/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/PackInApplicationActivator.java +++ b/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/PackInApplicationActivator.java @@ -342,17 +342,13 @@ public class PackInApplicationActivator extends AbstractActivator{ @Override protected void frameworkStarted() { if (service != null) { - String packinFolders = System.getProperty(MSysConfig.AUTOMATIC_PACKIN_FOLDERS); - if (packinFolders == null || packinFolders.trim().length() == 0) { - packinFolders = MSysConfig.getValue(MSysConfig.AUTOMATIC_PACKIN_FOLDERS); - } - final String fPackinFolders = packinFolders; if (Adempiere.getThreadPoolExecutor() != null) { Adempiere.getThreadPoolExecutor().execute(new Runnable() { @Override public void run() { int timeout = MSysConfig.getIntValue(MSysConfig.AUTOMATIC_PACKIN_INITIAL_DELAY, 120) * 1000; - automaticPackin(timeout, fPackinFolders, true); + String folders = MSysConfig.getValue(MSysConfig.AUTOMATIC_PACKIN_FOLDERS); + automaticPackin(timeout, folders, true); } }); } else { @@ -361,7 +357,8 @@ public class PackInApplicationActivator extends AbstractActivator{ public void stateChange(ServerStateChangeEvent event) { if (event.getEventType() == ServerStateChangeEvent.SERVER_START && service != null) { int timeout = MSysConfig.getIntValue(MSysConfig.AUTOMATIC_PACKIN_INITIAL_DELAY, 120) * 1000; - automaticPackin(timeout, fPackinFolders, true); + String folders = MSysConfig.getValue(MSysConfig.AUTOMATIC_PACKIN_FOLDERS); + automaticPackin(timeout, folders, true); } } });