116 // so we use use bit wise compare, the verification compare is
117 // very expensive wrt. time.
118 Utils.doCompareBitWise(javaUnpackedJar, nativeUnpackedJar);
119 System.out.println("Done.");
120 } catch (Exception e) {
121 throw new RuntimeException(e);
122 } finally {
123 Utils.close(nativeUnpackerStream);
124 Utils.close(javaUnpackerStream);
125 Utils.close((Closeable) jarFile);
126 }
127 }
128 Utils.cleanup(); // cleanup artifacts, if successful run
129 }
130
131 /**
132 * @param args the command line arguments
133 */
134 public static void main(String[] args) throws Exception {
135 // select the jars carefully, adding more jars will increase the
136 // testing time, especially for jprt.
137 jarList.add(Utils.createRtJar());
138 jarList.add(Utils.getGoldenJar());
139 System.out.println(jarList);
140 doPackUnpack();
141 }
142 }
|
116 // so we use use bit wise compare, the verification compare is
117 // very expensive wrt. time.
118 Utils.doCompareBitWise(javaUnpackedJar, nativeUnpackedJar);
119 System.out.println("Done.");
120 } catch (Exception e) {
121 throw new RuntimeException(e);
122 } finally {
123 Utils.close(nativeUnpackerStream);
124 Utils.close(javaUnpackerStream);
125 Utils.close((Closeable) jarFile);
126 }
127 }
128 Utils.cleanup(); // cleanup artifacts, if successful run
129 }
130
131 /**
132 * @param args the command line arguments
133 */
134 public static void main(String[] args) throws Exception {
135 // select the jars carefully, adding more jars will increase the
136 // testing time.
137 jarList.add(Utils.createRtJar());
138 jarList.add(Utils.getGoldenJar());
139 System.out.println(jarList);
140 doPackUnpack();
141 }
142 }
|