29package com.jogamp.common.util;
31import java.io.IOException;
32import java.net.URISyntaxException;
33import java.security.NoSuchAlgorithmException;
36import com.jogamp.common.GlueGenVersion;
37import com.jogamp.junit.util.SingletonJunitCase;
39import org.junit.Assert;
40import org.junit.FixMethodOrder;
41import org.junit.runners.MethodSorters;
43@FixMethodOrder(MethodSorters.NAME_ASCENDING)
45 static boolean VERBOSE =
false;
50 System.err.println(
"Version Info:");
52 System.err.println(
"");
53 System.err.println(
"Full Manifest:");
59 throws IllegalArgumentException, IOException, URISyntaxException, SecurityException, NoSuchAlgorithmException
63 System.err.println(
"SHA CLASSES.this (build-time): "+shaClassesThis);
66 final byte[] shasum = shaSum.
compute(VERBOSE);
68 System.err.println(
"SHA CLASSES.this (now): "+shaClasses);
69 Assert.assertEquals(
"SHA not equal", shaClassesThis, shaClasses);
72 public static void main(
final String args[])
throws IOException {
75 org.junit.runner.JUnitCore.
main(tstname);
gluegen-rt.jar definition of SHASum.TempJarSHASum's specialization of SHASum.
static GlueGenVersion getInstance()
final StringBuilder getFullManifestInfo(final StringBuilder sb)
final String getImplementationSHAClassesThis()
Returns the SHA of all concatenated class files of the local (jar) package subset.
Utility class to produce secure hash (SHA) sums over diverse input sources.
final byte[] compute(final boolean verbose)
Implementation gathers all files traversing through given paths via IOUtil#filesOf(List,...
static StringBuilder toHexString(final byte[] shasum, StringBuilder sb)
Simple helper to print the given byte-array into a string, here appended to StringBuilder.
static void main(final String args[])
static StringBuilder getPlatformInfo(StringBuilder sb)
Appends environment information like OS, JVM and CPU architecture properties to the StringBuilder.