Class ImportProfilesTask

  • All Implemented Interfaces:
    SubTask, ProfileDataReaderListener

    public class ImportProfilesTask
    extends ComponentBasedTask
    implements ProfileDataReaderListener

    A Rhino management sub task for importing previously exported profiles.

    Ant Parameters
    Attribute Description Required

    failonerror

    Flag to control failure behaviour. If 'true', the sub task will throw a BuildException when an error is encountered. If 'false', the sub task will throw a NonFatalBuildException instead of a BuildException under specific circumstances. See below for conditions (if any) which will cause a NonFatalBuildException.

    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 profileVerify() method will be invoked on each of the imported profiles.

    No. Default value is true.

    NonFatalBuildException throw conditions
    • This task will never throw a NonFatalBuildException. It will always fail (throw a BuildException) on errors.

    • Constructor Detail

      • ImportProfilesTask

        public ImportProfilesTask()
    • Method Detail

      • execute

        protected void execute()
                        throws org.apache.tools.ant.BuildException
        Specified by:
        execute in class AbstractBaseTask
        Throws:
        org.apache.tools.ant.BuildException
      • validateParameters

        protected void validateParameters()
                                   throws org.apache.tools.ant.BuildException
        Specified by:
        validateParameters in class AbstractBaseTask
        Throws:
        org.apache.tools.ant.BuildException
      • setFilename

        public void setFilename​(File filename)
      • setProfileTable

        public void setProfileTable​(String profileTable)
      • setReplace

        public void setReplace​(boolean replace)
      • setVerify

        public void setVerify​(boolean verify)
      • setMaxProfiles

        public void setMaxProfiles​(int maxProfiles)