[x3d-public] stylesheets and X3DJSAIL

John Carlson yottzumm at gmail.com
Thu Aug 31 18:04:17 PDT 2017


These three lines tell the story why you can’t find the stylesheet in the jar:

find src/main/java/org/ -type f |xargs grep stylesheetJarPath
src/main/java/org/web3d/x3d/jsail/Core/X3DObject.java:                  String stylesheetJarPath = "/stylesheets/" + ConfigurationProperties.STYLESHEET_htmlDocumentation;
src/main/java/org/web3d/x3d/jsail/Core/X3DObject.java:                  InputStream stylesheetInputStream = getClass().getResourceAsStream(stylesheetJarPath);
src/main/java/org/web3d/x3d/jsail/Core/X3DObject.java:                         errorNotice += "Stylesheet not found in jar: " + stylesheetJarPath + ", ";

Unless I read this wrong, you are only looking for a single stylesheet in the jar, instead of a variable.

These are the lines near where you need to work on:

src/main/java/org/web3d/x3d/jsail/Core/X3DObject.java:                  String stylesheetJarPath = "/stylesheets/" + ConfigurationProperties.STYLESHEET_htmlDocumentation;
src/main/java/org/web3d/x3d/jsail/Core/X3DObject.java:                  File stylesheetFile = new File("lib/stylesheets/", ConfigurationProperties.STYLESHEET_htmlDocumentation);
src/main/java/org/web3d/x3d/jsail/Core/X3DObject.java:   * @see ConfigurationProperties#STYLESHEET_JSON
src/main/java/org/web3d/x3d/jsail/Core/X3DObject.java:                  File stylesheetFile = new File("lib/stylesheets/", ConfigurationProperties.STYLESHEET_JSON);
src/main/java/org/web3d/x3d/jsail/Core/X3DObject.java:   * @see ConfigurationProperties#STYLESHEET_JSON
src/main/java/org/web3d/x3d/jsail/Core/X3DObject.java:                  File stylesheetFile = new File("lib/stylesheets/", ConfigurationProperties.STYLESHEET_JAVA);
src/main/java/org/web3d/x3d/jsail/Core/X3DObject.java:   * @see ConfigurationProperties#STYLESHEET_X3DOM
src/main/java/org/web3d/x3d/jsail/Core/X3DObject.java:                  File stylesheetFile = new File("lib/stylesheets/", ConfigurationProperties.STYLESHEET_X3DOM);
src/main/java/org/web3d/x3d/jsail/Core/X3DObject.java:   * @see ConfigurationProperties#STYLESHEET_X3DOM
src/main/java/org/web3d/x3d/jsail/Core/X3DObject.java:                  File stylesheetFile = new File("lib/stylesheets/", ConfigurationProperties.STYLESHEET_X3DOM);

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170831/0195917e/attachment-0001.html>


More information about the x3d-public mailing list