com.kitfox.svg.app.ant
Class SVGToImageAntTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by com.kitfox.svg.app.ant.SVGToImageAntTask

public class SVGToImageAntTask
extends org.apache.tools.ant.Task

Translates a group of SVG files into images. Parameters: destDir - If present, specifices a directory to write SVG files to. Otherwise writes images to directory SVG file was found in verbose - If true, prints processing information to the console format - File format for output images. The java core javax.imageio.ImageIO class is used for creating images, so format strings will depend on what files your system is configured to handle. By default, "gif", "jpg" and "png" files are guaranteed to be present. If omitted, "png" is used by default. Example: <SVGToImage destDir="${index.java}" format="jpg" verbose="true"> <fileset dir="${dir1}"> <include name="*.svg"/> </fileset> <fileset dir="${dir2}"> <include name="*.svg"/> </fileset> </SVGToImage>

Author:
kitfox

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
SVGToImageAntTask()
          Creates a new instance of IndexLoadObjectsAntTask
 
Method Summary
 void addFileset(org.apache.tools.ant.types.FileSet set)
          Adds a set of files.
 void execute()
           
 java.lang.String getFormat()
           
 void setDestDir(java.io.File destDir)
           
 void setFormat(java.lang.String format)
           
 void setVerbose(boolean verbose)
           
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGToImageAntTask

public SVGToImageAntTask()
Creates a new instance of IndexLoadObjectsAntTask

Method Detail

getFormat

public java.lang.String getFormat()

setFormat

public void setFormat(java.lang.String format)

setVerbose

public void setVerbose(boolean verbose)

setDestDir

public void setDestDir(java.io.File destDir)

addFileset

public void addFileset(org.apache.tools.ant.types.FileSet set)
Adds a set of files.


execute

public void execute()
Overrides:
execute in class org.apache.tools.ant.Task