<div dir="auto">Do you put output from running HelloWorldProgramOutput.java in a log file?   That's what I want to look at.</div><div class="gmail_extra"><br><div class="gmail_quote">On Jan 2, 2018 5:14 AM, "Don Brutzman" <<a href="mailto:brutzman@nps.edu">brutzman@nps.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Most of the answer:<br>
<br>
Yes the CommandLine approach can take property files as a switch.<br>
<br>
<a href="http://www.web3d.org/specifications/java/X3DJSAIL.html#CommandLine" rel="noreferrer" target="_blank">http://www.web3d.org/specifica<wbr>tions/java/X3DJSAIL.html#<wbr>CommandLine</a><br>
<br>
java -classpath someLocalPath/X3DJSAIL.3.3.ful<wbr>l.jar<br>
     [sourceModel.x3d | -help | -page | -resources | -tooltips]<br>
     [-tofile [resultFile.*]] [-properties [propertiesFile]] [-validate]<br>
     [sourceModel.exi -fromEXI] [sourceModel.gz -fromGZIP] [sourceModel.zip -fromZIP]<br>
     [-toX3D | -toXML | -toClassicVrml | -toJSON | -toVRML97 | -toX3DOM | -toX_ITE | -toGZIP | -toZIP]<br>
<br>
Example and template properties are linked in the X3DJSAIL page, as are a variety of methods if using code directly (rather than CommandLine):<br>
<br>
        Utility Methods and Functionality<br>
        <a href="http://www.web3d.org/specifications/java/X3DJSAIL.html#UtilityMethods" rel="noreferrer" target="_blank">http://www.web3d.org/specifica<wbr>tions/java/X3DJSAIL.html#<wbr>UtilityMethods</a><br>
<br>
        <a href="http://www.web3d.org/specifications/java/X3DJSAIL.properties.template" rel="noreferrer" target="_blank">http://www.web3d.org/specifica<wbr>tions/java/X3DJSAIL.properties<wbr>.template</a><br>
<br>
        <a href="http://www.web3d.org/specifications/java/examples/X3DJSAIL.properties" rel="noreferrer" target="_blank">http://www.web3d.org/specifica<wbr>tions/java/examples/X3DJSAIL.<wbr>properties</a><br>
<br>
==============================<wbr>===========================<br>
# X3DJSAIL.properties example<br>
<br>
# Author TODO edit and save X3DJSAIL.properties.template as X3DJSAIL.properties<br>
# in project-invocation directory of interest<br>
<br>
deleteIntermediateFiles=true<br>
 indentIncrement=2<br>
#indentCharacter allowed values are SPACE (default) and TAB<br>
 indentCharacter=SPACE<br>
<br>
overwriteExistingFiles=true<br>
showDefaultAttributes=false<br>
stripTrailingZeroes=true<br>
validationExceptionAllowed=fal<wbr>se<br>
<br>
#EXI_ENGINE allowed values are EXIFICIENT (default) and OPENEXI<br>
 EXI_ENGINE=EXIFICIENT<br>
<br>
#XSLT_ENGINE allowed values are SAXON (default) and NATIVE_JAVA<br>
 XSLT_ENGINE=SAXON<br>
==============================<wbr>===========================<br>
<br>
See ant build.xml <target name="test.X3DJSAIL"> in the stylesheets/ parent directory for example invocation.  Excerpt:<br>
<br>
<echo message="=====================<wbr>======================"/><br>
<echo message="org.web3d.x3d.jsail.C<wbr>ommandLine -properties ${java.examples.dir}/X3DJSAIL.<wbr>properties"/><br>
<java classname="org.web3d.x3d.jsail<wbr>.CommandLine" classpath="${saxon.dir}/${saxo<wbr>n.jar};${java.jars.dir}/${<a href="http://jsai.full.archive.jar.name" rel="noreferrer" target="_blank">jsai<wbr>.full.archive.jar.name</a>};." fork="${fork}"><br>
        <arg value="-properties"/><br>
        <arg value="${java.examples.dir}/X3<wbr>DJSAIL.properties"/><br>
</java><br>
<echo message="=====================<wbr>======================"/><br>
<br>
You should not have to worry about containerField.  If you are, you probably are using the wrong method.  If you find a case that still needs it, then I need to worry about making that case go away.<br>
<br>
I think the examples and outputs are OK... please vector me in further as needed (there are a lot of materials and multiple prototype examples for testing).<br>
<br>
I haven't worked with test.nashorn much at all yet, great that you are pursuing that!<br>
<br>
Thanks for your efforts John.<br>
<br>
On 12/31/2017 6:39 PM, John Carlson wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Don, can you add correct properties command-line to HelloWorldProgramOutput in <a href="http://www.web3d.org/x3d/stylesheets/java/build.xml" rel="noreferrer" target="_blank">www.web3d.org/x3d/stylesheets/<wbr>java/build.xml</a> <<a href="http://www.web3d.org/x3d/stylesheets/java/build.xml" rel="noreferrer" target="_blank">http://www.web3d.org/x3d/styl<wbr>esheets/java/build.xml</a>> test.HelloWorldProgramOutput and test.nashorn to use correct properties file/stylesheet engine, so nashorn/examples/HelloWorldPro<wbr>gramOutput.json will be correct (extra newlines appearing in JSON file)?  I tried moving a X3DJSAIL.properties file to that folder, but changing the stylesheet engine property, there’s no difference in output.<br>
<br>
I tried passing -properties, but I don’t think it’s handled in handleArguments().<br>
<br>
Here is the area of coding below. There are 2 similar JSON java runs that need to be processed, similar to below.<br>
<br>
The MFString quoting issue appears to be fixed, but further tests are required.<br>
<br>
The material containerField Appearance.setMaterial(new ProtoInstance… still doesn’t appear fixed in java program HelloWorldProgramOutput  output XML or JSON or JS (missing or wrong containerField?). Code snippet from X3DJSAIL proving fix welcome.  Or any output from HelloWorldProgramOutput.java.<br>
<br>
<br>
Thanks,<br>
<br>
John<br>
<br>
                 <java classname="HelloWorldProgramOu<wbr>tput" classpath="${java.classes.dir}<wbr>;${java.jars.dir}/${<a href="http://jsai.full.archive.jar.name" rel="noreferrer" target="_blank">jsai.full.<wbr>archive.jar.name</a>}" fork="${fork}"><br>
<br>
                     <arg value="-properties"/><br>
<br>
                     <arg value="X3DJSAIL.properties"/><br>
<br>
                     <arg value="json"/><br>
<br>
                     <arg value="nashorn/examples/HelloW<wbr>orldProgramOutput.json"/><br>
<br>
                 </java><br>
</blockquote>
<br>
<br>
all the best, Don<br>
-- <br>
Don Brutzman  Naval Postgraduate School, Code USW/Br       <a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a><br>
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   <a href="tel:%2B1.831.656.2149" value="+18316562149" target="_blank">+1.831.656.2149</a><br>
X3D graphics, virtual worlds, navy robotics <a href="http://faculty.nps.edu/brutzman" rel="noreferrer" target="_blank">http://faculty.nps.edu/brutzma<wbr>n</a><br>
</blockquote></div></div>