Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Download/Asset tag in ram ant library fails after 7.5.3 RAM upgrade

   I have an ant script used to download an asset from RAM. If the version is not supplied, the latest version should be selected and downloaded. This was working fine under 7.5.2.4 but after the upgrade to 7.5.3, it fails. The portion of the script is as follows:

<ram:download destdir="${env.ram_destination_path}" server="ramServer" extract="true" overwrite="true">
<ram:asset guid="${env.ram_download_asset_guid}" server="ramServer" >

Excerpt from stack trace:
[ram:download] log4j:ERROR Unexpected char [i] at position 33 in conversion patterrn.
[ram:download] [07/13/17 11:46:00 EDT] %-10i 0       DEBUG     main                                  com.ibm.ram.client.RAMSession         RAMSession.java - Loading the 'com.ibm.ram.internal.client.RAMClient' using context class loader
[ram:download] [07/13/17 11:46:00 EDT] %-10i 0       DEBUG     main                                  com.ibm.ram.client.RAMSession         RAMSession.java - Loading the 'com.ibm.ram.internal.client.RAMClient' using context class loader
[ram:download] [07/13/17 11:46:03 EDT] %-10i 2846    DEBUG     main                                  com.ibm.ram.client.RAMSession         RAMSession.java - 
[ram:download] com.ibm.ram.common.data.exception.AssetNotFoundException
[ram:download] at com.ibm.ram.internal.access.ws.Utilitiesv72.copy(Utilitiesv72.java:1087)
[ram:download] at com.ibm.ram.internal.access.ws.RAMv72.getAssetByID(RAMv72.java:1889)
[ram:download] at com.ibm.ram.client.RAMSession.fetchAssetFromServer(RAMSession.java:955)
[ram:download] at com.ibm.ram.client.RAMSession.getAsset(RAMSession.java:665)
[ram:download] at com.ibm.ram.client.RAMSession.getAsset(RAMSession.java:719)
[ram:download] at com.ibm.ram.internal.client.ant.types.Asset.getAsset(Asset.java:433)
[ram:download] at com.ibm.ram.internal.client.ant.tasks.DownloadTask.downloadAssets(DownloadTask.java:312)


Can someone assist?

0 votes



One answer

Permanent link

 Hi Kary,

Can you try giving the version num of the asset you are trying to find and see if it works.


0 votes

Comments

Yes. Supplying the version works as expected. However, due to the nature of the application, I need my ant script to automatically select the latest version. Is there a new way to do this?

 Hi Kary,


You may want to try giving version="*" . 

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jul 13 '17, 12:43 p.m.

Question was seen: 2,466 times

Last updated: Jul 18 '17, 6:12 a.m.

Confirmation Cancel Confirm