How to view/see an asset categorization using Ant
![]()
Hello All,
Using Ant scripting, is there a way to use the ram client to view the custom attributes and categorization of an asset?
For example, I can write this script to see the name of my asset...
<target name="viewAsset1" depends="preReq">
<ram:propertyHelper />
<ram:asset id="myasset" server="ramServer" guid="${ram.asset.guid}" version="${ram.asset.version}" />
<echo message="Asset Name = ${myasset.Name}" />
</target>
I could then use this name attribute in a variety of ways. The Name is a built in attribute and is available to me through the Asset interface. So that's no problem.
For the custom attributes and categorization, I see that there is an "AssetAttribute" (getAssetAttribute) and a "Categorizations" (getCategorizations) methods as part of the Asset interface. But these methods require parameters. I assume these are how I would retrieve the custom attributes and categorization information. Is this correct? How do I specify the parameters for these via an Ant script?
Thanks for any help!
|
Accepted answer
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.