Skip to content

Commit

Permalink
Error message when re-augmenting non-mutable Quarkus application
Browse files Browse the repository at this point in the history
  • Loading branch information
rsvoboda committed Jul 19, 2023
1 parent e3f85a1 commit 7261ad0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ private static void doRun(Object args) throws IOException, ClassNotFoundExceptio

private static void doReaugment(Path appRoot) throws IOException, ClassNotFoundException, IllegalAccessException,
InvocationTargetException, NoSuchMethodException {
if (!Files.exists(appRoot.resolve(LIB_DEPLOYMENT_DEPLOYMENT_CLASS_PATH_DAT))) {
System.out.println("[ERROR] Re-augmentation was requested, " +
"but the application wasn't built with 'quarkus.package.type=mutable-jar'");
return;
}
try (ObjectInputStream in = new ObjectInputStream(
Files.newInputStream(appRoot.resolve(LIB_DEPLOYMENT_DEPLOYMENT_CLASS_PATH_DAT)))) {
List<String> paths = (List<String>) in.readObject();
Expand Down

0 comments on commit 7261ad0

Please sign in to comment.