FELIX-3851 : Allow for refresh after bundle update/install
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1440591 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java
index 8019468..3f4d07e 100644
--- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java
+++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java
@@ -1566,8 +1566,8 @@
if ( tmpFile != null )
{
// start, refreshPackages just needs to exist, don't care for value
- boolean start = startItem != null;
- boolean refreshPackages = refreshPackagesItem != null;
+ final boolean start = startItem != null;
+ final boolean refreshPackages = refreshPackagesItem != null;
bundleLocation = "inputstream:" + bundleItem.getName();
installBundle( bundleLocation, tmpFile, startLevel, start, refreshPackages );
diff --git a/webconsole/src/main/resources/templates/bundles.html b/webconsole/src/main/resources/templates/bundles.html
index 758c5c3..1ce0656 100644
--- a/webconsole/src/main/resources/templates/bundles.html
+++ b/webconsole/src/main/resources/templates/bundles.html
@@ -133,6 +133,12 @@
<input type="checkbox" name="bundlestart" value="start"/>
</td>
</tr>
+ <tr>
+ <td style="text-align:right">${bundles.refreshPkg}</td>
+ <td>
+ <input type="checkbox" name="refreshPackages" value="refresh"/>
+ </td>
+ </tr>
<tr>
<td style="text-align:right">${bundles.upload.level}</td>
<td><input type="text" name="bundlestartlevel" id="bundlestartlevel" value="${startLevel}" size="4"/></td>