File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
java-compiler-testing/src/main/java/io/github/ascopes/jct/workspaces Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -42,12 +42,16 @@ public interface PathRoot {
4242 /**
4343 * Convert the given path root into a JAR and return the byte contents of the JAR.
4444 *
45+ * <p>You can use this to create JAR files from existing path roots, if you want to package
46+ * some compiled outputs into a JAR to use them as inputs to another build.
47+ *
4548 * @return the byte contents of the JAR.
4649 * @throws UncheckedIOException if the JAR cannot be created.
4750 * @since 0.4.0
4851 */
4952 @ API (since = "0.4.0" , status = Status .STABLE )
5053 default byte [] asJar () {
54+ // TODO(ascopes): move this to impl level before 1.0.0 ideally.
5155 return uncheckedIo (() -> {
5256 try (var baos = new ByteArrayOutputStream ()) {
5357 JarFactoryImpl .getInstance ().createJarFrom (baos , getPath ());
You can’t perform that action at this time.
0 commit comments