geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r368481 - /geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/internal/GeronimoServerBehaviour.java
Date Thu, 12 Jan 2006 21:46:38 GMT
Author: sppatel
Date: Thu Jan 12 13:46:36 2006
New Revision: 368481

URL: http://svn.apache.org/viewcvs?rev=368481&view=rev
Log:
partial fix for handling delta's in project

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

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/internal/GeronimoServerBehaviour.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/GeronimoServerBehaviour.java?rev=368481&r1=368480&r2=368481&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/internal/GeronimoServerBehaviour.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/internal/GeronimoServerBehaviour.java
Thu Jan 12 13:46:36 2006
@@ -180,16 +180,17 @@
 	 */
 	public void publishModule(int kind, int deltaKind, IModule[] module,
 			IProgressMonitor monitor) throws CoreException {
-		Trace.trace(Trace.INFO, ">> publishModule(), deltaKind = " + kind);
+		Trace.trace(Trace.INFO, ">> publishModule(), deltaKind = " + deltaKind);
 		Trace.trace(Trace.INFO, Arrays.asList(module).toString());
 		_monitor = monitor;
 
-		if (deltaKind != NO_CHANGE && module.length == 1) {
-			invokeCommand(deltaKind, module[0]);
+		if (module.length == 1
+		        && (deltaKind == ADDED || deltaKind == REMOVED)) {
+		    invokeCommand(deltaKind, module[0]);
+		} else if (deltaKind == CHANGED) {
+		    invokeCommand(deltaKind, module[0]);
 		}
-
-		setModulePublishState(module, IServer.PUBLISH_STATE_NONE);
-
+			
 		Trace.trace(Trace.INFO, "<< publishModule()");
 	}
 
@@ -321,10 +322,14 @@
 					existingPrgArgs);
 		}
 
-		Trace.trace(Trace.INFO, "VM_INSTALL_TYPE: " + workingCopy.getAttribute(
-				IJavaLaunchConfigurationConstants.ATTR_VM_INSTALL_TYPE, ""));
-		Trace.trace(Trace.INFO, "VM_INSTALL_NAME: " + workingCopy.getAttribute(
-				IJavaLaunchConfigurationConstants.ATTR_VM_INSTALL_NAME, ""));
+		Trace.trace(Trace.INFO, "VM_INSTALL_TYPE: "
+				+ workingCopy.getAttribute(
+						IJavaLaunchConfigurationConstants.ATTR_VM_INSTALL_TYPE,
+						""));
+		Trace.trace(Trace.INFO, "VM_INSTALL_NAME: "
+				+ workingCopy.getAttribute(
+						IJavaLaunchConfigurationConstants.ATTR_VM_INSTALL_NAME,
+						""));
 	}
 
 	/**



Mime
View raw message