Class SmartSpritesTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.carrot2.labs.smartsprites.ant.SmartSpritesTask
- All Implemented Interfaces:
Cloneable
public class SmartSpritesTask
extends org.apache.tools.ant.Task
Ant task for calling SmartSprites processing.
-
Field Summary
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfiguredFileset(org.apache.tools.ant.types.FileSet fileset) Adds the configured fileset.voidexecute()voidsetCssFileEncoding(String cssFileEncoding) Sets the css file encoding.voidsetCssFileSuffix(String cssFileSuffix) Sets the css file suffix.voidsetDocumentRootDir(File documentRootDir) Sets the document root dir.voidsetFailOnLevel(String failOnLevel) Sets the fail on level.voidsetLogLevel(String logLevel) Sets the log level.voidsetMarkSpriteImages(boolean markSpriteImages) Sets the mark sprite images.voidsetOutputDir(File outputDir) Sets the output dir.voidsetRootDir(File dir) Sets the root dir.voidsetSpritePngDepth(String spritePngDepthString) Sets the sprite png depth.Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
SmartSpritesTask
public SmartSpritesTask()
-
-
Method Details
-
setRootDir
Sets the root dir.- Parameters:
dir- the new root dir
-
setOutputDir
Sets the output dir.- Parameters:
outputDir- the new output dir
-
setDocumentRootDir
Sets the document root dir.- Parameters:
documentRootDir- the new document root dir
-
setLogLevel
Sets the log level.- Parameters:
logLevel- the new log level
-
setFailOnLevel
Sets the fail on level.- Parameters:
failOnLevel- the new fail on level
-
setCssFileEncoding
Sets the css file encoding.- Parameters:
cssFileEncoding- the new css file encoding
-
setCssFileSuffix
Sets the css file suffix.- Parameters:
cssFileSuffix- the new css file suffix
-
setSpritePngDepth
Sets the sprite png depth.- Parameters:
spritePngDepthString- the new sprite png depth
-
setMarkSpriteImages
public void setMarkSpriteImages(boolean markSpriteImages) Sets the mark sprite images.- Parameters:
markSpriteImages- the new mark sprite images
-
execute
public void execute()- Overrides:
executein classorg.apache.tools.ant.Task
-
addConfiguredFileset
public void addConfiguredFileset(org.apache.tools.ant.types.FileSet fileset) Adds the configured fileset.- Parameters:
fileset- the fileset
-