geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From de...@apache.org
Subject svn commit: r803388 - in /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.core: META-INF/MANIFEST.MF src/main/java/org/apache/geronimo/st/v21/core/DeploymentPlanInstallConfig.java
Date Wed, 12 Aug 2009 07:15:04 GMT
Author: delos
Date: Wed Aug 12 07:15:03 2009
New Revision: 803388

URL: http://svn.apache.org/viewvc?rev=803388&view=rev
Log:
GERONIMODEVTOOLS-585 Make GEP generate standard JEE deployment descriptor by default

Modified:
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.core/META-INF/MANIFEST.MF
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.core/src/main/java/org/apache/geronimo/st/v21/core/DeploymentPlanInstallConfig.java

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.core/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.core/META-INF/MANIFEST.MF?rev=803388&r1=803387&r2=803388&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.core/META-INF/MANIFEST.MF
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.core/META-INF/MANIFEST.MF
Wed Aug 12 07:15:03 2009
@@ -6,7 +6,8 @@
 Bundle-Activator: org.apache.geronimo.st.v21.core.Activator
 Bundle-Vendor: %providerName
 Bundle-Localization: plugin
-Require-Bundle: org.apache.geronimo.runtime.v22,
+Require-Bundle: org.eclipse.jst.j2ee,
+ org.apache.geronimo.runtime.v22,
  org.apache.geronimo.st.core,
  org.apache.geronimo.jee.v21.jaxbmodel,
  org.eclipse.core.runtime,

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.core/src/main/java/org/apache/geronimo/st/v21/core/DeploymentPlanInstallConfig.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.core/src/main/java/org/apache/geronimo/st/v21/core/DeploymentPlanInstallConfig.java?rev=803388&r1=803387&r2=803388&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.core/src/main/java/org/apache/geronimo/st/v21/core/DeploymentPlanInstallConfig.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.core/src/main/java/org/apache/geronimo/st/v21/core/DeploymentPlanInstallConfig.java
Wed Aug 12 07:15:03 2009
@@ -17,6 +17,8 @@
 package org.apache.geronimo.st.v21.core;
 
 import org.apache.geronimo.st.v21.core.internal.Trace;
+import org.eclipse.jst.j2ee.internal.plugin.J2EEPlugin;
+import org.eclipse.jst.j2ee.internal.plugin.J2EEPreferences;
 import org.eclipse.wst.common.project.facet.core.IActionConfigFactory;
 
 
@@ -40,8 +42,26 @@
         public Object create()
         {
         	Trace.tracePoint("Entry/Exit", "DeploymentPlanInstallConfig.create");
+        	
+        	enableGenerationDDByDefault();
+        	
             return new DeploymentPlanInstallConfig();
         }
+        
+        /*
+         * by default, WTP won't generate deployment descriptor for all the projects(only
true for web project).
+         * Try to generate deployment descriptor by default for all projects, the default
value are set here
+         * 
+         * reference to J2EEPreferences.java in org.eclipse.jst.j2ee bundle
+         */
+        
+        
+        private void enableGenerationDDByDefault(){
+        	J2EEPlugin.getDefault().getJ2EEPreferences().setValue(J2EEPreferences.Keys.APPLICATION_GENERATE_DD,true);
+        	J2EEPlugin.getDefault().getJ2EEPreferences().setValue(J2EEPreferences.Keys.DYNAMIC_WEB_GENERATE_DD,true);
+        	J2EEPlugin.getDefault().getJ2EEPreferences().setValue(J2EEPreferences.Keys.EJB_GENERATE_DD,true);
+        	J2EEPlugin.getDefault().getJ2EEPreferences().setValue(J2EEPreferences.Keys.APP_CLIENT_GENERATE_DD,true);
+        }
     }
 
 	public String getArtifactId() {



Mime
View raw message