public static class CIOptions.Builder
extends java.lang.Object
implements java.io.Serializable
Integrator
classes.
Obtain a set of CIOptions using the static factory method: CIOptions.newDefaults().Constructor and Description |
---|
Builder()
Creates a brand new CIOptionsBuilder with default values.
|
Modifier and Type | Method and Description |
---|---|
CIOptions |
build() |
CIOptions.Builder |
fullClean(boolean fullClean) |
CIOptions.Builder |
historical(boolean historical) |
CIOptions.Builder |
historyDir(java.io.File historyDir)
Use the given history directory to store Clover artifacts which are needed by Clover between builds.
|
CIOptions.Builder |
html(boolean html) |
CIOptions.Builder |
json(boolean json) |
CIOptions.Builder |
license(java.io.File license)
Use the given Clover license Path for the build.
|
CIOptions.Builder |
licenseCert(java.lang.String licenseCert)
Use the given Clover license String for the build.
|
CIOptions.Builder |
optimize(boolean optimize)
Whether or not to optimize tests.
|
CIOptions.Builder |
pdf(boolean pdf) |
CIOptions.Builder |
putValuesInQuotes(boolean inQuotes)
Applicable for AntIntegrator only.
|
java.lang.String |
toString() |
CIOptions.Builder |
xml(boolean xml) |
public Builder()
public CIOptions.Builder optimize(boolean optimize)
optimize
- true if tests should be optimized using Clover's test optimizationpublic CIOptions.Builder html(boolean html)
public CIOptions.Builder json(boolean json)
public CIOptions.Builder pdf(boolean pdf)
public CIOptions.Builder xml(boolean xml)
public CIOptions.Builder historical(boolean historical)
public CIOptions.Builder licenseCert(java.lang.String licenseCert)
licenseCert
- the license cert (including newline chars) to usepublic CIOptions.Builder license(java.io.File license)
license
- a file representing the clover licensepublic CIOptions.Builder historyDir(java.io.File historyDir)
historyDir
- a directory to store Clover data between builds.public CIOptions.Builder fullClean(boolean fullClean)
fullClean
- true if all previous clover data (excluding the historydir) should be removed before running
the build.public CIOptions.Builder putValuesInQuotes(boolean inQuotes)
Applicable for AntIntegrator only.
If set to true
then some of Clover's properties will be put in double quotes. This is to
solve a problem with properties containing whitespace characters. Ant prior to version 1.9.7 passes
arguments to the JVM process incorrectly on non-Windows operating systems - for example "[-Da=b c][-De=f]"
may be passed as "[-Da=b] [c] [-De=f]".
Set this value to true
if the following conditions are met:
Double quotes will not be added on Windows platform, even if the property is set to true
.
Ant since version 1.9.7 passes arguments with spaces correctly therefore do not set this parameter to
true
, otherwise you'll end up with values containing double quotes.
inQuotes
- true
- put values in double quotes, false
- put values as ispublic CIOptions build()
public java.lang.String toString()
toString
in class java.lang.Object