Package org.hibernate.tool.hbm2ddl
Class SchemaUpdateTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.apache.tools.ant.taskdefs.MatchingTask
-
- org.hibernate.tool.hbm2ddl.SchemaUpdateTask
-
- All Implemented Interfaces:
java.lang.Cloneable,org.apache.tools.ant.types.selectors.SelectorContainer
public class SchemaUpdateTask extends org.apache.tools.ant.taskdefs.MatchingTaskAn Ant task for SchemaUpdate.<taskdef name="schemaupdate" classname="org.hibernate.tool.hbm2ddl.SchemaUpdateTask" classpathref="class.path"/> <schemaupdate properties="${build.classes.dir}/hibernate.properties" quiet="no" <fileset dir="${build.classes.dir}"> <include name="*.hbm.xml"/> </fileset> </schemaupdate>- See Also:
SchemaUpdate
-
-
Constructor Summary
Constructors Constructor Description SchemaUpdateTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFileset(org.apache.tools.ant.types.FileSet fileSet)voidexecute()Execute the taskjava.lang.StringgetDelimiter()java.io.FilegetOutputFile()booleanisHaltOnError()voidsetConfig(java.io.File configurationFile)Set acfg.xmlfilevoidsetDelimiter(java.lang.String delimiter)voidsetHaltOnError(boolean haltOnError)voidsetImplicitNamingStrategy(java.lang.String implicitNamingStrategy)voidsetNamingStrategy(java.lang.String namingStrategy)voidsetOutputFile(java.io.File outputFile)voidsetPhysicalNamingStrategy(java.lang.String physicalNamingStrategy)voidsetProperties(java.io.File propertiesFile)Set a properties filevoidsetQuiet(boolean quiet)Enable "quiet" mode.voidsetText(boolean text)Enable "text-only" mode.-
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
-
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
-
-
-
-
Method Detail
-
addFileset
public void addFileset(org.apache.tools.ant.types.FileSet fileSet)
-
setProperties
public void setProperties(java.io.File propertiesFile)
Set a properties file- Parameters:
propertiesFile- the properties file name
-
setConfig
public void setConfig(java.io.File configurationFile)
Set acfg.xmlfile- Parameters:
configurationFile- the file name
-
setText
public void setText(boolean text)
Enable "text-only" mode. The schema will not be updated in the database.- Parameters:
text- true to enable text-only mode
-
setQuiet
public void setQuiet(boolean quiet)
Enable "quiet" mode. The schema will not be written to standard out.- Parameters:
quiet- true to enable quiet mode
-
setNamingStrategy
public void setNamingStrategy(java.lang.String namingStrategy)
-
setImplicitNamingStrategy
public void setImplicitNamingStrategy(java.lang.String implicitNamingStrategy)
-
setPhysicalNamingStrategy
public void setPhysicalNamingStrategy(java.lang.String physicalNamingStrategy)
-
getOutputFile
public java.io.File getOutputFile()
-
setOutputFile
public void setOutputFile(java.io.File outputFile)
-
isHaltOnError
public boolean isHaltOnError()
-
setHaltOnError
public void setHaltOnError(boolean haltOnError)
-
getDelimiter
public java.lang.String getDelimiter()
-
setDelimiter
public void setDelimiter(java.lang.String delimiter)
-
execute
public void execute() throws org.apache.tools.ant.BuildExceptionExecute the task- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
-