Skip to content

Commit 4267252

Browse files
committed
Issue #147: Support module-path for ECJ
Simply add the path from the CompilerConfiguration to the command-line arguments.
1 parent f410363 commit 4267252

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

plexus-compilers/plexus-compiler-eclipse/src/main/java/org/codehaus/plexus/compiler/eclipse/EclipseJavaCompiler.java

+7
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,13 @@ public CompilerResult performCompile( CompilerConfiguration config )
229229
args.add( "-classpath" );
230230
args.add( getPathString( classpathEntries ) );
231231

232+
List<String> modulepathEntries = config.getModulepathEntries();
233+
if ( modulepathEntries != null && !modulepathEntries.isEmpty() )
234+
{
235+
args.add( "--module-path" );
236+
args.add( getPathString( modulepathEntries ) );
237+
}
238+
232239
// Collect sources
233240
List<String> allSources = new ArrayList<>();
234241
for ( String source : config.getSourceLocations() )

0 commit comments

Comments
 (0)