Skip to content

Commit

Permalink
Rephrase Non-mutable jar error message for remote-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
rjtmahinay committed Jun 22, 2023
1 parent ae7a5cf commit bdc007c
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ private synchronized JarResult generateApplication() {
AugmentResult start = augmentAction.createProductionApplication();
if (!start.getJar().getType().equalsIgnoreCase(PackageConfig.BuiltInType.MUTABLE_JAR.getValue())) {
throw new RuntimeException(
"remote-dev can only be used with mutable applications generated with the fast-jar format");
"remote-dev can only be used with mutable applications i.e, " +
"using the mutable-jar package type");
}
//now extract the artifacts, to mirror the remote side
DevModeTask.extractDevModeClasses(start.getJar().getPath().getParent(),
Expand Down Expand Up @@ -133,11 +134,11 @@ public void accept(DevModeContext.ModuleInfo moduleInfo, String s) {
copiedStaticResources.computeIfAbsent(moduleInfo, ss -> new HashSet<>()).add(s);
}
}, new BiFunction<String, byte[], byte[]>() {
@Override
public byte[] apply(String s, byte[] bytes) {
return ClassTransformingBuildStep.transform(s, bytes);
}
}, null);
@Override
public byte[] apply(String s, byte[] bytes) {
return ClassTransformingBuildStep.transform(s, bytes);
}
}, null);

for (HotReplacementSetup service : ServiceLoader.load(HotReplacementSetup.class,
curatedApplication.getBaseRuntimeClassLoader())) {
Expand Down

0 comments on commit bdc007c

Please sign in to comment.