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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addConfiguredFileset(org.apache.tools.ant.types.FileSet fileset)
    Adds the configured fileset.
    void
     
    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
    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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SmartSpritesTask

      public SmartSpritesTask()
  • Method Details

    • setRootDir

      public void setRootDir(File dir)
      Sets the root dir.
      Parameters:
      dir - the new root dir
    • setOutputDir

      public void setOutputDir(File outputDir)
      Sets the output dir.
      Parameters:
      outputDir - the new output dir
    • setDocumentRootDir

      public void setDocumentRootDir(File documentRootDir)
      Sets the document root dir.
      Parameters:
      documentRootDir - the new document root dir
    • setLogLevel

      public void setLogLevel(String logLevel)
      Sets the log level.
      Parameters:
      logLevel - the new log level
    • setFailOnLevel

      public void setFailOnLevel(String failOnLevel)
      Sets the fail on level.
      Parameters:
      failOnLevel - the new fail on level
    • setCssFileEncoding

      public void setCssFileEncoding(String cssFileEncoding)
      Sets the css file encoding.
      Parameters:
      cssFileEncoding - the new css file encoding
    • setCssFileSuffix

      public void setCssFileSuffix(String cssFileSuffix)
      Sets the css file suffix.
      Parameters:
      cssFileSuffix - the new css file suffix
    • setSpritePngDepth

      public void setSpritePngDepth(String spritePngDepthString)
      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 class org.apache.tools.ant.Task
    • addConfiguredFileset

      public void addConfiguredFileset(org.apache.tools.ant.types.FileSet fileset)
      Adds the configured fileset.
      Parameters:
      fileset - the fileset