Always provide feedback for 2pack package installation.

This commit is contained in:
Heng Sin Low 2013-04-12 17:23:28 +08:00
parent 42f276d3e7
commit 483fa5e6fd
1 changed files with 2 additions and 1 deletions

View File

@ -85,9 +85,10 @@ public class AdempiereActivator implements BundleActivator, ServiceTrackerCustom
q.setParameters(new Object[] { getName(), version + "%" });
X_AD_Package_Imp pkg = q.first();
if (pkg == null) {
System.out.println("Installing " + getName() + " " + version + " ...");
packIn(trxName);
install();
if (logger.isLoggable(Level.INFO)) logger.info(getName() + " " + version + " installed.");
System.out.println(getName() + " " + version + " installed.");
} else {
if (logger.isLoggable(Level.INFO)) logger.info(getName() + " " + version + " was installed: "
+ pkg.getCreated());