private static String normalizeJarEntryPath(String jarEntryDirPath,boolean directory){
  if (!jarEntryDirPath.startsWith("/")) {
    jarEntryDirPath="/" + jarEntryDirPath;
  }
  if (directory && !jarEntryDirPath.endsWith("/")) {
    jarEntryDirPath=jarEntryDirPath + "/";
  }
  return jarEntryDirPath;
}

private static String normalizeJarEntryPath ( String jarEntryDirPath , boolean directory ) { if ( ! jarEntryDirPath . startsWith ( "/" ) ) { jarEntryDirPath = "/" + jarEntryDirPath ; } if ( directory && ! jarEntryDirPath . endsWith ( "/" ) ) { jarEntryDirPath = jarEntryDirPath + "/" ; } return jarEntryDirPath ; }
trying to hide any jarfile implementation inconsistencies .
