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

Removing artifact from asset

 RAM 7.5.3.1 - The following code snippet attempts to delete an artifact from an asset.  It runs without throwing any errors, but it does not actually delete the artifact.  Anyone know what I am doing wrong?


    RAMAsset asset = allMyAssets.get(1);

    try {
        session = new RAMSession(url, user, pass);
        RAMFolderArtifact root = (RAMFolderArtifact) asset.getArtifactsRoot();
        Artifact[] artifacts2 = root.getChildren();

        System.out.println( root.removeArtifact(artifacts2[0]) );  

        session.queueAssetForPut(asset);
        session.putAssets(new NullProgressMonitor());
        
        session.release();

    } catch (RAMRuntimeException e) {
        e.printStackTrace();

    } catch (IOException e) {
        e.printStackTrace();
    }


0 votes



One answer

Permanent link

 Looks like there is no problem with my code but a serious problem with the instance of RAM i am trying to run it against.  Oh well....

0 votes

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
× 10,938

Question asked: Oct 09 '19, 5:32 a.m.

Question was seen: 2,190 times

Last updated: Oct 09 '19, 11:49 a.m.

Confirmation Cancel Confirm