public class SchemaExportTask
extends org.apache.tools.ant.taskdefs.MatchingTask
<taskdef name="schemaexport"
classname="org.hibernate.tool.hbm2ddl.SchemaExportTask"
classpathref="class.path"/>
<schemaexport
properties="${build.classes.dir}/hibernate.properties"
quiet="no"
text="no"
drop="no"
delimiter=";"
output="${build.dir}/schema-export.sql">
<fileset dir="${build.classes.dir}">
<include name="*.hbm.xml"/>
</fileset>
</schemaexport>
| Modifier and Type | Class and Description |
|---|---|
static class |
SchemaExportTask.ExportType |
| Constructor and Description |
|---|
SchemaExportTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFileset(org.apache.tools.ant.types.FileSet set) |
void |
execute()
Execute the task
|
void |
setConfig(File configurationFile)
Set a
|
void |
setCreate(boolean create)
Enable "create" mode.
|
void |
setDelimiter(String delimiter)
Set the end of statement delimiter for the generated script
|
void |
setDrop(boolean drop)
Enable "drop" mode.
|
void |
setHaltonerror(boolean haltOnError) |
void |
setImplicitNamingStrategy(String implicitNamingStrategy) |
void |
setNamingStrategy(String namingStrategy)
Deprecated.
|
void |
setOutput(File outputFile)
Set the script output file
|
void |
setPhysicalNamingStrategy(String physicalNamingStrategy) |
void |
setProperties(File propertiesFile)
Set a properties file
|
void |
setQuiet(boolean quiet)
Enable "quiet" mode.
|
void |
setText(boolean text)
Enable "text-only" mode.
|
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, XsetItemsbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void addFileset(org.apache.tools.ant.types.FileSet set)
public void setProperties(File propertiesFile)
propertiesFile - the properties file namepublic void setConfig(File configurationFile)
configurationFile - the path to the resourcepublic void setQuiet(boolean quiet)
quiet - true to enable quiet modepublic void setText(boolean text)
text - true to enable text-only modepublic void setDrop(boolean drop)
drop - true to enable drop modepublic void setCreate(boolean create)
create - true to enable create modepublic void setDelimiter(String delimiter)
delimiter - the delimiterpublic void setOutput(File outputFile)
outputFile - the file name@Deprecated public void setNamingStrategy(String namingStrategy)
setImplicitNamingStrategy(java.lang.String) or setPhysicalNamingStrategy(java.lang.String)
insteadpublic void setImplicitNamingStrategy(String implicitNamingStrategy)
public void setPhysicalNamingStrategy(String physicalNamingStrategy)
public void setHaltonerror(boolean haltOnError)
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionCopyright © 2001-2022 Red Hat, Inc. All Rights Reserved.