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 2014/12/15 17:57:29 UTC

[2/9] incubator-brooklyn git commit: ensure fields are copied when cloning a spec

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 <al...@cloudsoftcorp.com>
Authored: Mon Dec 8 11:11:29 2014 +0000
Committer: Alex Heneveld <al...@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());