- All Implemented Interfaces:
Cloneable
SeoJavadocFilter.filterJavadocJar(java.io.File, java.lang.String, java.lang.Iterable, java.lang.Iterable).
Note: This task should be performed before ZipTimestampMergeTask in order to have correct content to be able
to maintain timestamps.
- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()CallsSeoJavadocFilter.filterJavadocJar(java.io.File, java.lang.String, java.lang.Iterable, java.lang.Iterable)for each file insetBuildDirectory(java.lang.String)that matchesjavadocJarFilterwhile logging toTask.log(java.lang.String, int).voidsetBuildDirectory(String buildDirectory) The current build directory.voidThe comma/whitespace separated list of URL prefixes (case-insensitive) to not set asrel="nofollow".voidsetNofollow(String nofollow) The comma/whitespace separated list of URL prefixes (case-insensitive) to set asrel="nofollow".voidsetProjectUrl(String projectUrl) The project url.voidsetSubprojectSubpath(String subprojectSubpath) The sub-project sub-path used in the url.Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
SeoJavadocFilterTask
public SeoJavadocFilterTask()
-
-
Method Details
-
setBuildDirectory
The current build directory. Must exist and be a directory.Each file ending with
""-javadoc.jar""(case-insensitive) will be processed.Each file is a Javadoc JAR file to filter and must be a regular file.
-
setProjectUrl
The project url. The apidocs URLs will be based on this, depending on artifact classifier. Ending in"*-test-javadoc.jar"will be"${projectUrl}${subprojectSubpath}test/apidocs/". Otherwise will be"${projectUrl}${subprojectSubpath}apidocs/"- See Also:
-
setSubprojectSubpath
The sub-project sub-path used in the url.- See Also:
-
setNofollow
The comma/whitespace separated list of URL prefixes (case-insensitive) to set asrel="nofollow". May useSeoJavadocFilter.ANY_URLto match all. Nofollow are matched before follow.If starts with a slash
'/', will also set the prefix-matched Javadocs pages to robots "noindex, nofollow".If no match is found in either nofollow or follow, the filtering will throw an exception. This can be useful for those who want to ensure every URL is considered.
May use word "default" in list to add default entries in addition to your own. May use word "javase" to exclude Java SE. May use word "javaee" or "jakartaee" to exclude both Java EE and Jakarta EE.
Defaults to exclude Java SE, Java EE, and Jakarta EE apidocs.
-
setFollow
The comma/whitespace separated list of URL prefixes (case-insensitive) to not set asrel="nofollow". May useSeoJavadocFilter.ANY_URLto match all. Follow are matched after nofollow.If no match is found in either nofollow or follow, the filtering will throw an exception. This can be useful for those who want to ensure every URL is considered.
May use word "javase" to include Java SE. May use word "javaee" or "jakartaee" to include both Java EE and Jakarta EE.
Defaults to
""*""(all). -
execute
CallsSeoJavadocFilter.filterJavadocJar(java.io.File, java.lang.String, java.lang.Iterable, java.lang.Iterable)for each file insetBuildDirectory(java.lang.String)that matchesjavadocJarFilterwhile logging toTask.log(java.lang.String, int).- Overrides:
executein classTask- Throws:
BuildException
-
