Class BaseAntTask

  • All Implemented Interfaces:
    Cloneable
    Direct Known Subclasses:
    RhinoManagementAntTask

    public class BaseAntTask
    extends org.apache.tools.ant.Task

    Base Rhino management Ant task. Responsible for basic Rhino connection establishment behaviour.

    This task can be extended and used to produce an Ant task to perform any management operation supported by Rhino. In skeletal form, such a task would look like this:

        public class MyTask extends BaseAntTask {
           public void execute() throws BuildException {
               // execute standard login behaviour
               super.execute();
    
               RhinoConnection client = getClient();
               // do something with the connection
           }
        }
    Ant Parameters
    Attribute Description Required

    host

    Host name or IP address of Rhino node to connect to.

    Yes.

    port

    RMI registry port configured for the JMX Remote M-Let on the Rhino node being connected to.

    Yes.

    username

    Name of user to connect as.

    Yes.

    password

    User’s password.

    Yes.

    trustStore

    Path to key store file that contains a trustedCertEntry to verify the identity of the Rhino node being connected to.

    Yes.

    trustStorePass

    Password for accessing the trust store.

    Yes.

    keyStore

    Path to key store file that contains a keyEntry to send to the Rhino node for it to verify the identity of this client.

    Yes.

    keyStorePass

    Password for accessing the key store.

    Yes.

    failonerror

    Set the default failure behaviour. Subclasses define the exact use of this attribute.

    No. Default value is 'false'.