Skip to content

Commit

Permalink
[eclipse] Add a checkbox for printed out the launching arguments on t…
Browse files Browse the repository at this point in the history
…he Eclipse console.

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Dec 4, 2020
1 parent 6de37e2 commit 0033c14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Expand Up @@ -109,7 +109,7 @@ private ExamplesTestUtils() {
public static final String CURRENT_JAVA_VERSION = "1.8"; //$NON-NLS-1$

// TODO Remove this definition when moving to Java 9 or higher (because JavaFX is mavenized)
public static final String DEFAULT_JAVAFX_PATH = "/home/sgalland/git/sarl/contribs/io.sarl.examples/io.sarl.examples.tests/../../../build-tools/libs/jfxrt.jar"; //$NON-NLS-1$
public static final String DEFAULT_JAVAFX_PATH = "/home/sgalland/git/sarl.dsl/contribs/io.sarl.examples/io.sarl.examples.tests/../../../build-tools/libs/jfxrt.jar"; //$NON-NLS-1$

private static final String[] WIN_EXTS = {".COM", ".EXE", ".BAT", ".CMD"};

Expand Down
Expand Up @@ -370,6 +370,13 @@ protected final void readLaunchingArguments(IProgressMonitor monitor) throws Cor
MessageFormat.format(Messages.AbstractLaunchProcess_7, vmArgs));
}

if (own.getConfigurationAccessor().isLaunhcingParametersPrintedOut(this.configuration)) {
SARLEclipsePlugin.getDefault().getLog().info(
MessageFormat.format(Messages.AbstractLaunchProcess_6, pgmArgs));
SARLEclipsePlugin.getDefault().getLog().info(
MessageFormat.format(Messages.AbstractLaunchProcess_7, vmArgs));
}

setExecutionArguments(new ExecutionArguments(vmArgs, pgmArgs));

// VM-specific attributes
Expand Down

0 comments on commit 0033c14

Please sign in to comment.