Author: rob.stryker(a)jboss.com
Date: 2009-12-15 16:22:57 -0500 (Tue, 15 Dec 2009)
New Revision: 19289
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServer.java
Log:
JBIDE-5468 - change default server id to fix
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServer.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServer.java 2009-12-15
17:26:11 UTC (rev 19288)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServer.java 2009-12-15
21:22:57 UTC (rev 19289)
@@ -13,6 +13,7 @@
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
+import java.util.Date;
import java.util.Map;
import org.eclipse.core.runtime.CoreException;
@@ -55,6 +56,7 @@
public void setDefaults(IProgressMonitor monitor) {
super.setDefaults(monitor);
setAttribute("auto-publish-time", 1); //$NON-NLS-1$
+ setAttribute("id", getAttribute("id", (String)"") + new
Date().getTime()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}
public void saveConfiguration(IProgressMonitor monitor) throws CoreException {
Show replies by date