Skip to content

Commit

Permalink
Issue codehaus-plexus#147: Support module-path for ECJ
Browse files Browse the repository at this point in the history
Simply add the path from the CompilerConfiguration to the command-line
arguments.
  • Loading branch information
tomaswolf committed Nov 14, 2021
1 parent f410363 commit 4267252
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,13 @@ public CompilerResult performCompile( CompilerConfiguration config )
args.add( "-classpath" );
args.add( getPathString( classpathEntries ) );

List<String> modulepathEntries = config.getModulepathEntries();
if ( modulepathEntries != null && !modulepathEntries.isEmpty() )
{
args.add( "--module-path" );
args.add( getPathString( modulepathEntries ) );
}

// Collect sources
List<String> allSources = new ArrayList<>();
for ( String source : config.getSourceLocations() )
Expand Down

0 comments on commit 4267252

Please sign in to comment.