public class SvgDrawableTask extends org.gradle.api.DefaultTask implements SvgDrawablePlugin.Parameters
| Modifier and Type | Field and Description |
|---|---|
boolean |
createMissingDirectories |
org.gradle.api.file.FileCollection |
from |
int |
jpgBackgroundColor |
int |
jpgQuality |
java.io.File |
ninePatchConfig |
static com.google.common.base.Predicate<java.lang.Object> |
notNull |
OutputFormat |
outputFormat |
OutputType |
outputType |
OverwriteMode |
overwriteMode |
BoundsType |
svgBoundsType |
java.io.File |
svgMaskedSvgOutputDirectory |
org.gradle.api.file.FileCollection |
svgMaskFiles |
org.gradle.api.file.FileCollection |
svgMaskResourceFiles |
Density.Value[] |
targetedDensities |
java.io.File |
to |
boolean |
useSameSvgOnlyOnceInMask |
DEFAULT_BOUNDS_TYPE, DEFAULT_CREATE_MISSING_DIRECTORIES, DEFAULT_JPG_BACKGROUND_COLOR, DEFAULT_JPG_QUALITY, DEFAULT_OUTPUT_FORMAT, DEFAULT_OUTPUT_TYPE, DEFAULT_OVERRIDE_MODE| Constructor and Description |
|---|
SvgDrawableTask() |
| Modifier and Type | Method and Description |
|---|---|
org.gradle.api.Task |
configure(groovy.lang.Closure closure) |
java.lang.Iterable<java.io.File> |
getFiles() |
int |
getJpgBackgroundColor() |
int |
getJpgQuality() |
java.io.File |
getNinePatchConfig() |
OutputFormat |
getOutputFormat() |
OutputType |
getOutputType() |
OverwriteMode |
getOverwriteMode() |
BoundsType |
getSvgBoundsType() |
java.io.File |
getSvgMaskedSvgOutputDirectory() |
java.lang.Iterable<java.io.File> |
getSvgMaskFiles() |
java.lang.Iterable<java.io.File> |
getSvgMaskResourceFiles() |
Density.Value[] |
getTargetedDensities() |
java.io.File |
getTo() |
boolean |
isCreateMissingDirectories() |
boolean |
isUseSameSvgOnlyOnceInMask() |
void |
setCreateMissingDirectories(boolean createMissingDirectories) |
void |
setFrom(org.gradle.api.file.FileCollection from) |
void |
setJpgBackgroundColor(int jpgBackgroundColor) |
void |
setJpgQuality(int jpgQuality) |
void |
setNinePatchConfig(java.io.File ninePatchConfig) |
void |
setOutputFormat(OutputFormat outputFormat) |
void |
setOutputType(OutputType outputType) |
void |
setOverwriteMode(OverwriteMode overwriteMode) |
void |
setSvgBoundsType(BoundsType svgBoundsType) |
void |
setSvgMaskedSvgOutputDirectory(java.io.File svgMaskedSvgOutputDirectory) |
void |
setSvgMaskFiles(org.gradle.api.file.FileCollection svgMaskFiles) |
void |
setSvgMaskResourceFiles(org.gradle.api.file.FileCollection svgMaskResourceFiles) |
void |
setTargetedDensities(Density.Value[] targetedDensities) |
void |
setTo(java.io.File to) |
void |
setUseSameSvgOnlyOnceInMask(boolean useSameSvgOnlyOnceInMask) |
void |
transcode() |
addValidator, appendParallelSafeAction, compareTo, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, finalizedBy, getActionClassLoaders, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getImpliesSubProjects, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toStringpublic static final com.google.common.base.Predicate<java.lang.Object> notNull
public org.gradle.api.file.FileCollection from
@OutputDirectory public java.io.File to
public boolean createMissingDirectories
public OverwriteMode overwriteMode
public Density.Value[] targetedDensities
public java.io.File ninePatchConfig
public org.gradle.api.file.FileCollection svgMaskFiles
public org.gradle.api.file.FileCollection svgMaskResourceFiles
@OutputDirectory public java.io.File svgMaskedSvgOutputDirectory
public boolean useSameSvgOnlyOnceInMask
public OutputType outputType
public OutputFormat outputFormat
public int jpgQuality
public int jpgBackgroundColor
public BoundsType svgBoundsType
public org.gradle.api.Task configure(groovy.lang.Closure closure)
configure in interface org.gradle.api.Taskconfigure in interface org.gradle.util.Configurable<org.gradle.api.Task>configure in class org.gradle.api.internal.AbstractTaskpublic void transcode()
public java.lang.Iterable<java.io.File> getFiles()
getFiles in interface SvgDrawablePlugin.Parameterspublic java.io.File getTo()
getTo in interface SvgDrawablePlugin.Parameterspublic boolean isCreateMissingDirectories()
isCreateMissingDirectories in interface SvgDrawablePlugin.Parameterspublic OverwriteMode getOverwriteMode()
getOverwriteMode in interface SvgDrawablePlugin.Parameterspublic Density.Value[] getTargetedDensities()
getTargetedDensities in interface SvgDrawablePlugin.Parameterspublic java.io.File getNinePatchConfig()
getNinePatchConfig in interface SvgDrawablePlugin.Parameterspublic java.lang.Iterable<java.io.File> getSvgMaskFiles()
getSvgMaskFiles in interface SvgDrawablePlugin.Parameterspublic java.lang.Iterable<java.io.File> getSvgMaskResourceFiles()
getSvgMaskResourceFiles in interface SvgDrawablePlugin.Parameterspublic java.io.File getSvgMaskedSvgOutputDirectory()
getSvgMaskedSvgOutputDirectory in interface SvgDrawablePlugin.Parameterspublic boolean isUseSameSvgOnlyOnceInMask()
isUseSameSvgOnlyOnceInMask in interface SvgDrawablePlugin.Parameterspublic OutputType getOutputType()
getOutputType in interface SvgDrawablePlugin.Parameterspublic OutputFormat getOutputFormat()
getOutputFormat in interface SvgDrawablePlugin.Parameterspublic int getJpgQuality()
getJpgQuality in interface SvgDrawablePlugin.Parameterspublic int getJpgBackgroundColor()
getJpgBackgroundColor in interface SvgDrawablePlugin.Parameterspublic BoundsType getSvgBoundsType()
getSvgBoundsType in interface SvgDrawablePlugin.Parameterspublic void setFrom(org.gradle.api.file.FileCollection from)
public void setTo(java.io.File to)
public void setCreateMissingDirectories(boolean createMissingDirectories)
public void setOverwriteMode(OverwriteMode overwriteMode)
public void setTargetedDensities(Density.Value[] targetedDensities)
public void setNinePatchConfig(java.io.File ninePatchConfig)
public void setSvgMaskFiles(org.gradle.api.file.FileCollection svgMaskFiles)
public void setSvgMaskResourceFiles(org.gradle.api.file.FileCollection svgMaskResourceFiles)
public void setSvgMaskedSvgOutputDirectory(java.io.File svgMaskedSvgOutputDirectory)
public void setUseSameSvgOnlyOnceInMask(boolean useSameSvgOnlyOnceInMask)
public void setOutputType(OutputType outputType)
public void setOutputFormat(OutputFormat outputFormat)
public void setJpgQuality(int jpgQuality)
public void setJpgBackgroundColor(int jpgBackgroundColor)
public void setSvgBoundsType(BoundsType svgBoundsType)
Copyright © 2019. All Rights Reserved.