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