public class UserTransactionTask extends AbstractBaseTask
A Rhino management sub task that allows its own subtasks to be executed in the context of a single client-demarcated transaction.
This task starts a user transaction then executes the nested subtasks.
If all the subtasks complete successfully, the user transaction is committed.
If any tasks fails with a fatal BuildException, or fails with a NonFatalBuildException but its failonerror flag is set to true
, the user transaction is rolled back.
The following sub task elements can be provided in any number and in any order.
The User Transaction task will execute these sub tasks in the specified order until a sub task fails by throwing a BuildException
which will be re-thrown to Ant with some contextual information regarding the sub task that caused it.
Create Profiles inside tables. |
|
Remove a Profile from a table. |
|
Modify profile attributes. |
|
Import profile XML data. |
client, failOnError
Constructor and Description |
---|
UserTransactionTask() |
Modifier and Type | Method and Description |
---|---|
void |
addCreateProfile(CreateProfileTask task) |
void |
addImportProfilesTask(ImportProfilesTask task) |
void |
addRemoveProfile(RemoveProfileTask task) |
void |
addSetProfileAttributes(SetProfileAttributesTask task) |
protected void |
execute() |
protected void |
validateParameters() |
getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, run, setFailOnError
public void addCreateProfile(CreateProfileTask task)
public void addRemoveProfile(RemoveProfileTask task)
public void addSetProfileAttributes(SetProfileAttributesTask task)
public void addImportProfilesTask(ImportProfilesTask task)
protected void execute() throws org.apache.tools.ant.BuildException
execute
in class AbstractBaseTask
org.apache.tools.ant.BuildException
protected void validateParameters() throws org.apache.tools.ant.BuildException
validateParameters
in class AbstractBaseTask
org.apache.tools.ant.BuildException