Skip to content

Commit

Permalink
Added explicit stopServer call
Browse files Browse the repository at this point in the history
  • Loading branch information
cherylking committed Feb 20, 2024
1 parent 24ce4b0 commit 9866ab3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,8 @@ class DevTask extends AbstractFeatureTask {
// artifact that gets installed would be different. This can happen when using 'libertyRuntime' for example and
// only changing the 'version'. The 'installLiberty' task cannot detect that difference today and would report the task as upToDate.
// It only detects changes in install location currently. It would not be trivial to detect the other types of changes.
logger.error("A change in Liberty runtime installation configuration requires a 'clean'. Stopping dev mode.");
util.stopServer();
throw new PluginExecutionException("A change in Liberty runtime installation configuration requires a 'clean'. After running the 'clean' task, please run the 'libertyDev' task again for the change to take effect.");
}

Expand Down

0 comments on commit 9866ab3

Please sign in to comment.