agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/submission/AbstractJobSubmissionTest.java
/**
	 * Removes software asset for a single {@link Software} object
	 */
Removes software asset for a single  Software object
Removes software asset for a single Software object
public void deleteSoftwareAssets(Software software) throws Exception {
        RemoteDataClient remoteDataClient = null;
        try {
            remoteDataClient = software.getStorageSystem().getRemoteDataClient();
            remoteDataClient.authenticate();
            if (remoteDataClient.doesExist(software.getDeploymentPath())) {
                remoteDataClient.delete(software.getDeploymentPath());
                Assert.assertFalse(remoteDataClient.doesExist(software.getDeploymentPath()), 
                        "Failed to delete software deployment path agave://" 
                      + software.getStorageSystem().getSystemId() 
                      + "/" + software.getDeploymentPath() + "after test");
            }
        } catch (Exception e) {
            Assert.fail("Failed to delete software deployment path agave://" 
                    + software.getStorageSystem().getSystemId() 
                    + "/" + software.getDeploymentPath() + " after test", e);
        } finally {
            if (remoteDataClient != null) {
                remoteDataClient.disconnect();
            }
        }
	}
public void deleteSoftwareAssets ( Software software ) throws Exception { RemoteDataClient remoteDataClient = null ; try { remoteDataClient = software . getStorageSystem ( ) . getRemoteDataClient ( ) ; remoteDataClient . authenticate ( ) ; if ( remoteDataClient . doesExist ( software . getDeploymentPath ( ) ) ) { remoteDataClient . delete ( software . getDeploymentPath ( ) ) ; Assert . assertFalse ( remoteDataClient . doesExist ( software . getDeploymentPath ( ) ) , "Failed to delete software deployment path agave://" + software . getStorageSystem ( ) . getSystemId ( ) + "/" + software . getDeploymentPath ( ) + "after test" ) ; } } catch ( Exception e ) { Assert . fail ( "Failed to delete software deployment path agave://" + software . getStorageSystem ( ) . getSystemId ( ) + "/" + software . getDeploymentPath ( ) + " after test" , e ) ; } finally { if ( remoteDataClient != null ) { remoteDataClient . disconnect ( ) ; } } }
Removes software asset for a single {@link Software} object
Removes software asset for a single { @link Software } object
// clean up the app data and archive data on the storage sytem