public class SchemaToolTask
extends org.apache.tools.ant.taskdefs.Java
| Constructor and Description |
|---|
SchemaToolTask()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFileSet(org.apache.tools.ant.types.FileSet fs)
Add a fileset.
|
void |
execute()
Execute method, to execute the task.
|
protected File[] |
getFiles() |
void |
setApi(String api)
Set the API Adapter
|
void |
setCompleteDdl(boolean complete)
Mutator for whether to output complete DDL.
|
void |
setDdlFile(String file)
Set the file to output DDL to
|
void |
setIncludeAutoStart(boolean include)
Mutator for whether to include any auto-start mechanism in schema operations.
|
void |
setMode(String mode)
Sets the mode of operation.
|
void |
setPersistenceUnit(String unitName)
Set the name of the persistence unit to manage
|
void |
setProps(String propsFileName)
Get persistence properties from a file
|
void |
setSchemaName(String schemaName)
Set the schema name (for use with CREATE_SCHEMA/DELETE_SCHEMA methods).
|
void |
setVerbose(boolean verbose)
set verbose
|
addAssertions, addConfiguredRedirector, addEnv, addSysproperty, addSyspropertyset, checkConfiguration, clearArgs, createArg, createBootclasspath, createClasspath, createJvmarg, createModulepath, createPermissions, createUpgrademodulepath, createWatchdog, executeJava, executeJava, getCommandLine, getSysProperties, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, maybeSetResultPropertyValue, run, setAppend, setArgs, setClassname, setClasspath, setClasspathRef, setCloneVm, setDir, setError, setErrorProperty, setFailonerror, setFork, setInput, setInputString, setJar, setJvm, setJvmargs, setJVMVersion, setLogError, setMaxmemory, setModule, setModulepath, setModulepathRef, setNewenvironment, setOutput, setOutputproperty, setResultProperty, setSpawn, setTimeout, setupRedirectorbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.taskdefs.Javaorg.apache.tools.ant.BuildException - if any error happens while running the taskpublic void addFileSet(org.apache.tools.ant.types.FileSet fs)
fs - the FileSetprotected File[] getFiles()
public void setVerbose(boolean verbose)
verbose - Whether to give verbose outputpublic void setProps(String propsFileName)
propsFileName - Name of props filepublic void setDdlFile(String file)
file - Name of DDL filepublic void setSchemaName(String schemaName)
schemaName - Name of the schemapublic void setCompleteDdl(boolean complete)
complete - Whether to give complete DDLpublic void setIncludeAutoStart(boolean include)
include - Whether to include auto-start mechanismspublic void setPersistenceUnit(String unitName)
unitName - Name of persistence-unitpublic void setApi(String api)
api - API Adapterpublic void setMode(String mode)
mode - The mode of operation ("create", "delete", "deletecreate", "validate", "dbinfo", "schemainfo")Copyright © 2017. All rights reserved.