public class DefaultFormatChoiceReport extends DefaultSingleFileReport implements FormatChoiceReport
FormatChoiceReport with a default destination.| Constructor and Description |
|---|
DefaultFormatChoiceReport(org.gradle.api.Project pProject,
java.lang.String pName,
java.lang.String pDisplayName,
java.lang.String pDefaultFormat,
groovy.lang.Closure<java.io.File> pDefaultDestination)
Create a new
DefaultFormatChoiceReport. |
| Modifier and Type | Method and Description |
|---|---|
void |
addLegalFormats(java.lang.String... pFormats)
Add a sequence of formats accepted by this report.
|
java.lang.String |
getFormat()
Get the selected format of the report.
|
void |
setFormat(java.lang.String pFormat)
Set the selected format of the report.
|
getOutputLocationresolveDestinationconfigure, getDestination, getDisplayName, getName, getOutputType, getProject, getProjectLogger, getRequired, isEnabled, reportIsRequired, setDestination, setDestination, setEnabled, setEnabled, setOutputLocation, setRequired, toString, useDestinationclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOutputLocation, getOutputTypesetDestination, setDestination, setEnabled, setEnabledpublic DefaultFormatChoiceReport(org.gradle.api.Project pProject,
java.lang.String pName,
java.lang.String pDisplayName,
java.lang.String pDefaultFormat,
groovy.lang.Closure<java.io.File> pDefaultDestination)
DefaultFormatChoiceReport.pProject - The project for which the report will be produced.pName - The report's symbolic name.pDisplayName - The report's display name.pDefaultFormat - The report's default format.pDefaultDestination - A closure that will return the report's default file destination
when called.java.lang.NullPointerException - if pProject or pDefaultDestination is null.public void addLegalFormats(java.lang.String... pFormats)
pFormats - The legal formats to add.public java.lang.String getFormat()
FormatChoiceReportgetFormat in interface FormatChoiceReportpublic void setFormat(java.lang.String pFormat)
FormatChoiceReportsetFormat in interface FormatChoiceReportpFormat - The selected format.