commit | b262948383009e4161f79a75e7cda719173125be | [log] [tgz] |
---|---|---|
author | avera <avera> | Fri May 29 19:45:39 2009 +0000 |
committer | avera <avera> | Fri May 29 19:45:39 2009 +0000 |
tree | c39b1bbaaaae6cd98bc909b00b263d9d4ab9f8dd | |
parent | b76aef610be66d0486dc4d4da4f0fbac9cbb013e [diff] |
[241466] [hotbug] EarArtifactEdit.getModuleURI not returning accurate value
diff --git a/plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/publishers/EarModuleAssembler.java b/plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/publishers/EarModuleAssembler.java index 8cc4d4e..94d9c60 100644 --- a/plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/publishers/EarModuleAssembler.java +++ b/plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/publishers/EarModuleAssembler.java
@@ -53,7 +53,8 @@ if( jeeModule != null && jeeModule.isBinary() ){//Binary module just copy ProjectModule pm = (ProjectModule) module.loadAdapter(ProjectModule.class, null); IModuleResource[] resources = pm.members(); - publishHelper.publishFull(resources, parent, monitor); + // It's assumed here that the URI at least includes the name, and so removing 1 segment is safe + publishHelper.publishFull(resources, parent.append(uri).removeLastSegments(1), monitor); continue;//done! no need to go further } if( shouldRepack( module ) ){