public class ImportProfilesTask extends ComponentBasedTask implements ProfileDataReaderListener
A Rhino management sub task for importing previously exported profiles.
Attribute | Description | Required |
---|---|---|
failonerror |
Flag to control failure behaviour.
If 'true', the sub task will throw a |
No. default value is taken from the Rhino management parent task. |
filename |
Source file containing profiles to be imported. |
Yes. |
profile-table |
Name of the profile table to import into. If not specified, profiles are imported into the profile table specified in the profile XML data. |
No. |
maxprofiles |
Maximum number of profiles to handle in one transaction. |
No. |
replace |
Flag indicating whether any existing profiles should be replaced with the new profile data. |
No. |
verify |
Flag indicating whether the |
No.
Default value is |
This task will never throw a NonFatalBuildException
. It will always fail (throw a BuildException
) on errors.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_PROFILES |
component
client, failOnError
Constructor and Description |
---|
ImportProfilesTask() |
Modifier and Type | Method and Description |
---|---|
protected void |
execute() |
void |
processProfiles(ProfileDataCollection profileData) |
void |
processProfileTableName(String tableName) |
void |
setFilename(File filename) |
void |
setMaxProfiles(int maxProfiles) |
void |
setProfileTable(String profileTable) |
void |
setReplace(boolean replace) |
void |
setVerify(boolean verify) |
protected void |
validateParameters() |
addComponent, findComponent
getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, run, setFailOnError
public static final int DEFAULT_MAX_PROFILES
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
public void processProfileTableName(String tableName)
processProfileTableName
in interface ProfileDataReaderListener
public void processProfiles(ProfileDataCollection profileData)
processProfiles
in interface ProfileDataReaderListener
public void setFilename(File filename)
public void setProfileTable(String profileTable)
public void setReplace(boolean replace)
public void setVerify(boolean verify)
public void setMaxProfiles(int maxProfiles)