org.tigris.scarab.util.build
Class AntSchemaFix

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.tigris.scarab.util.build.AntSchemaFix
All Implemented Interfaces:
PropertyGetter

public class AntSchemaFix
extends org.apache.tools.ant.Task
implements PropertyGetter

This class is used as ant task backend for the generation of a property file by use of a template file.

Version:
$Id: AntPropertyFileGenerator.java 9421 2005-02-20 22:32:38Z jorgeuriarte $
Author:
Hussayn Dabbous

Field Summary
(package private)  java.lang.String dbtype
           
(package private)  java.io.File sourceFile
           
(package private)  java.io.File targetFile
           
 
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
AntSchemaFix()
           
 
Method Summary
 void execute()
          fix schema-file if dbtype is hypersonic.
 java.lang.Object getProperty(java.lang.String name, java.lang.Object def)
          dummy method.
 void setDbtype(java.lang.String theDbtype)
          database type for which to run the fix.
 void setSource(java.lang.String theSourceFileName)
          Source schema file to be fixed.
 void setTarget(java.lang.String theTargetFileName)
          target schema file to be created.
 
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
 

Field Detail

sourceFile

java.io.File sourceFile

targetFile

java.io.File targetFile

dbtype

java.lang.String dbtype
Constructor Detail

AntSchemaFix

public AntSchemaFix()
Method Detail

setSource

public void setSource(java.lang.String theSourceFileName)
Source schema file to be fixed.

Parameters:
theSourceFileName -

setTarget

public void setTarget(java.lang.String theTargetFileName)
target schema file to be created.

Parameters:
theTargetFileName -

setDbtype

public void setDbtype(java.lang.String theDbtype)
database type for which to run the fix. currently only hypersonic needs a fix.

Parameters:
theDbtype -

execute

public void execute()
fix schema-file if dbtype is hypersonic. due to an error in the hypersonic-torque generator.


getProperty

public java.lang.Object getProperty(java.lang.String name,
                                    java.lang.Object def)
dummy method. Not used.

Specified by:
getProperty in interface PropertyGetter
Parameters:
name -
Returns:


Copyright © 2000-2004 Tigris.org. All Rights Reserved.