Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2014-01-28 16:07:15 +0000
committerMarkus Tiede2014-01-28 16:38:51 +0000
commitef952e007084d5796459800dd3962308e784a0c9 (patch)
treeb91cfeb85b3c4482a02d2d6a9059ac7aa80f29a7 /org.eclipse.jubula.app.autrun
parente9a5492356d2f18e4618e1103a0ecc061093b07f (diff)
downloadorg.eclipse.jubula.core-ef952e007084d5796459800dd3962308e784a0c9.tar.gz
org.eclipse.jubula.core-ef952e007084d5796459800dd3962308e784a0c9.tar.xz
org.eclipse.jubula.core-ef952e007084d5796459800dd3962308e784a0c9.zip
Sprint task - patch for enhancement http://eclip.se/385846 reviewed, modified and applied.
Diffstat (limited to 'org.eclipse.jubula.app.autrun')
-rw-r--r--org.eclipse.jubula.app.autrun/src/org/eclipse/jubula/app/autrun/AutRunApplication.java16
1 files changed, 6 insertions, 10 deletions
diff --git a/org.eclipse.jubula.app.autrun/src/org/eclipse/jubula/app/autrun/AutRunApplication.java b/org.eclipse.jubula.app.autrun/src/org/eclipse/jubula/app/autrun/AutRunApplication.java
index 8ddf92691..b5dfe4bae 100644
--- a/org.eclipse.jubula.app.autrun/src/org/eclipse/jubula/app/autrun/AutRunApplication.java
+++ b/org.eclipse.jubula.app.autrun/src/org/eclipse/jubula/app/autrun/AutRunApplication.java
@@ -30,6 +30,7 @@ import org.eclipse.equinox.app.IApplication;
import org.eclipse.equinox.app.IApplicationContext;
import org.eclipse.jubula.app.autrun.i18n.Messages;
import org.eclipse.jubula.tools.constants.AutConfigConstants;
+import org.eclipse.jubula.tools.constants.EnvConstants;
import org.eclipse.jubula.tools.constants.StringConstants;
import org.eclipse.jubula.tools.registration.AutIdentifier;
import org.eclipse.osgi.util.NLS;
@@ -81,12 +82,6 @@ public class AutRunApplication implements IApplication {
/** <code>DEFAULT_NAME_TECHNICAL_COMPONENTS</code> */
private static final boolean DEFAULT_NAME_TECHNICAL_COMPONENTS = true;
- /** <code>DEFAULT_AUT_AGENT_PORT</code> */
- private static final int DEFAULT_AUT_AGENT_PORT = 60000;
-
- /** <code>DEFAULT_AUT_AGENT_HOST</code> */
- private static final String DEFAULT_AUT_AGENT_HOST = "localhost"; //$NON-NLS-1$
-
// - Command line options - Start //
/** port number for the Aut Agent with which to register */
private static final String OPT_AUT_AGENT_PORT = "p"; //$NON-NLS-1$
@@ -235,13 +230,14 @@ public class AutRunApplication implements IApplication {
private static Options createCmdLineOptions() {
Options options = new Options();
Option autAgentHostOption = new Option(OPT_AUT_AGENT_HOST, true,
- NLS.bind(Messages.infoAutAgentHost, DEFAULT_AUT_AGENT_HOST));
+ NLS.bind(Messages.infoAutAgentHost, EnvConstants.LOCALHOST_ALIAS));
autAgentHostOption.setLongOpt(OPT_AUT_AGENT_HOST_LONG);
autAgentHostOption.setArgName(HOSTNAME);
options.addOption(autAgentHostOption);
Option autAgentPortOption = new Option(OPT_AUT_AGENT_PORT, true,
- NLS.bind(Messages.infoAutAgentPort, DEFAULT_AUT_AGENT_PORT));
+ NLS.bind(Messages.infoAutAgentPort,
+ EnvConstants.AUT_AGENT_DEFAULT_PORT));
autAgentPortOption.setLongOpt(OPT_AUT_AGENT_PORT_LONG);
autAgentPortOption.setArgName(PORT);
options.addOption(autAgentPortOption);
@@ -347,7 +343,7 @@ public class AutRunApplication implements IApplication {
toolkit = RCP_AUT_TOOLKIT_CLASS_PREFIX;
}
- int autAgentPort = DEFAULT_AUT_AGENT_PORT;
+ int autAgentPort = EnvConstants.AUT_AGENT_DEFAULT_PORT;
if (cmdLine.hasOption(OPT_AUT_AGENT_PORT)) {
try {
autAgentPort = Integer.parseInt(cmdLine
@@ -356,7 +352,7 @@ public class AutRunApplication implements IApplication {
// use default
}
}
- String autAgentHost = DEFAULT_AUT_AGENT_HOST;
+ String autAgentHost = EnvConstants.LOCALHOST_ALIAS;
if (cmdLine.hasOption(OPT_AUT_AGENT_HOST)) {
autAgentHost = cmdLine.getOptionValue(OPT_AUT_AGENT_HOST);
}

Back to the top