org.znerd.dir2xml.ant
Class Task

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--org.znerd.dir2xml.ant.Task

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

Ant task that processes a dir2xml file.

For more information about dir2xml, see dir2xml.sourceforge.net. For more information about Ant, see jakarta.apache.org.

Version:
$Revision: 1.2 $ $Date: 2002/06/21 12:02:07 $
Author:
Ernst de Haan (znerd@FreeBSD.org)

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
Task()
           
 
Method Summary
 void execute()
           
 void setEncoding(String encoding)
          Sets the encoding to use for the output.
 void setIn(String in)
          Sets the input file.
 void setIndent(String indent)
          Sets the indentation string.
 void setNewlines(boolean newlines)
          Sets the flag that determines if newlines are printed.
 void setOut(String out)
          Sets the output file.
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
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

Task

public Task()
Method Detail

setIn

public void setIn(String in)
Sets the input file.
Parameters:
in - the input file.

setOut

public void setOut(String out)
Sets the output file.
Parameters:
out - the output file.

setEncoding

public void setEncoding(String encoding)
Sets the encoding to use for the output. If the encoding is unsupported, then the build (see execute()) will fail.
Parameters:
encoding - the encoding to use.

setIndent

public void setIndent(String indent)
Sets the indentation string.
Parameters:
indent - the indentation string.

setNewlines

public void setNewlines(boolean newlines)
Sets the flag that determines if newlines are printed.
Parameters:
newlines - true if newlines should be output, false otherwise.

execute

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


See http://dir2xml.sourceforge.net/.