org.apache.torque.task
Class TorqueSQLTransformTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.torque.task.TorqueSQLTransformTask

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

An ant task for creating an xml schema from an sql schema

Version:
$Id: TorqueSQLTransformTask.java,v 1.3.2.2 2004/05/20 04:35:14 seade Exp $
Author:
Leon Messerschmidt, Jason van Zyl

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
TorqueSQLTransformTask()
           
 
Method Summary
 void execute()
          Execute the task.
 java.lang.String getInputFile()
          Get the current input file
 java.lang.String getOutputFile()
          Get the current output file.
 void setInputFile(java.lang.String v)
          Set the sql input file.
 void setOutputFile(java.lang.String v)
          Set the current output file.
 
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

TorqueSQLTransformTask

public TorqueSQLTransformTask()
Method Detail

getInputFile

public java.lang.String getInputFile()
Get the current input file

Returns:
the input file

setInputFile

public void setInputFile(java.lang.String v)
Set the sql input file. This file must exist

Parameters:
v - the input file

getOutputFile

public java.lang.String getOutputFile()
Get the current output file.

Returns:
the output file

setOutputFile

public void setOutputFile(java.lang.String v)
Set the current output file. If the file does not exist it will be created. If the file exists all it's contents will be replaced.

Parameters:
v - the output file

execute

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

Throws:
org.apache.tools.ant.BuildException - Any exceptions caught during procssing will be rethrown wrapped into a BuildException


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.