agave-apps/apps-core/src/test/java/org/iplantc/service/apps/queue/actions/AbstractWorkerActionTest.java
/**
     * Stages {@link Software} deployment assets to the {@link StorageSystem}
     * @param software
     * @throws Exception
     */
Stages  Software deployment assets to the  StorageSystem
@param software
@throws Exception
Stages Software deployment assets to the StorageSystem @param software @throws Exception
protected void stageRemoteSoftwareAssets(Software software) throws Exception 
    {
        RemoteSystem storageSystem = software.getStorageSystem();
        RemoteDataClient storageDataClient = null;
        try 
        {
            Path localSoftwareDeploymentDir = Paths.get(FORK_SOFTWARE_TEMPLATE_FILE).getParent();
            storageDataClient = storageSystem.getRemoteDataClient();
            storageDataClient.authenticate();
            String parentPath = FilenameUtils.getPath(software.getDeploymentPath());
            storageDataClient.mkdirs(parentPath);
            storageDataClient.put(localSoftwareDeploymentDir.toString(), parentPath);
        }
        finally {
            try {
                if (storageDataClient != null) {
                    storageDataClient.disconnect();
                }
            } catch (Exception ignored) {}
        }
    }
protected void stageRemoteSoftwareAssets ( Software software ) throws Exception { RemoteSystem storageSystem = software . getStorageSystem ( ) ; RemoteDataClient storageDataClient = null ; try { Path localSoftwareDeploymentDir = Paths . get ( FORK_SOFTWARE_TEMPLATE_FILE ) . getParent ( ) ; storageDataClient = storageSystem . getRemoteDataClient ( ) ; storageDataClient . authenticate ( ) ; String parentPath = FilenameUtils . getPath ( software . getDeploymentPath ( ) ) ; storageDataClient . mkdirs ( parentPath ) ; storageDataClient . put ( localSoftwareDeploymentDir . toString ( ) , parentPath ) ; } finally { try { if ( storageDataClient != null ) { storageDataClient . disconnect ( ) ; } } catch ( Exception ignored ) { } } }
Stages {@link Software} deployment assets to the {@link StorageSystem}
 @param software
 @throws Exception
Stages { @link Software } deployment assets to the { @link StorageSystem } @param software @throws Exception
//            if (!storageDataClient.doesExist(software.getDeploymentPath())) { //                String parentPath = FilenameUtils.getPath(software.getDeploymentPath()); //                storageDataClient.mkdirs(parentPath); //                storageDataClient.put(localSoftwareDeploymentDir.toAbsolutePath().toString(), parentPath); //            } //            else //            { //                for (File localSoftwareAssetPath: localSoftwareDeploymentDir.toFile().listFiles()) { //                    if (!storageDataClient.doesExist(software.getDeploymentPath() + File.separator + localSoftwareAssetPath.getName())) { //                        storageDataClient.put(localSoftwareAssetPath.getAbsolutePath(), FilenameUtils.getPath(software.getDeploymentPath()) + File.separator + localSoftwareAssetPath.getName()); //                    } //                } //            }