Author: adietish
Date: 2011-06-29 08:05:19 -0400 (Wed, 29 Jun 2011)
New Revision: 32439
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServer.java
Log:
[JBIDE-9054] corrected warnings by replacing deprecated constant class
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 2011-06-29
11:59:54 UTC (rev 32438)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/JBossServer.java 2011-06-29
12:05:19 UTC (rev 32439)
@@ -10,6 +10,24 @@
******************************************************************************/
package org.jboss.ide.eclipse.as.core.server.internal;
+import static org.jboss.ide.eclipse.as.core.util.IJBossRuntimeResourceConstants.DEPLOY;
+import static org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants.JBOSSTOOLS_TMP;
+import static
org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants.JBOSS_WEB_DEFAULT_PORT;
+import static
org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants.JNDI_DEFAULT_PORT;
+import static org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants.JNDI_PORT;
+import static
org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants.JNDI_PORT_DEFAULT_XPATH;
+import static
org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants.JNDI_PORT_DETECT;
+import static
org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants.JNDI_PORT_DETECT_XPATH;
+import static org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants.SERVER_AS_50;
+import static org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants.SERVER_PASSWORD;
+import static org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants.SERVER_USERNAME;
+import static org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants.TEMP_DEPLOY;
+import static org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants.TMP;
+import static org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants.WEB_PORT;
+import static
org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants.WEB_PORT_DEFAULT_XPATH;
+import static org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants.WEB_PORT_DETECT;
+import static
org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants.WEB_PORT_DETECT_XPATH;
+
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Date;
@@ -27,10 +45,8 @@
import org.jboss.ide.eclipse.as.core.extensions.descriptors.XPathQuery;
import org.jboss.ide.eclipse.as.core.publishers.LocalPublishMethod;
import org.jboss.ide.eclipse.as.core.server.IDeployableServer;
-import org.jboss.ide.eclipse.as.core.server.IJBossServerConstants;
import org.jboss.ide.eclipse.as.core.server.IJBossServerPublishMethodType;
import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime;
-import org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants;
import org.jboss.ide.eclipse.as.core.util.ServerUtil;
/**
@@ -39,7 +55,7 @@
*
*/
public class JBossServer extends DeployableServer
- implements IJBossServerConstants, IDeployableServer, IURLProvider {
+ implements IDeployableServer, IURLProvider {
public void setDefaults(IProgressMonitor monitor) {
super.setDefaults(monitor);
@@ -51,7 +67,7 @@
}
private boolean isAS50() {
- return
getServer().getServerType().getRuntimeType().getId().equals(IJBossToolingConstants.SERVER_AS_50);
+ return getServer().getServerType().getRuntimeType().getId().equals(SERVER_AS_50);
}
public String getHost() {
@@ -100,12 +116,12 @@
}
if( type.equals(DEPLOY_METADATA)) {
return JBossServerCorePlugin.getServerStateLocation(server).
- append(IJBossServerConstants.DEPLOY).makeAbsolute().toString();
+ append(DEPLOY).makeAbsolute().toString();
} else if( type.equals(DEPLOY_SERVER)) {
String loc = jbsrt.getConfigLocation();
String config = jbsrt.getJBossConfiguration();
IPath p = new Path(loc).append(config)
- .append(IJBossServerConstants.DEPLOY);
+ .append(DEPLOY);
return ServerUtil.makeGlobal(jbsrt.getRuntime(), p).toString();
}
return null;
@@ -124,13 +140,13 @@
new Path(server.getAttribute(TEMP_DEPLOY_DIRECTORY, ""))).toString();
//$NON-NLS-1$
if( type.equals(DEPLOY_METADATA)) {
return JBossServerCorePlugin.getServerStateLocation(server).
- append(IJBossServerConstants.TEMP_DEPLOY).makeAbsolute().toString();
+ append(TEMP_DEPLOY).makeAbsolute().toString();
} else if( type.equals(DEPLOY_SERVER)) {
String loc = jbsrt.getConfigLocation();
String config = jbsrt.getJBossConfiguration();
IPath p = new Path(loc)
- .append(config).append(IJBossServerConstants.TMP)
- .append(IJBossServerConstants.JBOSSTOOLS_TMP);
+ .append(config).append(TMP)
+ .append(JBOSSTOOLS_TMP);
return ServerUtil.makeGlobal(jbsrt.getRuntime(), p).toString();
}
return null;
Show replies by date