Moving an Application to a Folder
You can move a an application to a folder from the GUI or by using the CLI.
GUI
- Procedure
-
Click Applications.
-
Select an environment from the Environment drop-down list.
-
In Applications list, select an application folder and click Move .
-
Select the folder where you want to move the application and click Save.
The application is added to the specified folder.
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 theAMXAdminTask
element to move and theobjectSelector
attribute toEnvironment/Application
.<target name="move-app"> <AMXAdminTask action="move" bjectSelector="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.