java-middle-tier/src/main/java/com/marklogic/pipes/ui/BackendModules/BackendModulesManager.java
/**
   * Copy a list of (runtime) dependencies to the Project folder
   *
   * @param dependencies
   * @throws IOException
   */
Copy a list of (runtime) dependencies to the Project folder
@param dependencies
@throws IOException
Copy a list of ( runtime ) dependencies to the Project folder @param dependencies @throws IOException
public void copyDepdenciesToDHfSource(String[] dependencies) throws IOException {
    for (String dependency : dependencies ){
      dependency = "/root"+dependency;
      String target = clientConfig.getMlDhfRoot() + destinationDhfRoot + dependency;
      final InputStream is = Application.class.getResourceAsStream(resourcesDhfRoot + dependency);
      String targetDirectory = new File(target).getParent();
      Files.createDirectories(Paths.get(targetDirectory));
      FileUtils.copyInputStreamToFile(is, new File(target));
    }
  }
public void copyDepdenciesToDHfSource ( String [ ] dependencies ) throws IOException { for ( String dependency : dependencies ) { dependency = "/root" + dependency ; String target = clientConfig . getMlDhfRoot ( ) + destinationDhfRoot + dependency ; final InputStream is = Application . class . getResourceAsStream ( resourcesDhfRoot + dependency ) ; String targetDirectory = new File ( target ) . getParent ( ) ; Files . createDirectories ( Paths . get ( targetDirectory ) ) ; FileUtils . copyInputStreamToFile ( is , new File ( target ) ) ; } }
Copy a list of (runtime) dependencies to the Project folder
 @param dependencies
 @throws IOException
Copy a list of ( runtime ) dependencies to the Project folder @param dependencies @throws IOException