[x3d-public] patch for www.web3d.org/x3d/stylesheets/java/build.xml X3DJSAILexamples, CommandLine and ConfigurationProperties

John Carlson yottzumm at gmail.com
Wed Jan 3 11:24:07 PST 2018


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/75e2b11b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: XML.patch
Type: application/octet-stream
Size: 2372 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180103/75e2b11b/attachment-0001.obj>


More information about the x3d-public mailing list