mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
fix some typo regarding token macro in MAVEN_OPTS in maven plugin
This commit is contained in:
1 parent
d818cd9572
commit
951580fb18
2 files changed
+6
-4
No files matched your search
@@ -35,6 +35,7 @@ import hudson.Util;
|
||||
import hudson.maven.MavenBuild.ProxyImpl2;
|
||||
import hudson.maven.reporters.MavenFingerprinter;
|
||||
import hudson.maven.reporters.MavenMailer;
|
||||
import hudson.model.AbstractBuild;
|
||||
import hudson.model.AbstractProject;
|
||||
import hudson.model.Action;
|
||||
import hudson.model.Build;
|
||||
@@ -526,9 +527,9 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven
|
||||
String opts = project.getMavenOpts();
|
||||
if (opts == null ) return null;
|
||||
try {
|
||||
Class<?> clazz = Class.forName( "org.jenkinsci.plugins.tokenmacro.MacroEvaluationException" );
|
||||
Class<?> clazz = Class.forName( "org.jenkinsci.plugins.tokenmacro.TokenMacro" );
|
||||
Method expandMethod =
|
||||
ReflectionUtils.findMethod(clazz, "expand", new Class[]{ this.getClass(), listener.getClass(), String.class} );
|
||||
ReflectionUtils.findMethod(clazz, "expand", new Class[]{ AbstractBuild.class, TaskListener.class, String.class} );
|
||||
opts = (String) expandMethod.invoke( null, this, listener, opts );
|
||||
//opts = TokenMacro.expand(this, listener, opts);
|
||||
//} catch (MacroEvaluationException e) {
|
||||
|
||||
Reference in new issue
Block a user