Class WriteDtdToFileCommand
java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.task.Command
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.task.WriteDtdToFileCommand
Creates a DTD that specifies the layout for data XML files.
This sub task does not require a database connection, so the
This sub task does not require a database connection, so the
dataSource
sub element of the enclosing task can be omitted.- Version:
- $Revision: 289996 $
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(DatabaseTaskBase task, Database model) Executes this command.boolean
Specifies whether this command requires a model, i.e.void
setOutputFile
(File outputFile) Specifies the name of the file to write the DTD to.Methods inherited from class edu.internet2.middleware.grouper.ext.org.apache.ddlutils.task.Command
handleException, isFailOnError, setFailOnError
-
Constructor Details
-
WriteDtdToFileCommand
public WriteDtdToFileCommand()
-
-
Method Details
-
setOutputFile
Specifies the name of the file to write the DTD to.- Parameters:
outputFile
- The output file
-
isRequiringModel
public boolean isRequiringModel()Specifies whether this command requires a model, i.e. whether the second argument inCommand.execute(DatabaseTaskBase, Database)
cannot benull
.- Specified by:
isRequiringModel
in classCommand
- Returns:
true
if this command requires a model
-
execute
public void execute(DatabaseTaskBase task, Database model) throws org.apache.tools.ant.BuildException Executes this command.
-