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 |
setCatalog(String name)
Set the Catalog Name.
|
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 |
setSchema(String name)
Set the Schema Name.
|
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, setSourceFile, setSpawn, setTimeout, setupRedirector
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.taskdefs.Java
org.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 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 setCatalog(String name)
name
- Catalog namepublic void setSchema(String name)
name
- Schema namepublic void setMode(String mode)
mode
- The mode of operation ("create", "delete", "deletecreate", "validate", "dbinfo", "schemainfo")Copyright © 2019. All rights reserved.