You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2017/04/21 22:55:34 UTC

[15/39] brooklyn-server git commit: Add searchPath to Entities.dumpInfo.

Add searchPath to Entities.dumpInfo.


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/63beadae
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/63beadae
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/63beadae

Branch: refs/heads/master
Commit: 63beadae3ae7cfd42afca7352d4700b324c54a50
Parents: b4e56a5
Author: Geoff Macartney <ge...@cloudsoftcorp.com>
Authored: Tue Mar 21 12:04:59 2017 +0000
Committer: Geoff Macartney <ge...@cloudsoftcorp.com>
Committed: Thu Apr 20 11:20:36 2017 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/brooklyn/core/entity/Entities.java | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/63beadae/core/src/main/java/org/apache/brooklyn/core/entity/Entities.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/brooklyn/core/entity/Entities.java b/core/src/main/java/org/apache/brooklyn/core/entity/Entities.java
index 3f1857f..acad9d2 100644
--- a/core/src/main/java/org/apache/brooklyn/core/entity/Entities.java
+++ b/core/src/main/java/org/apache/brooklyn/core/entity/Entities.java
@@ -329,6 +329,15 @@ public class Entities {
         if (Strings.isNonBlank(e.getCatalogItemId())) {
             out.append(currentIndentation+tab+tab+"catalogItemId = "+e.getCatalogItemId()+"\n");
         }
+        final List<String> searchPath = e.getCatalogItemIdSearchPath();
+        if (!searchPath.isEmpty()) {
+            out.append(currentIndentation + tab + tab + "searchPath = [");
+            for (int i = 0 ; i < searchPath.size() ; i++) {
+                out.append(i > 0 ? ",\n" : "\n");
+                out.append(currentIndentation + tab + tab + searchPath.get(i));
+            }
+            out.append("\n" + currentIndentation + tab + tab + "]");
+        }
 
         out.append(currentIndentation+tab+tab+"locations = "+e.getLocations()+"\n");