Package rife.bld.extension
Class JacocoReportOperation
java.lang.Object
rife.bld.operations.AbstractOperation<JacocoReportOperation>
rife.bld.extension.JacocoReportOperation
Generates JaCoCo reports.
- Since:
- 1.0
- Author:
- Erik C. Thauvin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the locations of Java class files.classFiles
(File... classFiles) Sets the locations of Java class files.classFiles
(String... classFiles) Sets the locations of Java class files.classFiles
(Path... classFiles) Sets the locations of Java class files.classFiles
(Collection<File> classFiles) Sets the locations of Java class files.classFilesPaths
(Collection<Path> classFiles) Sets the locations of Java class files.classFilesStrings
(Collection<String> classFiles) Sets the locations of Java class files.csv()
Returns the CSV report location.Sets the location of the CSV report.Sets the location of the CSV report.Sets the location of the CSV report.destFile()
Returns the file to write execution data to.Sets the file to write execution data to.Sets the file to write execution data to.Sets the file to write execution data to.encoding()
Returns the source file encoding.Sets the source file encoding.Returns the locations of the JaCoCo *.exec files to read.Sets the locations of the JaCoCo *.exec files to read.Sets the locations of the JaCoCo *.exec files to read.Sets the locations of the JaCoCo *.exec files to read.execFiles
(Collection<File> execFiles) Sets the locations of the JaCoCo *.exec files to read.execFilesPaths
(Collection<Path> execFiles) Sets the locations of the JaCoCo *.exec files to read.execFilesStrings
(Collection<String> execFiles) Sets the locations of the JaCoCo *.exec files to read.void
execute()
Performs the operation execution that can be wrapped by the#executeOnce
call.fromProject
(BaseProject project) Configure the operation from aBaseProject
.html()
Returns the HTML report location.Sets the location of the HTML report.Sets the location of the HTML report.Sets the location of the HTML report.boolean
isQuiet()
Return the status of the quiet flag.name()
Returns the name used for the report.Sets the name used for the report.quiet
(boolean quiet) Suppresses all output.Returns the locations of the source files.sourceFiles
(File... sourceFiles) Sets the locations of the source files.sourceFiles
(String... sourceFiles) Sets the locations of the source files.sourceFiles
(Path... sourceFiles) Sets the locations of the source files.sourceFiles
(Collection<File> sourceFiles) Sets the locations of the source files.sourceFilesPaths
(Collection<Path> sourceFiles) Sets the locations of the source files.sourceFilesStrings
(Collection<String> sourceFiles) Sets the locations of the source files.int
tabWidth()
Returns the tab stop width for the source pages.tabWidth
(int tabWidth) Sets the tab stop width for the source pages.Returns the test tool options.testToolOptions
(String... options) Sets the test tool options.testToolOptions
(Collection<String> options) Sets the test tool options.xml()
Returns the XML report location.Sets the location of the XML report.Sets the location of the XML report.Sets the location of the XML report.Methods inherited from class rife.bld.operations.AbstractOperation
executeOnce, executeOnce, silent, silent
-
Constructor Details
-
JacocoReportOperation
public JacocoReportOperation()
-
-
Method Details
-
classFiles
Sets the locations of Java class files.- Parameters:
classFiles
- the class files- Returns:
- this operation instance
- See Also:
-
classFiles
Sets the locations of Java class files.- Parameters:
classFiles
- the class files- Returns:
- this operation instance
- See Also:
-
classFiles
Sets the locations of Java class files.- Parameters:
classFiles
- the class files- Returns:
- this operation instance
- See Also:
-
classFiles
Returns the locations of Java class files.- Returns:
- the class files
-
classFiles
Sets the locations of Java class files.- Parameters:
classFiles
- the class files- Returns:
- this operation instance
- See Also:
-
classFilesPaths
Sets the locations of Java class files.- Parameters:
classFiles
- the class files- Returns:
- this operation instance
- See Also:
-
classFilesStrings
Sets the locations of Java class files.- Parameters:
classFiles
- the class files- Returns:
- this operation instance
- See Also:
-
csv
Sets the location of the CSV report.- Parameters:
csv
- the report location- Returns:
- this operation instance
-
csv
Sets the location of the CSV report.- Parameters:
csv
- the report location- Returns:
- this operation instance
-
csv
Sets the location of the CSV report.- Parameters:
csv
- the report location- Returns:
- this operation instance
-
csv
Returns the CSV report location.- Returns:
- the CSV report location
-
destFile
Sets the file to write execution data to.- Parameters:
destFile
- the file- Returns:
- this operation instance
-
destFile
Sets the file to write execution data to.- Parameters:
destFile
- the file- Returns:
- this operation instance
-
destFile
Sets the file to write execution data to.- Parameters:
destFile
- the file- Returns:
- this operation instance
-
destFile
Returns the file to write execution data to.- Returns:
- the file to write execution data to
-
encoding
Sets the source file encoding. The platform encoding is used by default.- Parameters:
encoding
- the encoding- Returns:
- this operation instance
-
encoding
Returns the source file encoding.- Returns:
- the source file encoding
-
execFiles
Sets the locations of the JaCoCo *.exec files to read.- Parameters:
execFiles
- the exec files- Returns:
- this operation instance
- See Also:
-
execFiles
Sets the locations of the JaCoCo *.exec files to read.- Parameters:
execFiles
- the exec files- Returns:
- this operation instance
- See Also:
-
execFiles
Sets the locations of the JaCoCo *.exec files to read.- Parameters:
execFiles
- the exec files- Returns:
- this operation instance
- See Also:
-
execFiles
Sets the locations of the JaCoCo *.exec files to read.- Parameters:
execFiles
- the exec files- Returns:
- this operation instance
- See Also:
-
execFiles
Returns the locations of the JaCoCo *.exec files to read.- Returns:
- the exec files
-
execFilesPaths
Sets the locations of the JaCoCo *.exec files to read.- Parameters:
execFiles
- the exec files- Returns:
- this operation instance
- See Also:
-
execFilesStrings
Sets the locations of the JaCoCo *.exec files to read.- Parameters:
execFiles
- the exec files- Returns:
- this operation instance
- See Also:
-
execute
Performs the operation execution that can be wrapped by the#executeOnce
call.- Specified by:
execute
in classAbstractOperation<JacocoReportOperation>
- Throws:
Exception
-
fromProject
Configure the operation from aBaseProject
.- Parameters:
project
- the project- Returns:
- this operation instance
-
html
Sets the location of the HTML report.- Parameters:
html
- the HTML- Returns:
- this operation instance
-
html
Sets the location of the HTML report.- Parameters:
html
- the HTML- Returns:
- this operation instance
-
html
Sets the location of the HTML report.- Parameters:
html
- the HTML- Returns:
- this operation instance
-
html
Returns the HTML report location.- Returns:
- the HTML report location
-
isQuiet
public boolean isQuiet()Return the status of the quiet flag.- Returns:
true
if enabled,false
otherwise
-
name
Sets the name used for the report.- Parameters:
name
- the name- Returns:
- this operation instance
-
name
Returns the name used for the report.- Returns:
- the report name.
-
quiet
Suppresses all output.- Parameters:
quiet
-true
orfalse
- Returns:
- this operation instance
-
sourceFiles
Sets the locations of the source files. (e.g.,src/main/java
)- Parameters:
sourceFiles
- the source files- Returns:
- this operation instance
- See Also:
-
sourceFiles
Sets the locations of the source files. (e.g.,src/main/java
)- Parameters:
sourceFiles
- the source files- Returns:
- this operation instance
- See Also:
-
sourceFiles
Sets the locations of the source files. (e.g.,src/main/java
)- Parameters:
sourceFiles
- the source files- Returns:
- this operation instance
- See Also:
-
sourceFiles
Sets the locations of the source files. (e.g.,src/main/java
)- Parameters:
sourceFiles
- the source files- Returns:
- this operation instance
- See Also:
-
sourceFiles
Returns the locations of the source files.- Returns:
- the source files
-
sourceFilesPaths
Sets the locations of the source files. (e.g.,src/main/java
)- Parameters:
sourceFiles
- the source files- Returns:
- this operation instance
- See Also:
-
sourceFilesStrings
Sets the locations of the source files. (e.g.,src/main/java
)- Parameters:
sourceFiles
- the source files- Returns:
- this operation instance
- See Also:
-
tabWidth
Sets the tab stop width for the source pages. Default is4
.- Parameters:
tabWidth
- the tab width- Returns:
- this operation instance
-
tabWidth
public int tabWidth()Returns the tab stop width for the source pages.- Returns:
- the tab stop width
-
testToolOptions
Returns the test tool options.- Returns:
- the test tool options
-
testToolOptions
Sets the test tool options.- Parameters:
options
- The options to set- Returns:
- this operation instance
- See Also:
-
testToolOptions
Sets the test tool options.- Parameters:
options
- The options to set- Returns:
- this operation instance
- See Also:
-
xml
Sets the location of the XML report.- Parameters:
xml
- the report location- Returns:
- this operation instance
-
xml
Sets the location of the XML report.- Parameters:
xml
- the report location- Returns:
- this operation instance
-
xml
Sets the location of the XML report.- Parameters:
xml
- the report location- Returns:
- this operation instance
-
xml
Returns the XML report location.- Returns:
- the XML report location
-