[x3d-public] X3DJSAIL and X3dToNodeJS.xslt fixes

John Carlson yottzumm at gmail.com
Mon Aug 16 09:43:27 PDT 2021


Please define ${X3DJSAIL.tests.dir} in x3d/stylesheets/build.xml I have 
commented out for now

====================================================================================


Below, we need a process.exit(0) at the end of the generated JavaScript 
file because node-java 0.12.2 prevents the JavaScript file from exiting 
on at least Linux. I've only gotten OpenJDK 15 working with node-java 
(or java) 0.12.1.   I am using node-java 0.12.2 in X3DJSONLD and when 
running through stylesheet tests, this is important. I wlll copy 
modification to X3DJSONLD and check in there.

I'm not quite there with OpenJDK 16.

John



$ svn diff X3dTo*xslt
Index: X3dToNodeJS.xslt
===================================================================
--- X3dToNodeJS.xslt    (revision 32360)
+++ X3dToNodeJS.xslt    (working copy)
@@ -299,7 +299,8 @@
         }
  }
  </xsl:text><!-- class complete -->
-<xsl:text>new </xsl:text><xsl:value-of 
select="$newClassName"/><xsl:text>().main();</xsl:text>
+<xsl:text>new </xsl:text><xsl:value-of 
select="$newClassName"/><xsl:text>().main();
+process.exit(0);</xsl:text>


      </xsl:template>






More information about the x3d-public mailing list