Merge branch '2.3.x'

Closes gh-23001
This commit is contained in:
Phillip Webb
2020-08-18 16:49:12 -07:00
2 changed files with 20 additions and 0 deletions

View File

@@ -101,6 +101,7 @@ public class Repackager extends Packager {
public void repackage(File destination, Libraries libraries, LaunchScript launchScript, FileTime lastModifiedTime)
throws IOException {
Assert.isTrue(destination != null && !destination.isDirectory(), "Invalid destination");
getLayout(); // get layout early
if (lastModifiedTime != null && getLayout() instanceof War) {
throw new IllegalStateException("Reproducible repackaging is not supported with war packaging");
}