Creating a manifest.rmd file

You can create a manifest.rmd file to contain the rule definitions for the assets in a batch update.

About this task

When you perform a batch update, you must define the rules for the assets that you are working with. You can define rules by creating rules about assets or by creating a manifest.rmd file that contains information about the asset rules. If you want to create rules, see the Creating rules for files and folders topic. Creating rules for files and folders
The manifest.rmd file contains the definitions for the following rules:
  • Name
  • Version
  • Description and short description
  • GUID
  • Asset type URI:
  • Creation time
  • Related assets
  • Artifacts
Compare your manifest.rmd file to these two samples. The first sample contains the minimum data for a manifest file; you must have the asset type descriptor group defined in your file. After you have saved the manifest.rmd file in the root directory of an asset or asset archive, then you can continue to make rules for your asset.

The root directory as an asset root.

<?xml version="1.0" encoding="UTF-8"?>
<defaultprofile:Asset xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:defaultprofile="http:///defaultprofile.ecore">
  <classification>
    <descriptorGroup name="AssetType">
      <nodeDescriptor href=""/>
    </descriptorGroup>
  </classification>
</defaultprofile:Asset>

The second sample manifest files contains all of the entries that you can define in this file.

<?xml version="1.0" encoding="UTF-8"?>
<defaultprofile:Asset xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:defaultprofile="http:///defaultprofile.ecore" 
	name="My Asset" version="1.0" shortDescription="short description">
  <classification>
    <descriptorGroup name="AssetType">
      <nodeDescriptor href="My Asset Type" />
    </descriptorGroup>
    <descriptorGroup name="CustomAttributes">
      <freeFormValue><freeFormDescriptor href="Attribute Name"/><value>attribute value</value></freeFormValue>
    </descriptorGroup>
    <descriptorGroup name="Schema Name">
      <nodeDescriptor href="Category name"/>
      <classificationSchema href=""/>
    </descriptorGroup>
  </classification>
  <solution>
    <artifact name="somefile.txt" type="text/plain">
      <reference><value>somefile.txt</value></reference>
    </artifact>
  </solution>
  <relatedAsset name="Blah" relationshipType="Depends" assetId="{FD3480B4-9E2E-6D21-BFE5-8E36A7B6FD8D}" assetVersion="1.0" />
  <description><value>Longer description</value></description>
</defaultprofile:Asset>

What to do next

After you define the asset rules, you can continue the batch update by specifying the repository and updating the assets to the repository.

Feedback