Skip to content

Commit

Permalink
[hotfix][tests][e2e] Delete empty plugin directory after moving jar
Browse files Browse the repository at this point in the history
  • Loading branch information
zentol committed May 27, 2020
1 parent 79a5614 commit dcf4cd3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ public void performJarOperation(JarOperation operation) throws IOException {
break;
case MOVE:
Files.move(sourceJar, targetJar);
if (operation.getSource() == JarLocation.PLUGINS) {
// plugin system crashes on startup if a plugin directory is empty
Files.delete(sourceJar.getParent());
}
break;
default:
throw new IllegalStateException();
Expand Down

0 comments on commit dcf4cd3

Please sign in to comment.