Skip to content

Commit 2603721

Browse files
authored
Add winstone args (#864)
1 parent fbccb30 commit 2603721

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/org/jenkinsci/maven/plugins/hpi/RunMojo.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ public class RunMojo extends AbstractHpiMojo {
108108
defaultValue = "-Xms512M -Xmx1G -XX:+HeapDumpOnOutOfMemoryError @{jenkins.addOpens}")
109109
protected String jvmArgs;
110110

111+
/**
112+
* Arguments to pass to Winstone, e.g. --enable-future-java.
113+
*/
114+
@Parameter(property = "maven.hpi.winstoneArgs")
115+
protected String winstoneArgs;
116+
111117
@Inject
112118
private BuildPluginManager pluginManager;
113119

@@ -437,6 +443,10 @@ public void execute() throws MojoExecutionException, MojoFailureException {
437443
cmd.add("--prefix=" + prefix);
438444
}
439445

446+
if (winstoneArgs != null) {
447+
cmd.add(winstoneArgs);
448+
}
449+
440450
getLog().info("Launching Jenkins: " + String.join(" ", cmd));
441451

442452
ProcessBuilder pb = new ProcessBuilder(cmd);

0 commit comments

Comments
 (0)