public static boolean curlAndExtractPackage(String workingDirectory,String packageURI,String packageDestination,boolean isDeletePackage,boolean isVerbose){
  LOG.log(Level.FINE,"Fetching package {0}",packageURI);
  LOG.fine("Fetched package can overwrite old one.");
  if (!ShellUtils.curlPackage(packageURI,packageDestination,isVerbose,false)) {
    LOG.severe("Failed to fetch package.");
    return false;
  }
  LOG.log(Level.FINE,"Extracting the package {0}",packageURI);
  if (!ShellUtils.extractPackage(packageDestination,workingDirectory,isVerbose,false)) {
    LOG.severe("Failed to extract package.");
    return false;
  }
  if (isDeletePackage && !FileUtils.deleteFile(packageDestination)) {
    LOG.warning("Failed to delete the package: " + packageDestination);
  }
  return true;
}

public static boolean curlAndExtractPackage ( String workingDirectory , String packageURI , String packageDestination , boolean isDeletePackage , boolean isVerbose ) { LOG . log ( Level . FINE , "Fetching package {0}" , packageURI ) ; LOG . fine ( "Fetched package can overwrite old one." ) ; if ( ! ShellUtils . curlPackage ( packageURI , packageDestination , isVerbose , false ) ) { LOG . severe ( "Failed to fetch package." ) ; return false ; } LOG . log ( Level . FINE , "Extracting the package {0}" , packageURI ) ; if ( ! ShellUtils . extractPackage ( packageDestination , workingDirectory , isVerbose , false ) ) { LOG . severe ( "Failed to extract package." ) ; return false ; } if ( isDeletePackage && ! FileUtils . deleteFile ( packageDestination ) ) { LOG . warning ( "Failed to delete the package: " + packageDestination ) ; } return true ; }
curl a package , extract it to working directory
