You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sr...@apache.org on 2014/10/23 01:45:10 UTC
git commit: AMBARI-7912. Slider View: 'application.def' should be
calculated dynamically when app created (srimanth)
Repository: ambari
Updated Branches:
refs/heads/trunk a7adbe275 -> e463a1670
AMBARI-7912. Slider View: 'application.def' should be calculated dynamically when app created (srimanth)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/e463a167
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e463a167
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e463a167
Branch: refs/heads/trunk
Commit: e463a1670564890e4dd7a9237caa2bfb49ece49d
Parents: a7adbe2
Author: Srimanth Gunturi <sg...@hortonworks.com>
Authored: Wed Oct 22 16:32:30 2014 -0700
Committer: Srimanth Gunturi <sg...@hortonworks.com>
Committed: Wed Oct 22 16:32:35 2014 -0700
----------------------------------------------------------------------
.../ambari/view/slider/SliderAppsViewControllerImpl.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/e463a167/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java
index c1ad34b..88afbb8 100644
--- a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java
+++ b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java
@@ -946,7 +946,12 @@ public class SliderAppsViewControllerImpl implements SliderAppsViewController {
JsonObject appTypeGlobalJson = appConfigJson.getAsJsonObject()
.get("global").getAsJsonObject();
for (Entry<String, JsonElement> e : appTypeGlobalJson.entrySet()) {
- configsMap.put(e.getKey(), e.getValue().getAsString());
+ String key = e.getKey();
+ String valueString = e.getValue().getAsString();
+ if ("application.def".equals(key)) {
+ valueString = String.format(".slider/package/%1$s/%2$s", application.getName(), appZip.getName());
+ }
+ configsMap.put(key, valueString);
}
appType.setTypeConfigs(configsMap);
// Components