Skip to content

Commit

Permalink
revert change to existing empty sources check
Browse files Browse the repository at this point in the history
  • Loading branch information
sugarmanz committed Jan 25, 2024
1 parent e5d29a1 commit 4868acf
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ public static void main(String[] args) throws IOException {
}
}

Objects.requireNonNull(out, "Output path must be set.");
if (packaging == Packaging.AAR) {
aarSource = sources.stream()
.filter(source -> aarMatcher.matches(source.getFileName()))
Expand All @@ -121,7 +120,10 @@ public static void main(String[] args) throws IOException {
}
}
sources.add(aarClassesJar);
} else if (sources.isEmpty()) {
}

Objects.requireNonNull(out, "Output path must be set.");
if (sources.isEmpty()) {
// Just write an empty jar and leave
try (OutputStream fos = Files.newOutputStream(out);
JarOutputStream jos = new JarOutputStream(fos)) {
Expand Down

0 comments on commit 4868acf

Please sign in to comment.