brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henev...@apache.org
Subject [2/9] incubator-brooklyn git commit: ensure fields are copied when cloning a spec
Date Mon, 15 Dec 2014 16:57:29 GMT
ensure fields are copied when cloning a spec


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/92ebdbfc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/92ebdbfc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/92ebdbfc

Branch: refs/heads/master
Commit: 92ebdbfc1083f7eae9ec88a8fc5d66f59b6db413
Parents: f287705
Author: Alex Heneveld <alex.heneveld@cloudsoftcorp.com>
Authored: Mon Dec 8 11:11:29 2014 +0000
Committer: Alex Heneveld <alex.heneveld@cloudsoftcorp.com>
Committed: Fri Dec 12 13:54:55 2014 +0000

----------------------------------------------------------------------
 api/src/main/java/brooklyn/entity/proxying/EntitySpec.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/92ebdbfc/api/src/main/java/brooklyn/entity/proxying/EntitySpec.java
----------------------------------------------------------------------
diff --git a/api/src/main/java/brooklyn/entity/proxying/EntitySpec.java b/api/src/main/java/brooklyn/entity/proxying/EntitySpec.java
index 1b22387..6fa8e73 100644
--- a/api/src/main/java/brooklyn/entity/proxying/EntitySpec.java
+++ b/api/src/main/java/brooklyn/entity/proxying/EntitySpec.java
@@ -118,7 +118,9 @@ public class EntitySpec<T extends Entity> extends AbstractBrooklynObjectSpec<T,E
                 .addInitializers(spec.getInitializers())
                 .children(spec.getChildren())
                 .members(spec.getMembers())
-                .groups(spec.getGroups());
+                .groups(spec.getGroups())
+                .catalogItemId(spec.getCatalogItemId())
+                .locations(spec.getLocations());
         
         if (spec.getParent() != null) result.parent(spec.getParent());
         if (spec.getImplementation() != null) result.impl(spec.getImplementation());


Mime
View raw message