org.gradle.external.javadoc.MinimalJavadocOptions Java Examples
The following examples show how to use
org.gradle.external.javadoc.MinimalJavadocOptions.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DocletPlugin.java From crnk-framework with Apache License 2.0 | 6 votes |
@Override public void apply(final Project project) { Configuration config = project.getConfigurations().create("crnkJavaDocToXml"); project.getDependencies().add("crnkJavaDocToXml", "com.github.markusbernhardt:xml-doclet:1.0.5"); Javadoc task = project.getTasks().create(TASK_NAME, Javadoc.class); task.setTitle(null); task.setDestinationDir(new File(project.getBuildDir(), "crnk-xml-docs")); MinimalJavadocOptions options = task.getOptions(); options.setDoclet("com.github.markusbernhardt.xmldoclet.XmlDoclet"); options.setMemberLevel(JavadocMemberLevel.PRIVATE); options.setDocletpath(new ArrayList<>(config.getFiles())); SourceSetContainer sourceSets = (SourceSetContainer) project.getProperties().get("sourceSets"); SourceSet mainSourceSet = sourceSets.getByName("main"); task.source(mainSourceSet.getAllJava()); task.setClasspath(mainSourceSet.getCompileClasspath()); }
Example #2
Source File: ResolveJavadocLinks.java From gradle-plugins with MIT License | 5 votes |
private void addLink(String link) { MinimalJavadocOptions options = javadoc.getOptions(); if (options instanceof StandardJavadocDocletOptions) { StandardJavadocDocletOptions docletOptions = (StandardJavadocDocletOptions) options; List<String> links = docletOptions.getLinks(); if (links == null || !links.contains(link)) { logger.debug("Adding '{}' to {}", link, javadoc); docletOptions.links(link); } else { logger.info("Not adding '{}' to {} because it's already present", link, javadoc); } } }
Example #3
Source File: ResolveJavadocLinks.java From gradle-plugins with MIT License | 5 votes |
private void addLink(String link) { MinimalJavadocOptions options = javadoc.getOptions(); if (options instanceof StandardJavadocDocletOptions) { StandardJavadocDocletOptions docletOptions = (StandardJavadocDocletOptions) options; List<String> links = docletOptions.getLinks(); if (links == null || !links.contains(link)) { logger.debug("Adding '{}' to {}", link, javadoc); docletOptions.links(link); } else { logger.info("Not adding '{}' to {} because it's already present", link, javadoc); } } }
Example #4
Source File: JavadocSpec.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public void setOptions(MinimalJavadocOptions options) { this.options = options; }
Example #5
Source File: JavadocSpec.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public MinimalJavadocOptions getOptions() { return options; }
Example #6
Source File: JavadocSpec.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public void setOptions(MinimalJavadocOptions options) { this.options = options; }
Example #7
Source File: JavadocSpec.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public MinimalJavadocOptions getOptions() { return options; }
Example #8
Source File: Javadoc.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the Javadoc generation options. * * @return The options. Never returns null. */ @Nested public MinimalJavadocOptions getOptions() { return options; }
Example #9
Source File: Javadoc.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Sets the Javadoc generation options. * * @param options The options. Must not be null. */ public void setOptions(MinimalJavadocOptions options) { this.options = options; }
Example #10
Source File: Javadoc.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the Javadoc generation options. * * @return The options. Never returns null. */ @Nested public MinimalJavadocOptions getOptions() { return options; }
Example #11
Source File: Javadoc.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Sets the Javadoc generation options. * * @param options The options. Must not be null. */ public void setOptions(MinimalJavadocOptions options) { this.options = options; }
Example #12
Source File: Javadoc.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the Javadoc generation options. * * @return The options. Never returns null. */ @Nested public MinimalJavadocOptions getOptions() { return options; }
Example #13
Source File: Javadoc.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Sets the Javadoc generation options. * * @param options The options. Must not be null. */ public void setOptions(MinimalJavadocOptions options) { this.options = options; }
Example #14
Source File: Javadoc.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the Javadoc generation options. * * @return The options. Never returns null. */ @Nested public MinimalJavadocOptions getOptions() { return options; }
Example #15
Source File: Javadoc.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Sets the Javadoc generation options. * * @param options The options. Must not be null. */ public void setOptions(MinimalJavadocOptions options) { this.options = options; }