Jogamp
Bug 881 - Add 'Application-Name' in Jar's manifest to avoid Java6 NPEs ..
authorSven Gothel <sgothel@jausoft.com>
Fri, 1 Nov 2013 00:35:58 +0000 (01:35 +0100)
committerSven Gothel <sgothel@jausoft.com>
Fri, 1 Nov 2013 00:35:58 +0000 (01:35 +0100)
make/build.xml
manifest.mf

index f11e6a5..f1c2039 100644 (file)
         </javac>
         <antcall target="redbook-javac" inheritrefs="true" />
         <antcall target="nurbs" inheritrefs="true" />
-        <jar destfile="${jogl-demos.jar}">
+        <jar manifest="${project.root}/manifest.mf" destfile="${jogl-demos.jar}">
             <fileset dir="${classes}">
                 <exclude name="gleem/**" />
                 <exclude name="demos/util/**" />
                 <include name="demos/particles/engine/images/*.jpg" />
             </fileset>
         </jar>
-        <jar destfile="${jogl-demos-util.jar}">
+        <jar manifest="${project.root}/manifest.mf" destfile="${jogl-demos-util.jar}">
             <fileset dir="${classes}">
                 <include name="gleem/**" />
                 <include name="demos/util/**" />
             </fileset>
         </jar>
-        <jar destfile="${jogl-demos-data.jar}">
+        <jar manifest="${project.root}/manifest.mf" destfile="${jogl-demos-data.jar}">
             <fileset dir="${src}">
                 <include name="demos/data/**" />
                 <exclude name="demos/data/models/dragon.obj" />
             </fileset>
         </jar>
         <!-- due to size or usability .. create self packaged jars (code + data) -->
-        <jar destfile="${jogl-demos-dualDepthPeeling.jar}">
+        <jar manifest="${project.root}/manifest.mf" destfile="${jogl-demos-dualDepthPeeling.jar}">
             <fileset dir="${classes}">
                 <include name="demos/dualDepthPeeling/**" />
             </fileset>
                 <include name="demos/data/**" />
             </fileset>
         </jar>
-        <jar destfile="${jogl-demos-tennis.jar}">
+        <jar manifest="${project.root}/manifest.mf" destfile="${jogl-demos-tennis.jar}">
             <fileset dir="${classes}">
                 <include name="demos/tennis/**" />
             </fileset>
             <src path="${src}" />
             <classpath refid="jogl-demos.classpath" />
         </javac>
-        <jar destfile="${jogl-demos.jar}">
+        <jar manifest="${project.root}/manifest.mf" destfile="${jogl-demos.jar}">
             <fileset dir="${classes}">
                 <include name="**" />
             </fileset>
index 328e8e5..9b9f1de 100644 (file)
@@ -1,3 +1,9 @@
 Manifest-Version: 1.0
-X-COMMENT: Main-Class will be added automatically by build
-
+Application-Name: Java Bindings for OpenGL Test
+Specification-Title: Java Bindings for OpenGL Tests
+Specification-Vendor: JogAmp Community
+Implementation-Title: Java Bindings for OpenGL Tests
+Implementation-Vendor: JogAmp Community
+Implementation-URL: http://jogamp.org/
+Extension-Name: javax.media.opengl
+Implementation-Vendor-Id: com.jogamp
http://JogAmp.org git info: FAQ, tutorial and man pages.