Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 32296 invoked from network); 26 Sep 2006 19:28:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Sep 2006 19:28:43 -0000 Received: (qmail 20484 invoked by uid 500); 26 Sep 2006 19:28:36 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 20460 invoked by uid 500); 26 Sep 2006 19:28:36 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 20431 invoked by uid 99); 26 Sep 2006 19:28:35 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Sep 2006 12:28:35 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=sppatel@apache.org; spf=permerror X-ASF-Spam-Status: No, hits=-9.4 required=5.0 tests=ALL_TRUSTED,NO_REAL_NAME Received-SPF: error (idunn.apache.osuosl.org: domain apache.org from 140.211.166.113 cause and error) Received: from [140.211.166.113] ([140.211.166.113:53568] helo=eris.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 16/30-15364-26F79154 for ; Tue, 26 Sep 2006 12:28:35 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 9075E1A981A; Tue, 26 Sep 2006 12:28:31 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r450159 - in /geronimo/devtools/eclipse-plugin/trunk/plugins: org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/ org.apache.geronimo.st.ui/ org.apache.geronimo.st.ui/src/org/apache/geronimo/st/ui/commands/ org.apache.geronimo.st.u... Date: Tue, 26 Sep 2006 19:28:30 -0000 To: scm@geronimo.apache.org From: sppatel@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20060926192831.9075E1A981A@eris.apache.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: sppatel Date: Tue Sep 26 12:28:29 2006 New Revision: 450159 URL: http://svn.apache.org/viewvc?view=rev&rev=450159 Log: allow jvm args to be set through server editor and persisted in server config Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/org/apache/geronimo/st/ui/commands/SetVMArgsCommand.java (with props) geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/org/apache/geronimo/st/ui/sections/ServerVMArgsSection.java (with props) Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerDelegate.java geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/plugin.xml geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/org/apache/geronimo/st/ui/internal/Messages.java geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/org/apache/geronimo/st/ui/internal/Messages.properties Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java?view=diff&rev=450159&r1=450158&r2=450159 ============================================================================== --- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java (original) +++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java Tue Sep 26 12:28:29 2006 @@ -117,10 +117,11 @@ String existingProgArgs = wc.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, (String) null); String serverProgArgs = getServerDelegate().getConsoleLogLevel(); - if (existingProgArgs == null - || existingProgArgs.indexOf(serverProgArgs) < 0) { + if (existingProgArgs == null || existingProgArgs.indexOf(serverProgArgs) < 0) { wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, serverProgArgs); } + + wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, getServerDelegate().getVMArgs()); } /** Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerDelegate.java URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerDelegate.java?view=diff&rev=450159&r1=450158&r2=450159 ============================================================================== --- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerDelegate.java (original) +++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerDelegate.java Tue Sep 26 12:28:29 2006 @@ -54,6 +54,8 @@ public static final String PROPERTY_HTTP_PORT = "WebConnector"; public static final String PROPERTY_LOG_LEVEL = "logLevel"; + + public static final String PROPERTY_VM_ARGS = "VMArgs"; public static final String CONSOLE_INFO = "--long"; @@ -235,6 +237,10 @@ public String getConsoleLogLevel() { return getInstanceProperty(PROPERTY_LOG_LEVEL); } + + public String getVMArgs() { + return getInstanceProperty(PROPERTY_VM_ARGS); + } public void setAdminID(String value) { setInstanceProperty(PROPERTY_ADMIN_ID, value); @@ -254,6 +260,10 @@ public void setConsoleLogLevel(String value) { setInstanceProperty(PROPERTY_LOG_LEVEL, value); + } + + public void setVMArgs(String value) { + setInstanceProperty(PROPERTY_VM_ARGS, value); } public String discoverDeploymentFactoryClassName(IPath jarPath) { Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/plugin.xml URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/plugin.xml?view=diff&rev=450159&r1=450158&r2=450159 ============================================================================== --- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/plugin.xml (original) +++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/plugin.xml Tue Sep 26 12:28:29 2006 @@ -76,6 +76,14 @@ + +
+
+
+ 0) { + return content; + } + return null; + } + + private String getArgs() { + return gs != null && gs.getVMArgs() != null ? gs.getVMArgs() : ""; + } +} Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/org/apache/geronimo/st/ui/sections/ServerVMArgsSection.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/org/apache/geronimo/st/ui/sections/ServerVMArgsSection.java ------------------------------------------------------------------------------ svn:keywords = Date Rev Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/org/apache/geronimo/st/ui/sections/ServerVMArgsSection.java ------------------------------------------------------------------------------ svn:mime-type = text/plain