| org.netbeans.nbbuild.VerifyClassLinkage
VerifyClassLinkage | public class VerifyClassLinkage extends Task (Code) | | Verifies linkage between classes in a JAR (typically a module).
author: Jesse Glick See Also: "#71675" See Also: Class file spec |
Method Summary | |
public Path | createClasspath() Intended static classpath for this JAR. | public void | execute() | public void | setFailOnError(boolean failOnError) If true (default), halt build on error, rather than just
reporting a warning. | public void | setIgnores(String ignores) Sets the pattern for classes that are not verified. | public void | setJar(File jar) Specify the main JAR file. | public void | setMaxWarnings(int maxWarnings) Limit the number of warnings that will be generated in one task run. | public void | setWarnOnDefaultPackage(boolean warnOnDefaultPackage) If true (default), warn if any classes are found in the default
package. |
VerifyClassLinkage | public VerifyClassLinkage()(Code) | | |
createClasspath | public Path createClasspath()(Code) | | Intended static classpath for this JAR.
Any classes loaded in this JAR (and its Class-Path extensions)
must be linkable against this classpath plus the JAR (and extensions) itself.
|
execute | public void execute() throws BuildException(Code) | | |
setFailOnError | public void setFailOnError(boolean failOnError)(Code) | | If true (default), halt build on error, rather than just
reporting a warning.
|
setIgnores | public void setIgnores(String ignores)(Code) | | Sets the pattern for classes that are not verified.
Allows to skip linkage verification of some classes.
|
setJar | public void setJar(File jar)(Code) | | Specify the main JAR file.
Automatically searches in Class-Path extensions too.
|
setMaxWarnings | public void setMaxWarnings(int maxWarnings)(Code) | | Limit the number of warnings that will be generated in one task run.
If there are more warnings than this, they will not be reported.
|
setWarnOnDefaultPackage | public void setWarnOnDefaultPackage(boolean warnOnDefaultPackage)(Code) | | If true (default), warn if any classes are found in the default
package. Never halts the build even if
VerifyClassLinkage.setFailOnError true.
|
|
|