<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Directing back to x3d-public to see if there’s any other input.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>It was much better as ../lib/stylesheets for me, then I could run files in the java folder (with the full “path” to the class file), and still store stylesheets one level up in src/main/lib/stylesheets  However, I expect to run this from just about anywhere (at a level above src for example), so more flexibility is desired.  Perhaps include the stylesheets on the classpath (in the X3DJSAIL jar—they’re already there it appears) and provide an option to override with lib/stylesheets or any other path.  For people running from their home folder without privileges to write outside their home folder, ../lib/stylesheets is definitely a nono, so I can see why you changed it to lib/stylesheets.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>It’s an interesting problem. I think it can be solved through the classloader primarily, and secondarily through whatever means you choose.  Since the command-line can override the classpath, the classpath would be an acceptable option for me, I believe.  I just don’t thing that forcing everyone to do lib/stylesheets is a good idea.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>If users cannot centralize the maintenance of the stylesheets, we’re going to end up with more headaches of stylesheets not being up-to-date (I think I’m already running into this perhaps).</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>John</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986">Mail</a> for Windows 10</p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='border:none;padding:0in'><b>From: </b><a href="mailto:yottzumm@gmail.com">John Carlson</a><br><b>Sent: </b>Monday, August 14, 2017 9:18 PM<br><b>To: </b><a href="mailto:brutzman@nps.edu">Don Brutzman</a><br><b>Subject: </b>Re: X3DJSAIL: Stylesheets folder...how do I specify it?</p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>I'm running from the command line.</p></div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Aug 14, 2017 9:13 PM, "Don Brutzman" <<a href="mailto:brutzman@nps.edu">brutzman@nps.edu</a>> wrote:</p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><p class=MsoNormal style='margin-left:.2in'>short answer: i have these set up in relative directories similarly to what is found on the website.<br><br>if there is a hardwired relationship in an ant file then we should create a property to simplify modification and customization.<br><br>apologies for being relatively silent, am in third week of travel (and pretty tired as well).  back on Friday, finally.<br><br>On 8/12/2017 12:42 PM, John Carlson wrote:</p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.4in'>I cannot do further testing on X3DJSAIL with JSON until this is resolved.  I may go into the source and take a look.<br><br>Looked here:<br><br><a href="http://www.web3d.org/specifications/java/examples/HelloWorldProgram.java" target="_blank">http://www.web3d.org/specifications/java/examples/HelloWorldProgram.java</a><br><br>and here:<br><br><a href="http://www.web3d.org/specifications/java/X3dJavaSceneAuthoringInterface.html" target="_blank">http://www.web3d.org/specifications/java/X3dJavaSceneAuthoringInterface.html</a><br><br>John<br><br>Sent from Mail <<a href="https://go.microsoft.com/fwlink/?LinkId=550986" target="_blank">https://go.microsoft.com/fwlink/?LinkId=550986</a>> for Windows 10<br><br>*From: *John Carlson <mailto:<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>><br>*Sent: *Thursday, August 10, 2017 11:03 AM<br>*To: *Don Brutzman <mailto:<a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a>>; X3D Graphics public mailing list <mailto:<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a>><br>*Subject: *X3DJSAIL: Stylesheets folder<br><br>Don,<br><br>How do I repoint the stylesheets folder in X3DJSAIL? It’s currently looking in src/main/java/lib/stylesheets/X3dToJson.xslt.  I do not want my stylesheets under my Java folder.<br><br>I am not sure why stylesheets cannot appear on the classpath!   Can they?  See:<br><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/ClassLoader.html#getResourceAsStream(java.lang.String)" target="_blank">https://docs.oracle.com/javase/7/docs/api/java/lang/ClassLoader.html#getResourceAsStream(java.lang.String)</a><br><br>Thanks,<br><br>John</p></blockquote></blockquote></div></div><p class=MsoNormal style='margin-left:4.8pt'><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" target="_blank">+1.831.656.2149</a><br>X3D graphics, virtual worlds, navy robotics <a href="http://faculty.nps.edu/brutzman" target="_blank">http://faculty.nps.edu/brutzman</a></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>