110 Utils.doCompareBitWise(javaUnpackedJar, nativeUnpackedJar);
111 System.out.println("Done.");
112 } catch (Exception e) {
113 throw new RuntimeException(e);
114 } finally {
115 Utils.close(nativeUnpackerStream);
116 Utils.close(javaUnpackerStream);
117 Utils.close((Closeable) jarFile);
118 }
119 }
120 Utils.cleanup(); // cleanup artifacts, if successful run
121 }
122
123 /**
124 * @param args the command line arguments
125 */
126 public static void main(String[] args) throws IOException {
127 // select the jars carefully, adding more jars will increase the
128 // testing time, especially for jprt.
129 jarList.add(Utils.createRtJar());
130 jarList.add(Utils.locateJar("golden.jar"));
131 System.out.println(jarList);
132 doPackUnpack();
133 }
134 }
|
110 Utils.doCompareBitWise(javaUnpackedJar, nativeUnpackedJar);
111 System.out.println("Done.");
112 } catch (Exception e) {
113 throw new RuntimeException(e);
114 } finally {
115 Utils.close(nativeUnpackerStream);
116 Utils.close(javaUnpackerStream);
117 Utils.close((Closeable) jarFile);
118 }
119 }
120 Utils.cleanup(); // cleanup artifacts, if successful run
121 }
122
123 /**
124 * @param args the command line arguments
125 */
126 public static void main(String[] args) throws IOException {
127 // select the jars carefully, adding more jars will increase the
128 // testing time, especially for jprt.
129 jarList.add(Utils.createRtJar());
130 jarList.add(Utils.getGoldenJar());
131 System.out.println(jarList);
132 doPackUnpack();
133 }
134 }
|