From 293a46bbbd6ec7291dd8d11bca4b38f230ff9b49 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 6f6570fbb..59b347880 100644 --- a/src/main/java/org/codehaus/mojo/exec/ExecMojo.java +++ b/src/main/java/org/codehaus/mojo/exec/ExecMojo.java @@ -448,6 +448,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] );