public static boolean upload(String desFile, String sourcePath, String callbackUrl, int callbackPort, String username, String password) {
    try{
      String fileName = ReportUtils.zipFile(sourcePath, desFile, true);
      File zipToSend = new File(fileName);
      if (zipToSend.exists()) {
        CallbackThread callbackThread = new CallbackThread(callbackUrl, callbackPort, username, password, zipToSend);
        callbackThread.run();
        return callbackThread.isUploadComplete();
      }
    } catch (Exception e) {
      logger.error("Could not upload the file (" + desFile +") to -> " + callbackUrl);
    }

    return false;
  }
main method.

@param args relative or absolute path of the configuration file.
KITE-Engine/src/main/java/org/webrtc/kite/Engine.java