Skip to content

Commit

Permalink
fix(start): set the port when standalone server starts
Browse files Browse the repository at this point in the history
closes #106
  • Loading branch information
kevin-smets authored and cnishina committed Oct 24, 2016
1 parent 4b6f445 commit 7fbacf5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/cmds/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ function start(options: Options) {
args.push('-Djava.util.logging.config.file=' + loggingFile);
}

if (seleniumPort) {
args.push('-port', seleniumPort);
}
if (downloadedBinaries[ChromeDriver.id] != null) {
args.push(
'-Dwebdriver.chrome.driver=' +
Expand Down Expand Up @@ -176,6 +173,11 @@ function start(options: Options) {
args.push('-jar');
args.push(path.join(outputDir, binaries[StandAlone.id].filename()));

// Add the port parameter, has to declared after the jar file
if (seleniumPort) {
args.push('-port', seleniumPort);
}

let argsToString = '';
for (let arg in args) {
argsToString += ' ' + args[arg];
Expand Down

0 comments on commit 7fbacf5

Please sign in to comment.