Moving an Application to a Folder
You can move a an application to a folder from the GUI or by using the CLI.
CLI
Procedure
-
In the data file, specify an ApplicationFolder element in full format. For example:
<Environment xsi:type="amxdata:Environment" name="DevEnvironment08" > <Node xsi:type="amxdata:Node" name="DevNode08"> .. </Node> <Application xsi:type="amxdata:Application" name="mediation.helloworld.log" folderPath="myAppFolder2"> <Node name="DevNode08" environmentName="DevEnvironment08" /> <Property xsi:type="amxdata:Property" name="Property1" value="propertyValue"/> <PromotedReference xsi:type="amxdata_base:Reference_base" name="Reference2"> .. </PromotedReference> <TargetFolder xsi:type="amxdata_reference:ApplicationFolder_reference" name="root" /> <ApplicationTemplate xsi:type="amxdata_reference:ApplicationTemplate_reference" name="testApp"/> <ImportResourceTemplateName>ALL</ImportResourceTemplateName> <Logger xsi:type="amxdata:Logger" name ="com.tibco.amf.admin.api.amx.node.impl" additivity="true"> .. </Logger> </Application> </Environment>
-
In the build file
application_build.xml, set the
action attribute of the
AMXAdminTask element to
move and the
objectSelector attribute to
Environment/Application.
<target name="move-app"> <AMXAdminTask action="move" objectSelector="Environment/Application" remote="true" propsFile="$ {instanceProperties} " dataFile="$ {dataFile} " overwrite="true" merge="true" createIfNotExists="true" force="false" failOnError="false" /> </target>
- Invoke the command-line interface on the build file.
Copyright © Cloud Software Group, Inc. All rights reserved.