org.jcommando.ant
Class JCommando

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.jcommando.ant.JCommando

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

Author:
Brett Wooldridge

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
JCommando()
          Task constructor.
 
Method Summary
 void execute()
          Executes the ant task.
 void setClassname(java.lang.String clazz)
          Set the name of the generated class.
 void setDestdir(java.lang.String dest)
          Set the destination directory.
 void setInputFile(java.lang.String file)
          Set the source command file.
 void setPackageName(java.lang.String pkg)
          Set the package name.
 
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

JCommando

public JCommando()
Task constructor.

Method Detail

setDestdir

public void setDestdir(java.lang.String dest)
Set the destination directory.

Parameters:
dest - the name of the destination directory

setInputFile

public void setInputFile(java.lang.String file)
Set the source command file.

Parameters:
file - the name of the source file

setClassname

public void setClassname(java.lang.String clazz)
Set the name of the generated class.

Parameters:
clazz - the name of the parser class to generate

setPackageName

public void setPackageName(java.lang.String pkg)
Set the package name.

Parameters:
pkg - the name of package the generated class should reside in

execute

public void execute()
Executes the ant task.

See Also:
Task.execute()