Package org.hibernate.tool.hbm2ddl
Class SchemaValidatorTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
org.hibernate.tool.hbm2ddl.SchemaValidatorTask
- All Implemented Interfaces:
Cloneable,org.apache.tools.ant.types.selectors.SelectorContainer
public class SchemaValidatorTask
extends org.apache.tools.ant.taskdefs.MatchingTask
An Ant task for
SchemaUpdate.
<taskdef name="schemavalidator"
classname="org.hibernate.tool.hbm2ddl.SchemaValidatorTask"
classpathref="class.path"/>
<schemaupdate
properties="${build.classes.dir}/hibernate.properties"
<fileset dir="${build.classes.dir}">
<include name="*.hbm.xml"/>
</fileset>
</schemaupdate>
- See Also:
-
Field Summary
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
filesetFields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFileset(org.apache.tools.ant.types.FileSet fileSet) voidexecute()Execute the taskvoidSet a.cfg.xmlfilevoidsetImplicitNamingStrategy(String implicitNamingStrategy) voidsetNamingStrategy(String namingStrategy) voidsetPhysicalNamingStrategy(String physicalNamingStrategy) voidsetProperties(File propertiesFile) Set a properties fileMethods 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, XsetItemsMethods 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, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation
-
Constructor Details
-
SchemaValidatorTask
public SchemaValidatorTask()
-
-
Method Details
-
addFileset
public void addFileset(org.apache.tools.ant.types.FileSet fileSet) -
setProperties
Set a properties file- Parameters:
propertiesFile- the properties file name
-
setConfig
Set a.cfg.xmlfile- Parameters:
configurationFile- the file name
-
setNamingStrategy
-
setImplicitNamingStrategy
-
setPhysicalNamingStrategy
-
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
-