[x3d-public] patch forwww.web3d.org/x3d/stylesheets/java/build.xmlX3DJSAILexamples, CommandLine andConfigurationProperties

John Carlson yottzumm at gmail.com
Wed Jan 3 12:03:58 PST 2018


Additional nashorn update (new replacement zip)

https://coderextreme.net/X3DJSONLD/nashorn2.zip

John

Sent from Mail for Windows 10

From: John Carlson
Sent: Wednesday, January 3, 2018 2:33 PM
To: Don Brutzman
Cc: x3d-public at web3d.org; brutzman at nps.edu
Subject: RE: patch forwww.web3d.org/x3d/stylesheets/java/build.xmlX3DJSAILexamples, CommandLine andConfigurationProperties

Patches attached (but back out your changes first). Otherwise, patch build.xml, run test.nashorn, and compare outputs between java/examples and java/nashorn/examples, and apply your own fixes to X3DJSAIL until you get agreement between the JSON files (2) and X3D XML files (3).

There will still be a difference between the X3D XML files, previously mentioned and perhaps patched by you (MetadataString), so perhaps working from your changes, and applying mine selectively would be best (but please at least patch build.xml—you can call the OutputOutput files whatever you like, just let me know).
John

Sent from Mail for Windows 10

From: John Carlson
Sent: Wednesday, January 3, 2018 2:24 PM
To: Don Brutzman
Cc: x3d-public at web3d.org; brutzman at nps.edu
Subject: RE: patch for www.web3d.org/x3d/stylesheets/java/build.xmlX3DJSAILexamples, CommandLine and ConfigurationProperties

Okay, last set of fixes went downhill. XML output from JavaScript program: HelloWorldProgramOutputOutput.js (and HelloWorldProgram.java) and HelloWorldProgramOutput.java differ, see attached patch.  JSON output from HelloWorldProgram.java and HelloWorldProgramOutput.java has similar differences (derived from XML likely).

I see no changes to support setting a stylesheet engine from the command line in X3DObject.java, but I’ve hardcoded changes into X3DObject.java.

Please back out your changes and accept my changes.  I will send my changes again, I guess.

John
Sent from Mail for Windows 10

From: Don Brutzman
Sent: Wednesday, January 3, 2018 1:29 PM
To: John Carlson
Cc: x3d-public at web3d.org; brutzman at nps.edu
Subject: Re: patch for www.web3d.org/x3d/stylesheets/java/build.xml X3DJSAILexamples, CommandLine and ConfigurationProperties

On 1/2/2018 9:57 AM, John Carlson wrote:
> Patch for java/build.xml attached. Added fork property. You may want to change the classpath to go along with what you want.

Of interest... please advise why you've needed it.  That feature is in a number of our build files but it isn't always clear why it's needed.

> I added “Output” to many products.

OK - please describe what you are doing and motivation, to aid in understanding.

> We are quite close to fixing test.nashorn. Just need to fix a few more Immels,

hopefully this morning's update helped with Immel quote escaping...

> and a stylesheet engine property for HelloWorldProgramOutput.java.

sorry but still not clear what you need...  CommandLine invocation includes such support already.  All of the java source (such as HelloWorldProgramOutput.java) already has methods available to change it already too.

                X3DJSAIL CommandLine (has had some updates in past week)
                http://www.web3d.org/specifications/java/X3dJavaSceneAuthoringInterface.html#CommandLine

                X3DJSAIL Utility Methods and Functionality: ConfigurationProperties
                http://www.web3d.org/specifications/java/X3dJavaSceneAuthoringInterface.html#UtilityMethods

==============================
HelloWorldProgram.java excerpt

                private void showSceneResults()
                {
                                ConfigurationProperties.setPropertiesFileName(ConfigurationProperties.PROPERTIES_FILENAME_DEFAULT);
                                System.out.println ("ConfigurationProperties.getPropertiesFileName()=" + ConfigurationProperties.getPropertiesFileName());
                                ConfigurationProperties.loadProperties();
                                ConfigurationProperties.setShowDefaultAttributes(true); // tested satisfactorily
                                ConfigurationProperties.setIndentCharacter(ConfigurationProperties.indentCharacter_DEFAULT);
                                ConfigurationProperties.setIndentIncrement(ConfigurationProperties.indentIncrement_DEFAULT);
                                // Restore default settings for spacing, increments and showing default attribute=value pairs
                                ConfigurationProperties.setX3dCanonicalForm();
                                ConfigurationProperties.initialize(); // restore all defaults
==============================

onward!

all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180103/bc163ec1/attachment.html>


More information about the x3d-public mailing list