@@ -200,7 +200,7 @@ private JlinkTask(boolean isScratch) {
200
200
task .options .ignoreSigning = true ;
201
201
}, "--ignore-signing-information" ),
202
202
new Option <JlinkTask >(false , (task , opt , arg ) -> {
203
- task .options .runImageSingleHop = false ;
203
+ task .options .ignoreModifiedRuntime = true ;
204
204
}, true , "--ignore-modified-runtime" ),
205
205
};
206
206
@@ -243,7 +243,7 @@ static class OptionsValues {
243
243
boolean ignoreSigning = false ;
244
244
boolean bindServices = false ;
245
245
boolean suggestProviders = false ;
246
- boolean runImageSingleHop = true ;
246
+ boolean ignoreModifiedRuntime = false ;
247
247
}
248
248
249
249
public static final String OPTIONS_RESOURCE = "jdk/tools/jlink/internal/options" ;
@@ -426,7 +426,7 @@ private JlinkConfiguration initJlinkConfig() throws BadArgs {
426
426
roots ,
427
427
finder ,
428
428
options .modulePath .isEmpty (),
429
- options .runImageSingleHop );
429
+ options .ignoreModifiedRuntime );
430
430
}
431
431
432
432
private void createImage (JlinkConfiguration config ) throws Exception {
@@ -669,7 +669,7 @@ private static ImageHelper createImageProvider(JlinkConfiguration config,
669
669
.orElse (Runtime .version ());
670
670
671
671
Set <Archive > archives = mods .entrySet ().stream ()
672
- .map (e -> config .linkFromRuntimeImage () ? new JRTArchive (e .getKey (), e .getValue (), config .singleHop ())
672
+ .map (e -> config .linkFromRuntimeImage () ? new JRTArchive (e .getKey (), e .getValue (), ! config .ignoreModifiedRuntime ())
673
673
: newArchive (e .getKey (), e .getValue (), version , ignoreSigning ))
674
674
.collect (Collectors .toSet ());
675
675
0 commit comments