diff options
author | paulby <[email protected]> | 2004-09-17 19:48:00 +0000 |
---|---|---|
committer | paulby <[email protected]> | 2004-09-17 19:48:00 +0000 |
commit | a9908396a7f2b30af6c653dbc36295d79aa1417f (patch) | |
tree | da9fff7cfd0d827900b049f29947f47845ca9796 /src/classes/share | |
parent | 319802ae3fca8891b3f595bf92e5a490a641cee9 (diff) |
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Update to build system and source files so that the build version number
(and other related information) is maintained exclusively in the top
level build.xml script.
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@40 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src/classes/share')
4 files changed, 5 insertions, 214 deletions
diff --git a/src/classes/share/javax/media/j3d/J3dDebug.java b/src/classes/share/javax/media/j3d/J3dDebug.java index 3b056a5..564d61a 100644 --- a/src/classes/share/javax/media/j3d/J3dDebug.java +++ b/src/classes/share/javax/media/j3d/J3dDebug.java @@ -37,7 +37,7 @@ class J3dDebug { // uncovering potential bugs during code development. This // variable should be turned off during production release as it // may cause performance hit. - static final boolean devPhase = true; + static final boolean devPhase = VersionInfo.devPhase; // This is a property variable. It allows a true/false be sent to // J3d from command line, to on/off code segments. To avoid diff --git a/src/classes/share/javax/media/j3d/RenderBin.java b/src/classes/share/javax/media/j3d/RenderBin.java index 1f44d42..ff14754 100644 --- a/src/classes/share/javax/media/j3d/RenderBin.java +++ b/src/classes/share/javax/media/j3d/RenderBin.java @@ -5729,7 +5729,7 @@ System.out.println("......tb.soleUser= " + } // Assertion check in debug mode - if (J3dBuildInfo.isDebug && dirtyDepthSortRenderAtom.contains(ra)) { + if (VersionInfo.isDebug && dirtyDepthSortRenderAtom.contains(ra)) { System.err.println("removeARenderAtom: ERROR: RenderAtom not removed from dirty list"); } } diff --git a/src/classes/share/javax/media/j3d/VersionInfo.java b/src/classes/share/javax/media/j3d/VersionInfo.java deleted file mode 100644 index 9f6aa56..0000000 --- a/src/classes/share/javax/media/j3d/VersionInfo.java +++ /dev/null @@ -1,209 +0,0 @@ -/* - * $RCSfile$ - * - * Copyright (c) 2004 Sun Microsystems, Inc. All rights reserved. - * - * Use is subject to license terms. - * - * $Revision$ - * $Date$ - * $State$ - */ - -package javax.media.j3d; - -/** - * The VersionInfo class contains strings that describe the implementation - * and specification version of Java 3D. These strings are made available - * as properties obtained from the VirtualUniverse class. - * - * <h4>NOTE TO DEVELOPERS:</h4> - * - * <p> - * Developers are required to do the following whenever they modify - * Java 3D: - * - * <ol> - * <li>The VENDOR_DEVELOPER string must be modified to - * indicate the name of the individuals or organizations who have - * modified the source code.</li> - * - * <li>The VERSION_DEV_STRING may be modified to indicate - * additional information about the particular build, but this is - * not required.</li> - * - * <li>The strings denoted as being unmodifiable must <i>not</i> be - * modified.</li> - * </ol> - * - * <p> - * Additionally, developers are required to comply with the terms - * of the Java 3D API specification, which prohibits releasing an - * implementation of the Java 3D API without first licensing and - * passing the TCK tests. - * - * @see VirtualUniverse#getProperties - */ -class VersionInfo extends Object { - /** - * Developer who has modified Java 3D. - * This string <i>must</i> be modified to indicate the name of the - * individual(s) or organization(s) who modified the code. - */ - private static final String VENDOR_DEVELOPER = null; - - /** - * String identifying the particular build of Java 3D, for - * example, beta1, build47, rc1, etc. This string may only - * contain letters, numbers, periods, dashes, or underscores. It - * must not contain any other characters or spaces. - * - * This will typically by null for final, released builds, but - * should be non-null for all other builds. - */ - private static final String VERSION_BUILD = "build6"; - - /** - * Time and date stamp appended to the end of the version string. - * This is appended to the version string - * after the build identifier (and after the first space, which - * will automatically be added) and before the optional dev - * string. This string should be null if no time stamp is desired - * (it will be null for production builds). - */ - private static final String VERSION_TIME_STAMP = J3dBuildInfo.getBuildTimeStamp(); - - /** - * An optional string appended to the end of the version string, - * after the time stamp. A space will be automatically prepended - * to this string. This string should be null if no dev string is - * desired. - */ - private static final String VERSION_DEV_STRING = null; - - // ------------------------------------------------------------------- - // ------------------------------------------------------------------- - // END OF DEVELOPER-MODIFIABLE PARAMETERS - // ------------------------------------------------------------------- - // ------------------------------------------------------------------- - - - // ------------------------------------------------------------------- - // The following set of constants must not be modified by developers. - // - // Only qualified licensees of the Java 3D API specification and - // TCK tests, who are releasing their own implementation of Java 3D - // are permitted to change these constants. - // ------------------------------------------------------------------- - - /** - * Specification version (major and minor version only). This - * string must not be modified by developers. - */ - private static final String SPECIFICATION_VERSION = "1.3"; - - /** - * Specification vendor. This should never change and must not - * be modified by developers. - */ - private static final String SPECIFICATION_VENDOR = "Sun Microsystems, Inc."; - - /** - * Primary implementation vendor. This should only be changed by a - * platform vendor who has licensed the TCK tests and who is - * releasing their own implementation of Java 3D. - */ - private static final String VENDOR_PRIMARY = "Sun Microsystems, Inc."; - - /** - * Base version number. This is the major.minor.subminor version - * number. Version qualifiers are specified separately. The - * major and minor version <i>must</i> be the same as the specification - * version. - */ - private static final String VERSION_BASE = "1.3.2"; - - /** - * Qualifier indicating that the version of Java 3D is - * experimental. This must <i>not</i> be modified by deverlopers. - * All non-official builds <i>must</i> contain the string - * <code>"experimental"</code> as part of the release name that - * appears before the optional first space. - */ - private static final String VERSION_SUFFIX = "experimental"; - - /** - * The composite version string. This is composed in the static - * initializer for this class. - */ - private static final String VERSION; - - /** - * The composite vendor string. This is composed in the static - * initializer for this class. - */ - private static final String VENDOR; - - // The static initializer composes the version and vendor strings - static { - // Assign the vendor by concatenating primary and developer - // vendor strings - String tmpVendor = VENDOR_PRIMARY; - if (VENDOR_DEVELOPER != null) { - tmpVendor += " & " + VENDOR_DEVELOPER; - } - - String tmpVersion = VERSION_BASE; - if (VERSION_BUILD != null) { - tmpVersion += "-" + VERSION_BUILD; - } - - if (VERSION_SUFFIX != null) { - tmpVersion += "-" + VERSION_SUFFIX; - } - - if (VERSION_TIME_STAMP != null) { - tmpVersion += " " + VERSION_TIME_STAMP; - } - - if (VERSION_DEV_STRING != null) { - tmpVersion += " " + VERSION_DEV_STRING; - } - - VERSION = tmpVersion; - VENDOR = tmpVendor; - } - - /** - * Returns the specification version string. - * @return the specification version string - */ - static String getSpecificationVersion() { - return SPECIFICATION_VERSION; - } - - /** - * Returns the specification vendor string. - * @return the specification vendor string - */ - static String getSpecificationVendor() { - return SPECIFICATION_VENDOR; - } - - - /** - * Returns the implementation version string. - * @return the implementation version string - */ - static String getVersion() { - return VERSION; - } - - /** - * Returns the implementation vendor string. - * @return the implementation vendor string - */ - static String getVendor() { - return VENDOR; - } -} diff --git a/src/classes/share/javax/media/j3d/VirtualUniverse.java b/src/classes/share/javax/media/j3d/VirtualUniverse.java index 35b1d69..d308173 100644 --- a/src/classes/share/javax/media/j3d/VirtualUniverse.java +++ b/src/classes/share/javax/media/j3d/VirtualUniverse.java @@ -219,7 +219,7 @@ public class VirtualUniverse extends Object { static { // Print out version information unless this is a // non-debuggable, release (fcs) build - if(J3dDebug.devPhase || J3dBuildInfo.isDebug) { + if(J3dDebug.devPhase || VersionInfo.isDebug) { String versionStr = VersionInfo.getVersion(); if (J3dDebug.devPhase) { System.err.println("Java 3D pre-release version: " + versionStr); @@ -231,7 +231,7 @@ public class VirtualUniverse extends Object { } // Print out debugging information for debug builds - if(J3dBuildInfo.isDebug) { + if(VersionInfo.isDebug) { System.err.println("Initializing Java 3D runtime system:"); System.err.println(" version = " + VersionInfo.getVersion()); System.err.println(" vendor = " + VersionInfo.getVendor()); @@ -255,7 +255,7 @@ public class VirtualUniverse extends Object { createMC(); // Print out debugging information for debug builds - if(J3dBuildInfo.isDebug) { + if(VersionInfo.isDebug) { System.err.println("Java 3D system initialized"); System.err.print(" graphics library = "); switch (mc.getRenderingAPI()) { |