Be more lenient when repackage is invoked several times
This commit makes the repackager more lenient when it is invoked several times in the same lifecycle. Closes gh-15034
This commit is contained in:
@@ -179,11 +179,11 @@ public class Repackager {
|
||||
if (this.layout == null) {
|
||||
this.layout = getLayoutFactory().getLayout(this.source);
|
||||
}
|
||||
if (alreadyRepackaged()) {
|
||||
return;
|
||||
}
|
||||
destination = destination.getAbsoluteFile();
|
||||
File workingSource = this.source;
|
||||
if (alreadyRepackaged() && this.source.equals(destination)) {
|
||||
return;
|
||||
}
|
||||
if (this.source.equals(destination)) {
|
||||
workingSource = getBackupFile();
|
||||
workingSource.delete();
|
||||
|
||||
Reference in New Issue
Block a user