public class HibernateToolTask
extends org.apache.tools.ant.Task
Modifier and Type | Field and Description |
---|---|
protected List<org.apache.tools.ant.Task> |
appContexts |
protected org.apache.tools.ant.types.Path |
classPath |
protected boolean |
combinePersistenceUnits |
protected List |
configurationTasks |
protected File |
destDir |
protected List |
generators |
protected boolean |
refineFileNames |
Constructor and Description |
---|
HibernateToolTask() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
addConfiguration(org.hibernate.tool.ant.ConfigurationTask config) |
protected boolean |
addGenerator(ExporterTask generator) |
org.apache.tools.ant.types.Path |
createClasspath()
Adds a path to the classpath.
|
ClassPathApplicationContextTask |
createClassPathApplicationContext() |
FileSystemApplicationContextTask |
createFileSystemApplicationContext() |
ExporterTask |
createHbm2DDL() |
JPAConfigurationTask |
createJPAConfiguration() |
void |
execute() |
File |
getDestdir() |
boolean |
isCombinePersistenceUnits() |
boolean |
isRefineFileNames() |
void |
setClasspath(org.apache.tools.ant.types.Path s)
Set the classpath to be used when running the Java class
|
void |
setCombinePersistenceUnits(boolean combinePersistenceUnits) |
void |
setDestdir(File destDir) |
void |
setRefineFileNames(boolean refineFileNames) |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
protected List configurationTasks
protected File destDir
protected List generators
protected List<org.apache.tools.ant.Task> appContexts
protected org.apache.tools.ant.types.Path classPath
protected boolean combinePersistenceUnits
protected boolean refineFileNames
public ExporterTask createHbm2DDL()
public ClassPathApplicationContextTask createClassPathApplicationContext()
public FileSystemApplicationContextTask createFileSystemApplicationContext()
public JPAConfigurationTask createJPAConfiguration()
protected boolean addConfiguration(org.hibernate.tool.ant.ConfigurationTask config)
protected boolean addGenerator(ExporterTask generator)
public void setClasspath(org.apache.tools.ant.types.Path s)
s
- an Ant Path object containing the classpath.public org.apache.tools.ant.types.Path createClasspath()
public void execute()
execute
in class org.apache.tools.ant.Task
public File getDestdir()
public void setDestdir(File destDir)
public boolean isCombinePersistenceUnits()
public void setCombinePersistenceUnits(boolean combinePersistenceUnits)
public boolean isRefineFileNames()
public void setRefineFileNames(boolean refineFileNames)
Copyright © 2014. All rights reserved.