|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
net.sf.hibernate.tool.hbm2ddl.SchemaExportTask
An Ant task for SchemaExport.
<taskdef name="schemaexport"
classname="net.sf.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>
SchemaExport| Field Summary |
| Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
fileset, useDefaultExcludes |
| 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 | |
SchemaExportTask()
|
|
| Method Summary | |
void |
addFileset(org.apache.tools.ant.types.FileSet set)
|
void |
execute()
Execute the task |
void |
setConfig(String configurationFile)
Set a |
void |
setDelimiter(String delimiter)
Set the end of statement delimiter for the generated script |
void |
setDrop(boolean drop)
Enable "drop" mode. |
void |
setNamingStrategy(String namingStrategy)
|
void |
setOutput(String outputFile)
Set the script output file |
void |
setProperties(File propertiesFile)
Set a properties file |
void |
setQuiet(boolean quiet)
Enable "quiet" mode. |
void |
setText(boolean text)
Enable "text-only" mode. |
| Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
addAnd, addContains, addCustom, addDate, addDepend, addDepth, addFilename, addMajority, addNone, addNot, addOr, addPresent, addSelector, addSize, 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 |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SchemaExportTask()
| Method Detail |
public void addFileset(org.apache.tools.ant.types.FileSet set)
public void setProperties(File propertiesFile)
propertiesFile - the properties file namepublic void setConfig(String 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 setDelimiter(String delimiter)
delimiter - the delimiterpublic void setOutput(String outputFile)
outputFile - the file name
public void execute()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildExceptionpublic void setNamingStrategy(String namingStrategy)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||