diff options
author | vbhadrir | 2005-06-17 15:32:40 +0000 |
---|---|---|
committer | vbhadrir | 2005-06-17 15:32:40 +0000 |
commit | 8533ebab4e8bcb06217168d4210b2e0fa93e4ae5 (patch) | |
tree | 913d5dd2d52e52d214a6be3bccec7bc8f006ff39 /plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/application/internal/operations/EARComponentCreationOperation.java | |
parent | 30fea059b81c6fb26b61883a280b755275598ba8 (diff) | |
download | webtools.javaee-8533ebab4e8bcb06217168d4210b2e0fa93e4ae5.tar.gz webtools.javaee-8533ebab4e8bcb06217168d4210b2e0fa93e4ae5.tar.xz webtools.javaee-8533ebab4e8bcb06217168d4210b2e0fa93e4ae5.zip |
[87474]commited for NA
Diffstat (limited to 'plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/application/internal/operations/EARComponentCreationOperation.java')
-rw-r--r-- | plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/application/internal/operations/EARComponentCreationOperation.java | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/application/internal/operations/EARComponentCreationOperation.java b/plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/application/internal/operations/EARComponentCreationOperation.java index 0cdb91b2f..84d7da7fd 100644 --- a/plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/application/internal/operations/EARComponentCreationOperation.java +++ b/plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/application/internal/operations/EARComponentCreationOperation.java @@ -43,7 +43,7 @@ public class EARComponentCreationOperation extends ComponentCreationOperation im IVirtualComponent component = ComponentCore.createComponent(getProject(), getModuleDeployName()); component.create(0, null); //create and link META-INF folder - IVirtualFolder root = component.getFolder(new Path("/")); //$NON-NLS-1$ + IVirtualFolder root = component.getRootFolder().getFolder(new Path("/")); //$NON-NLS-1$ root.createLink(new Path("/" + getModuleName()), 0, null); //$NON-NLS-1$ IVirtualFolder metaInfFolder = root.getFolder(J2EEConstants.META_INF); @@ -54,9 +54,9 @@ public class EARComponentCreationOperation extends ComponentCreationOperation im IVirtualComponent component = ComponentCore.createComponent(getProject(), getModuleDeployName()); component.create(0, null); //create and link META-INF folder - IVirtualFolder root = component.getFolder(new Path("/")); //$NON-NLS-1$ - root.createLink(new Path("/" + getModuleName()), 0, null); //$NON-NLS-1$ - + IVirtualFolder root = component.getRootFolder().getFolder(new Path("/")); //$NON-NLS-1$ + root.createLink(new Path("/" + getModuleName()), 0, null); //$NON-NLS-1$ + IVirtualFolder metaInfFolder = root.getFolder(J2EEConstants.META_INF); metaInfFolder.create(IResource.FORCE, null); } @@ -103,7 +103,7 @@ public class EARComponentCreationOperation extends ComponentCreationOperation im IDataModel dm = (IDataModel)model.getProperty(NESTED_ADD_COMPONENT_TO_EAR_DM); IVirtualComponent component = ComponentCore.createComponent(getProject(), model.getStringProperty(COMPONENT_DEPLOY_NAME)); dm.setProperty(ICreateReferenceComponentsDataModelProperties.SOURCE_COMPONENT_HANDLE, component.getComponentHandle()); - + List modulesList = (List)model.getProperty(J2EE_COMPONENT_LIST); if (modulesList != null && !modulesList.isEmpty()) { dm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENTS_HANDLE_LIST, modulesList); @@ -111,9 +111,7 @@ public class EARComponentCreationOperation extends ComponentCreationOperation im if( stat != OK_STATUS ) return stat; dm.getDefaultOperation().execute(monitor, null); - } - - + } List javaProjectsList = (List)model.getProperty(JAVA_PROJECT_LIST); if( !javaProjectsList.isEmpty()){ |