code: protected static String stripSuffix (String path)
      {
          if (path.endsWith(".jar")) {
              return path.substring(0, path.length()-4);
          } else {
              // we have to change the path somehow
              return path + "-cache";
          }
      }
docs: Strips the .jar off of jar file paths.