aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes')
-rw-r--r--src/classes/J3dVersion2
-rw-r--r--src/classes/build.xml94
-rw-r--r--src/classes/share/javax/media/j3d/J3dDebug.java2
-rw-r--r--src/classes/share/javax/media/j3d/RenderBin.java2
-rw-r--r--src/classes/share/javax/media/j3d/VersionInfo.java209
-rw-r--r--src/classes/share/javax/media/j3d/VirtualUniverse.java6
6 files changed, 58 insertions, 257 deletions
diff --git a/src/classes/J3dVersion b/src/classes/J3dVersion
index 748a302..61276d5 100644
--- a/src/classes/J3dVersion
+++ b/src/classes/J3dVersion
@@ -3,7 +3,7 @@ Specification-Title: Java 3D API Specification
Specification-Version: 1.3
Specification-Vendor: Sun Microsystems, Inc.
Implementation-Title: Java 3D Core Runtime Environment
-Implementation-Version: 1.3.2
+Implementation-Version: @VERSION_BASE@
Implementation-Vendor: Sun Microsystems, Inc.
Extension-Name: javax.media.j3d
Implementation-Vendor-Id: com.sun
diff --git a/src/classes/build.xml b/src/classes/build.xml
index 6dcdf37..d538822 100644
--- a/src/classes/build.xml
+++ b/src/classes/build.xml
@@ -31,25 +31,21 @@
<mkdir dir="${build}/${platform}/debug/classes"/>
<!-- Create the directories used for compiling generated files -->
- <property name="build-debug-gen" location="${build}/${platform}/debug/gen"/>
<mkdir dir="${build-debug-gen}/tools"/>
<mkdir dir="${build-debug-gen}/classes/javax/media/j3d"/>
- <!-- Compile and execute the program to create the build time stamp class -->
- <javac srcdir="${build-tools}"
- destdir="${build-debug-gen}/tools"
- source="1.4"
- target="1.4"
- debug="yes"
- deprecation="on">
- </javac>
-
- <!-- Execute the time stamp generator -->
- <java classname="MakeJ3dBuildInfo"
- classpath="${build-debug-gen}/tools">
- <arg value="-debug"/>
- <arg value="${build-debug-gen}/classes"/>
- </java>
+ <!-- Copy VersionInfo.java file and change tags for this build -->
+ <copy file="${build-tools}/VersionInfo.java"
+ todir="${build-debug-gen}/classes/javax/media/j3d"
+ overwrite="true">
+ <filterset>
+ <filter token="VERSION_BUILD" value="${version_build}"/>
+ <filter token="VERSION_BASE" value="${version_base}"/>
+ <filter token="IS_DEBUG" value="true"/>
+ <filter token="DEV_PHASE" value="true"/>
+ <filter token="TIME_STAMP" value="${buildtime_verbose}"/>
+ </filterset>
+ </copy>
<!-- Compile the java code from ${src} into ${build}/${platform}/debug/classes -->
<javac srcdir="${src}/classes/share:${src}/classes/${ostype}:${core_utils_src}/classes/share:${build-debug-gen}/classes"
@@ -74,35 +70,31 @@
<mkdir dir="${build}/${platform}/opt/classes"/>
<!-- Create the directories used for compiling generated files -->
- <property name="build-opt-gen" location="${build}/${platform}/opt/gen"/>
<mkdir dir="${build-opt-gen}/tools"/>
<mkdir dir="${build-opt-gen}/classes/javax/media/j3d"/>
- <!-- Compile and execute the program to create the build time stamp class -->
- <javac srcdir="${build-tools}"
- destdir="${build-opt-gen}/tools"
- source="1.4"
- target="1.4"
- debug="no"
- deprecation="on">
- </javac>
-
- <!-- Execute the time stamp generator -->
- <java classname="MakeJ3dBuildInfo"
- classpath="${build-opt-gen}/tools">
- <arg value="${build-opt-gen}/classes"/>
- </java>
+ <!-- Copy VersionInfo.java file and change tags for this build -->
+ <copy file="${build-tools}/VersionInfo.java"
+ todir="${build-opt-gen}/classes/javax/media/j3d"
+ overwrite="true">
+ <filterset>
+ <filter token="VERSION_BUILD" value="${version_build}"/>
+ <filter token="VERSION_BASE" value="${version_base}"/>
+ <filter token="IS_DEBUG" value="false"/>
+ <filter token="DEV_PHASE" value="${dev_phase}"/>
+ <filter token="TIME_STAMP" value="${buildtime_verbose}"/>
+ </filterset>
+ </copy>
<!-- Compile the java code from ${src} into ${build}/${platform}/opt/classes -->
- <javac srcdir="${src}/classes/share:${src}/classes/${ostype}:${core_utils_src}/classes/share:${build-opt-gen}/classes"
- destdir="${build}/${platform}/opt/classes"
- source="1.4"
- target="1.4"
- debug="no"
+ <javac srcdir="${src}/classes/share:${src}/classes/${ostype}:${core_utils_src}/classes/share:${build-opt-gen}/classes" destdir="${build}/${platform}/opt/classes"
+ source="1.4"
+ target="1.4"
+ debug="no"
deprecation="off">
- <classpath refid="vecmath.opt.classpath"/>
+ <classpath refid="vecmath.opt.classpath"/>
</javac>
-
+
<!-- Copy the I18N property files while retaining package location -->
<copy todir="${build}/${platform}/opt/classes">
<fileset dir="${src}/classes/share" includes="**/*.properties"/>
@@ -114,6 +106,15 @@
<!-- Create the j3dcore and j3dutils jars directory -->
<mkdir dir="${build}/${platform}/debug/lib/ext"/>
+ <copy todir="${build-debug-gen}"
+ overwrite="true">
+ <fileset dir="${src}/classes" includes="J3dVersion"/>
+ <fileset dir="${core_utils_src}/classes" includes="ToolsVersion"/>
+ <filterset>
+ <filter token="VERSION_BASE" value="${version_base}"/>
+ </filterset>
+ </copy>
+
<!-- Copy the copyright file and all license files for j3dcore.jar -->
<copy todir="${build}/${platform}/debug/classes/javax">
<fileset dir="${src}/.." includes="COPYRIGHT.txt"/>
@@ -128,14 +129,14 @@
<!-- Put everything in ${build}/${platform}/debug/classes/javax into the j3dcore.jar file -->
<jar jarfile="${build}/${platform}/debug/lib/ext/j3dcore.jar"
- manifest="${src}/classes/J3dVersion" update="yes"
+ manifest="${build-debug-gen}/J3dVersion" update="yes"
compress="false">
<fileset dir="${build}/${platform}/debug/classes" includes="javax/**/*"/>
</jar>
<!-- Put everything in ${build}/${platform}/debug/classes/com into the j3dutils.jar file -->
<jar jarfile="${build}/${platform}/debug/lib/ext/j3dutils.jar"
- manifest="${core_utils_src}/classes/ToolsVersion" update="yes"
+ manifest="${build-debug-gen}/ToolsVersion" update="yes"
compress="false">
<fileset dir="${build}/${platform}/debug/classes" includes="com/**/*"/>
</jar>
@@ -145,6 +146,15 @@
<!-- Create the j3dcore and j3dutils jars directory -->
<mkdir dir="${build}/${platform}/opt/lib/ext"/>
+ <copy todir="${build-opt-gen}"
+ overwrite="true">
+ <fileset dir="${src}/classes" includes="J3dVersion"/>
+ <fileset dir="${core_utils_src}/classes" includes="ToolsVersion"/>
+ <filterset>
+ <filter token="VERSION_BASE" value="${version_base}"/>
+ </filterset>
+ </copy>
+
<!-- Copy the copyright file and all license files for j3dcore.jar -->
<copy todir="${build}/${platform}/opt/classes/javax">
<fileset dir="${src}/.." includes="COPYRIGHT.txt"/>
@@ -159,14 +169,14 @@
<!-- Put everything in ${build}/${platform}/opt/classes/javax into the j3dcore.jar file -->
<jar jarfile="${build}/${platform}/opt/lib/ext/j3dcore.jar"
- manifest="${src}/classes/J3dVersion" update="yes"
+ manifest="${build-opt-gen}/J3dVersion" update="yes"
compress="false">
<fileset dir="${build}/${platform}/opt/classes" includes="javax/**/*"/>
</jar>
<!-- Put everything in ${build}/${platform}/opt/classes/com into the j3dutils.jar file -->
<jar jarfile="${build}/${platform}/opt/lib/ext/j3dutils.jar"
- manifest="${core_utils_src}/classes/ToolsVersion" update="yes"
+ manifest="${build-opt-gen}/ToolsVersion" update="yes"
compress="false">
<fileset dir="${build}/${platform}/opt/classes" includes="com/**/*"/>
</jar>
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()) {