本文整理了Java中org.gradle.api.tasks.javadoc.Javadoc.getClasspath()
方法的一些代码示例,展示了Javadoc.getClasspath()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Javadoc.getClasspath()
方法的具体详情如下:
包路径:org.gradle.api.tasks.javadoc.Javadoc
类名称:Javadoc
方法名:getClasspath
暂无
代码示例来源:origin: gradle.plugin.org.javamodularity/moduleplugin
public void configureJavaDoc(Project project) {
Javadoc javadoc = (Javadoc) project.getTasks().findByName(JavaPlugin.JAVADOC_TASK_NAME);
if (javadoc != null) {
javadoc.getExtensions().create("moduleOptions", ModuleOptions.class, project);
javadoc.doFirst(task -> {
ModuleOptions moduleOptions = javadoc.getExtensions().getByType(ModuleOptions.class);
CoreJavadocOptions options = (CoreJavadocOptions) javadoc.getOptions();
options.addStringOption("-module-path", javadoc.getClasspath().getAsPath());
if(!moduleOptions.getAddModules().isEmpty()) {
String addModules = String.join(",", moduleOptions.getAddModules());
options.addStringOption("-add-module", addModules);
}
javadoc.setClasspath(project.files());
});
}
}
}
代码示例来源:origin: gradle.plugin.rgoldberg/java-modules
private void configureJavadocTask(final Javadoc javadoc, final ImmutableSet<String> moduleNameIset) {
setModuleNamesInputProperty(javadoc, moduleNameIset);
javadoc.doFirst(task -> {
final FileCollection classpath = javadoc.getClasspath();
if (! classpath.isEmpty()) {
((CoreJavadocOptions) javadoc.getOptions()).addStringOption(JAVADOC_TASK_OPTION_MODULE_PATH, classpath.getAsPath());
javadoc.setClasspath(javadoc.getProject().files());
}
});
}
代码示例来源:origin: gradle.plugin.com.liferay/gradle-plugins-app-javadoc-builder
FileCollection classpath = javadoc.getClasspath();
javadoc.setClasspath(classpath.plus(subprojectJavadoc.getClasspath()));
内容来源于网络,如有侵权,请联系作者删除!