Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SUREFIRE-1909] Replace --add-exports with --add-opens #461

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -183,7 +183,7 @@ File createArgsFile( @Nonnull String moduleName, @Nonnull List<String> modulePat

for ( String pkg : packages )
{
args.append( "--add-exports" )
args.append( "--add-opens" )
.append( NL )
.append( moduleName )
.append( '/' )
Expand Down
Expand Up @@ -116,7 +116,7 @@ public void shouldCreateModularArgsFile() throws Exception
.isEqualTo( "abc=\"" + replace( patchFile.getPath(), "\\", "\\\\" ) + "\"" );

assertThat( argsFileLines.get( 6 ) )
.isEqualTo( "--add-exports" );
.isEqualTo( "--add-opens" );

assertThat( argsFileLines.get( 7 ) )
.isEqualTo( "abc/org.apache.abc=ALL-UNNAMED" );
Expand Down