diff options
Diffstat (limited to 'src/java/com/jogamp/common/util/JogampVersion.java')
-rw-r--r-- | src/java/com/jogamp/common/util/JogampVersion.java | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/java/com/jogamp/common/util/JogampVersion.java b/src/java/com/jogamp/common/util/JogampVersion.java index e06ce1f..c2f3c3e 100644 --- a/src/java/com/jogamp/common/util/JogampVersion.java +++ b/src/java/com/jogamp/common/util/JogampVersion.java @@ -45,6 +45,16 @@ public class JogampVersion { public static final Attributes.Name IMPLEMENTATION_BRANCH = new Attributes.Name("Implementation-Branch"); /** See {@link #getImplementationCommit()} */ public static final Attributes.Name IMPLEMENTATION_COMMIT = new Attributes.Name("Implementation-Commit"); + /** See {@link #getImplementationSHA256Sources()} */ + public static final Attributes.Name IMPLEMENTATION_SHA256_SOURCES = new Attributes.Name("Implementation-SHA256-Sources"); + /** See {@link #getImplementationSHA256Classes()} */ + public static final Attributes.Name IMPLEMENTATION_SHA256_CLASSES = new Attributes.Name("Implementation-SHA256-Classes"); + /** See {@link #getImplementationSHA256ClassesThis()} */ + public static final Attributes.Name IMPLEMENTATION_SHA256_CLASSES_THIS = new Attributes.Name("Implementation-SHA256-Classes-this"); + /** See {@link #getImplementationSHA256Natives()} */ + public static final Attributes.Name IMPLEMENTATION_SHA256_NATIVES = new Attributes.Name("Implementation-SHA256-Natives"); + /** See {@link #getImplementationSHA256NativesThis()} */ + public static final Attributes.Name IMPLEMENTATION_SHA256_NATIVES_THIS = new Attributes.Name("Implementation-SHA256-Natives-this"); /** For FAT JogAmp jar files */ private static final String packageNameFAT = "com.jogamp"; @@ -155,6 +165,41 @@ public class JogampVersion { return this.getAttribute(JogampVersion.IMPLEMENTATION_COMMIT); } + /** + * Returns the SHA256 of all concatenated source files of the whole project + */ + public final String getImplementationSHA256Sources() { + return this.getAttribute(JogampVersion.IMPLEMENTATION_SHA256_SOURCES); + } + + /** + * Returns the SHA256 of all concatenated class files of all build classes + */ + public final String getImplementationSHA256Classes() { + return this.getAttribute(JogampVersion.IMPLEMENTATION_SHA256_CLASSES); + } + + /** + * Returns the SHA256 of all concatenated class files of the local (jar) package subset + */ + public final String getImplementationSHA256ClassesThis() { + return this.getAttribute(JogampVersion.IMPLEMENTATION_SHA256_CLASSES_THIS); + } + + /** + * Returns the SHA256 of all concatenated native library files of all build libs + */ + public final String getImplementationSHA256Natives() { + return this.getAttribute(JogampVersion.IMPLEMENTATION_SHA256_NATIVES); + } + + /** + * Returns the SHA256 of all concatenated native library files of the local (jar) package subset + */ + public final String getImplementationSHA256NativesThis() { + return this.getAttribute(JogampVersion.IMPLEMENTATION_SHA256_NATIVES_THIS); + } + public final String getImplementationTitle() { return this.getAttribute(Attributes.Name.IMPLEMENTATION_TITLE); } @@ -220,6 +265,11 @@ public class JogampVersion { sb.append("Implementation Build: ").append(getImplementationBuild()).append(nl); sb.append("Implementation Branch: ").append(getImplementationBranch()).append(nl); sb.append("Implementation Commit: ").append(getImplementationCommit()).append(nl); + sb.append("Implementation SHA256 Sources: ").append(getImplementationSHA256Sources()).append(nl); + sb.append("Implementation SHA256 Classes: ").append(getImplementationSHA256Classes()).append(nl); + sb.append("Implementation SHA256 Classes-this: ").append(getImplementationSHA256ClassesThis()).append(nl); + sb.append("Implementation SHA256 Natives: ").append(getImplementationSHA256Natives()).append(nl); + sb.append("Implementation SHA256 Natives-this: ").append(getImplementationSHA256NativesThis()).append(nl); if(null != getAndroidPackageVersionName()) { sb.append("Android Package Version: ").append(getAndroidPackageVersionName()).append(nl); } |