Merge branch '1.5.x'
This commit is contained in:
commit
7b846e0412
|
|
@ -78,8 +78,12 @@ public class Repackager {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Repackager(File source, LayoutFactory layoutFactory) {
|
public Repackager(File source, LayoutFactory layoutFactory) {
|
||||||
if (source == null || !source.exists() || !source.isFile()) {
|
if (source == null) {
|
||||||
throw new IllegalArgumentException("Source must refer to an existing file");
|
throw new IllegalArgumentException("Source file must be provided");
|
||||||
|
}
|
||||||
|
if (!source.exists() || !source.isFile()) {
|
||||||
|
throw new IllegalArgumentException("Source must refer to an existing file, "
|
||||||
|
+ "got " + source.getAbsolutePath());
|
||||||
}
|
}
|
||||||
this.source = source.getAbsoluteFile();
|
this.source = source.getAbsoluteFile();
|
||||||
this.layoutFactory = layoutFactory;
|
this.layoutFactory = layoutFactory;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue