Skip to content

Commit fb42517

Browse files
committed
resolves #1, don't crash if the target directory does not exist
1 parent a3fa3a2 commit fb42517

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/io/openapiprocessor/maven/UpToDateCheck.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ private String[] scanInput (File source) {
5252
}
5353

5454
private String[] scanOutput (File output) {
55+
if (!output.exists ()) {
56+
return new String[0];
57+
}
58+
5559
DirectoryScanner targetScanner = new DirectoryScanner ();
5660
targetScanner.setBasedir (output);
5761
targetScanner.setIncludes ("**/*", "**/*");

0 commit comments

Comments
 (0)