Incremental Editing of a Resource Template

Incremental editing allows you to selectively edit only those properties that you want to change in a resource template using command-line interface.

Procedure

  1. In the data file, specify the type of the resource template in the xsi:type attribute.
    <ResourceTemplate
            xsi:type="amxdata:JdbcResourceTemplate"
            name="JdbcResource">
            <Direct
                dbUrl="jdbc:hsqldb:hsql://localhost:1234/jdbcRtDb"/>       
        </ResourceTemplate>
  2. In the AMXAdminTask element set the action attribute to edit, and the objectSelector to ResourceTemplate|Environment/ResourceTemplate|Environment/Application/ResourceTemplate.
    Note: The ant target will have action as edit and one more xml attribute called incrementalEdit and set it to true. This new attribute incrementalEdit will make this edit call as incremental edit.
    <AMXAdminTask action="edit" 
    	objectSelector="ResourceTemplate|Environment/ResourceTemplate|Environment/ Application/ResourceTemplate">
    	 incrementalEdit="true"