public static TFile jarFile(final File jarFile, final String dirInJar, final String targetFileName) {
return new TFile(format("{0}/{1}/{2}", jarFile.getAbsolutePath(), dirInJar, targetFileName));
}
private static void createNewFile(final TFile patchFilePath, final TFile jar) {
TFileInputStream inputStream = null;
TFileOutputStream outputStream = null;
try {
inputStream = new TFileInputStream(patchFilePath);
outputStream = new TFileOutputStream(jar);
ByteStreams.copy(inputStream, outputStream);
} catch (Exception e) {
throw new RuntimeException(e);