[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:10:36 PST 2018


If you don’t have the fork property, (see java/build.xml) you get errors like these (present in existing targets)

     [java] Caused by: org.web3d.x3d.sai.InvalidFieldValueException: ERROR_CONFIGURATION_X3DJSAIL X3DJSAIL jar archive "" not found in CLASSPATH=C:\Users\coderextreme\apache-ant-1.10.1\bin\..\lib\ant-launcher.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-antlr.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-apache-bcel.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-apache-bsf.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-apache-log4j.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-apache-oro.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-apache-regexp.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-apache-resolver.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-apache-xalan2.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-commons-logging.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-commons-net.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-contrib-1.0b3.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-jai.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-javamail.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-jdepend.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-jmf.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-jsch.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-junit.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-junit4.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-launcher.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-netrexx.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-swing.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-testutil.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant-xz.jar;C:\Users\coderextreme\apache-ant-1.10.1\lib\ant.jar

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/6961c1f9/attachment.html>


More information about the x3d-public mailing list