Class AbstractJavaDoc
java.lang.Object
build.spin.module.java.AbstractJavaDoc
- All Implemented Interfaces:
JavaCompilerPlugin.JavaDoc, build.spin.Task<Path>
- Direct Known Subclasses:
Java25CompilerPlugin.JavaDoc, Java8CompilerPlugin.JavaDoc
An abstract
Task that compiles and produces Java Documentation for the Java Source Code in a Project
using the Java Platform javadoc command.- Since:
- Mar-2021
- Author:
- brian.oliver
-
Nested Class Summary
Nested classes/interfaces inherited from interface build.spin.Task
build.spin.Task.Pattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Pathjavadoc(build.base.io.PathSet sourceCode, build.spawn.jdk.option.ModulePath modulePath, build.spawn.jdk.option.ClassPath classPath, Path buildPath, Optional<URL> javaPlatformURL) Compiles and produces Java Documentation from the source code in the providedPathSet, outputting it into the specified buildPath.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface build.spin.Task
dependencies, execute
-
Constructor Details
-
AbstractJavaDoc
public AbstractJavaDoc()
-
-
Method Details
-
javadoc
protected Path javadoc(build.base.io.PathSet sourceCode, build.spawn.jdk.option.ModulePath modulePath, build.spawn.jdk.option.ClassPath classPath, Path buildPath, Optional<URL> javaPlatformURL) throws Exception Compiles and produces Java Documentation from the source code in the providedPathSet, outputting it into the specified buildPath.- Parameters:
sourceCode- the source codemodulePath- theModulePath(empty for non-modular projects)classPath- theClassPathbuildPath- the buildPath(.build)javaPlatformURL- theOptionalURLfor the external Java Development Kit documentation- Returns:
- the
Pathcontaining the generated documentation - Throws:
Exception- should documentation fail
-