public class SchemaValidatorTask
extends org.apache.tools.ant.taskdefs.MatchingTask
<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>
SchemaValidator
Constructor and Description |
---|
SchemaValidatorTask() |
Modifier and Type | Method and Description |
---|---|
void |
addFileset(org.apache.tools.ant.types.FileSet fileSet) |
void |
execute()
Execute the task
|
void |
setConfig(File configurationFile)
Set a
|
void |
setImplicitNamingStrategy(String implicitNamingStrategy) |
void |
setNamingStrategy(String namingStrategy) |
void |
setPhysicalNamingStrategy(String physicalNamingStrategy) |
void |
setProperties(File propertiesFile)
Set a properties file
|
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
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void addFileset(org.apache.tools.ant.types.FileSet fileSet)
public void setProperties(File propertiesFile)
propertiesFile
- the properties file namepublic void setConfig(File configurationFile)
configurationFile
- the file namepublic void setNamingStrategy(String namingStrategy)
public void setImplicitNamingStrategy(String implicitNamingStrategy)
public void setPhysicalNamingStrategy(String physicalNamingStrategy)
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.