From 514fd1e62e67cdc41b518f9af6577a5e83c31507 Mon Sep 17 00:00:00 2001 From: Sabiq Ihab Date: Mon, 26 Feb 2018 00:07:34 +0000 Subject: [PATCH] fix : running modulepath commandline --- src/main/java/org/codehaus/mojo/exec/ExecMojo.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/codehaus/mojo/exec/ExecMojo.java b/src/main/java/org/codehaus/mojo/exec/ExecMojo.java index 557392e6..06c5fe1b 100644 --- a/src/main/java/org/codehaus/mojo/exec/ExecMojo.java +++ b/src/main/java/org/codehaus/mojo/exec/ExecMojo.java @@ -460,6 +460,10 @@ else if ( args[i].contains( CLASSPATH_TOKEN ) ) { commandArguments.add( args[i].replace( CLASSPATH_TOKEN, computeClasspathString( null ) ) ); } + else if ( args[i].contains( MODULEPATH_TOKEN ) ) + { + commandArguments.add( args[i].replace( MODULEPATH_TOKEN, computeClasspathString( null ) ) ); + } else { commandArguments.add( args[i] );