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
- 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>
- In the
AMXAdminTask
element set the
action
attribute to
edit, and the
objectSelector
to
ResourceTemplate|Environment/ResourceTemplate|Environment/Application/ResourceTemplate.
Note: The ant target has an action as edit and one more XML attribute called incrementalEdit and set it to true. This new attribute incrementalEdit makes this edit call as incremental edit.
<AMXAdminTask action="edit" objectSelector="ResourceTemplate|Environment/ResourceTemplate|
Environment/Application/ResourceTemplate"> incrementalEdit="true"