You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by sp...@apache.org on 2005/10/20 17:26:37 UTC

svn commit: r326926 - in /geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core: internal/GeronimoSchemaNS.java operations/DeploymentPlanCreationOperation.java

Author: sppatel
Date: Thu Oct 20 08:26:33 2005
New Revision: 326926

URL: http://svn.apache.org/viewcvs?rev=326926&view=rev
Log:
update ns prefix map

Modified:
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/internal/GeronimoSchemaNS.java
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/operations/DeploymentPlanCreationOperation.java

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/internal/GeronimoSchemaNS.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/internal/GeronimoSchemaNS.java?rev=326926&r1=326925&r2=326926&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/internal/GeronimoSchemaNS.java (original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/internal/GeronimoSchemaNS.java Thu Oct 20 08:26:33 2005
@@ -28,5 +28,9 @@
     public static final String GERONIMO_NAMING_NS = "http://geronimo.apache.org/xml/ns/naming-1.0";
     
     public static final String GERONIMO_SECURITY_NS = "http://geronimo.apache.org/xml/ns/security-1.0";
+    
+    public static final String GERONIMO_DEPLOYMENT_NS = "http://geronimo.apache.org/xml/ns/deployment-1.0";
+    
+    public static final String GERONIMO_PKGEN_NS ="http://www.openejb.org/xml/ns/pkgen-2.0";
 
 }

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/operations/DeploymentPlanCreationOperation.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/operations/DeploymentPlanCreationOperation.java?rev=326926&r1=326925&r2=326926&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/operations/DeploymentPlanCreationOperation.java (original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/operations/DeploymentPlanCreationOperation.java Thu Oct 20 08:26:33 2005
@@ -99,8 +99,10 @@
         ApplicationType root = ApplicationFactory.eINSTANCE
                 .createApplicationType();
 
-        documentRoot.getXMLNSPrefixMap().put("",
-                GeronimoSchemaNS.GERONIMO_APP_NS);
+        EMap map = documentRoot.getXMLNSPrefixMap();
+        map.put("", GeronimoSchemaNS.GERONIMO_APP_NS);
+        map.put("sec", GeronimoSchemaNS.GERONIMO_SECURITY_NS);
+        map.put("sys", GeronimoSchemaNS.GERONIMO_DEPLOYMENT_NS);
 
         root.setApplicationName(getComponentName());
         root.setConfigId(getProject().getName() + "/" + getComponentName());
@@ -127,6 +129,8 @@
         EMap map = documentRoot.getXMLNSPrefixMap();
         map.put("", GeronimoSchemaNS.GERONIMO_WEB_NS);
         map.put("sec", GeronimoSchemaNS.GERONIMO_SECURITY_NS);
+        map.put("nam", GeronimoSchemaNS.GERONIMO_NAMING_NS);
+        map.put("sys", GeronimoSchemaNS.GERONIMO_DEPLOYMENT_NS);
 
         WebAppType root = WebFactory.eINSTANCE.createWebAppType();
 
@@ -154,8 +158,12 @@
                 .createDocumentRoot();
         OpenejbJarType root = JarFactory.eINSTANCE.createOpenejbJarType();
 
-        documentRoot.getXMLNSPrefixMap().put("",
-                GeronimoSchemaNS.GERONIMO_OPENEJB_NS);
+        EMap map = documentRoot.getXMLNSPrefixMap();
+        map.put("", GeronimoSchemaNS.GERONIMO_OPENEJB_NS);
+        map.put("sec", GeronimoSchemaNS.GERONIMO_SECURITY_NS);
+        map.put("nam", GeronimoSchemaNS.GERONIMO_NAMING_NS);
+        map.put("sys", GeronimoSchemaNS.GERONIMO_DEPLOYMENT_NS);
+        map.put("pkgen", GeronimoSchemaNS.GERONIMO_PKGEN_NS);
 
         root.setConfigId(getProject().getName() + "/" + getComponentName());
 
@@ -179,8 +187,10 @@
                 .createDocumentRoot();
         ConnectorType root = ConnectorFactory.eINSTANCE.createConnectorType();
 
-        documentRoot.getXMLNSPrefixMap().put("",
-                GeronimoSchemaNS.GERONIMO_CONNECTOR_NS);
+        EMap map = documentRoot.getXMLNSPrefixMap();
+        map.put("", GeronimoSchemaNS.GERONIMO_CONNECTOR_NS);
+        map.put("nam", GeronimoSchemaNS.GERONIMO_NAMING_NS);
+        map.put("sys", GeronimoSchemaNS.GERONIMO_DEPLOYMENT_NS);
 
         root.setConfigId(getProject().getName() + "/" + getComponentName());