org.jcoderz.commons.taskdefs
Class DotTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.jcoderz.commons.taskdefs.DotTask
All Implemented Interfaces:
Cloneable

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

Ant task for the 'dot' command from the graphviz package.

Author:
Michael Griffel

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
DotTask()
           
 
Method Summary
 void execute()
          Execute this task.
 String getFileExtension()
          Returns the file name extension for the current output format.
 void setFailonerror(boolean b)
          Set whether we should fail on an error.
 void setFormat(String format)
          Set the output format.
 void setIn(File f)
          Sets the XML input file that contains the document.
 void setInFiles(File[] inFiles)
          Set the input files.
 
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 Detail

DotTask

public DotTask()
Method Detail

setIn

public void setIn(File f)
Sets the XML input file that contains the document.

Parameters:
f - the XML input file (log message info).

setFormat

public void setFormat(String format)
Set the output format.

Parameters:
format - the output format.

setFailonerror

public void setFailonerror(boolean b)
Set whether we should fail on an error.

Parameters:
b - Whether we should fail on an error.

getFileExtension

public String getFileExtension()
Returns the file name extension for the current output format.

Returns:
the file name extension for the current output format.

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Execute this task.

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException - An building exception occurred.

setInFiles

public void setInFiles(File[] inFiles)
Set the input files.

Parameters:
inFiles - the input files.


Copyright 2007 The jCoderZ Project.