Skip to content

Commit 5925e3d

Browse files
committed
providerJpmsArguments are already controlled by isMainDescriptor in ProviderInfo
1 parent 6237868 commit 5925e3d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ModularClasspathForkConfiguration.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -207,21 +207,21 @@ File createArgsFile( @Nonnull String moduleName, @Nonnull List<String> modulePat
207207
}
208208
else
209209
{
210-
for ( String[] entries : providerJpmsArguments )
211-
{
212-
for ( String entry : entries )
213-
{
214-
args.append( entry )
215-
.append( NL );
216-
}
217-
}
218-
219210
args.append( "--add-modules" )
220211
.append( NL )
221212
.append( moduleName )
222213
.append( NL );
223214
}
224215

216+
for ( String[] entries : providerJpmsArguments )
217+
{
218+
for ( String entry : entries )
219+
{
220+
args.append( entry )
221+
.append( NL );
222+
}
223+
}
224+
225225
args.append( startClassName );
226226

227227
String argsFileContent = args.toString();

0 commit comments

Comments
 (0)