File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
private/tools/java/com/github/bazelbuild/rules_jvm_external/jar Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,6 @@ public static void main(String[] args) throws IOException {
102102 }
103103 }
104104
105- Objects .requireNonNull (out , "Output path must be set." );
106105 if (packaging == Packaging .AAR ) {
107106 aarSource = sources .stream ()
108107 .filter (source -> aarMatcher .matches (source .getFileName ()))
@@ -121,7 +120,10 @@ public static void main(String[] args) throws IOException {
121120 }
122121 }
123122 sources .add (aarClassesJar );
124- } else if (sources .isEmpty ()) {
123+ }
124+
125+ Objects .requireNonNull (out , "Output path must be set." );
126+ if (sources .isEmpty ()) {
125127 // Just write an empty jar and leave
126128 try (OutputStream fos = Files .newOutputStream (out );
127129 JarOutputStream jos = new JarOutputStream (fos )) {
You can’t perform that action at this time.
0 commit comments