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, wrapper
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConfiguredFileset
(org.apache.tools.ant.types.FileSet fileset) Adds the configured fileset.void
execute()
void
setCssFileEncoding
(String cssFileEncoding) Sets the css file encoding.void
setCssFileSuffix
(String cssFileSuffix) Sets the css file suffix.void
setDocumentRootDir
(File documentRootDir) Sets the document root dir.void
setFailOnLevel
(String failOnLevel) Sets the fail on level.void
setLogLevel
(String logLevel) Sets the log level.void
setMarkSpriteImages
(boolean markSpriteImages) Sets the mark sprite images.void
setOutputDir
(File outputDir) Sets the output dir.void
setRootDir
(File dir) Sets the root dir.void
setSpritePngDepth
(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, setTaskType
Methods 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:
execute
in classorg.apache.tools.ant.Task
-
addConfiguredFileset
public void addConfiguredFileset(org.apache.tools.ant.types.FileSet fileset) Adds the configured fileset.- Parameters:
fileset
- the fileset
-