[x3d-public] Before further discussions: moving directories completed; antversion
John Carlson
yottzumm at gmail.com
Sun Dec 17 17:00:27 PST 2017
Looks like you’re using Rhino. Delete the script. We will do something else, like run it from X3DJSAIL.
John
Sent from Mail for Windows 10
From: Don Brutzman
Sent: Sunday, December 17, 2017 7:56 PM
To: John Carlson
Cc: x3d-public at web3d.org
Subject: Re: Before further discussions: moving directories completed; antversion
On 12/17/2017 3:53 PM, John Carlson wrote:
> It’s at the right level until I can put more work in. There may be some rearrangement, but would like to get whole thing working first, before attempting to rearrange. Thanks!
>
> It would be idea to get it into the jars, but let’s get it working outside the jars first.
Thanks for discussion over skype.
Subdirectory nashorn and test.bat are now moved into java subdirectory so that our work can be at the right level.
Also moved test.nashorn ant target from stylesheets/build.xml to stylesheets/java/build.xml for inclusion with X3DJSAIL
> Were you able to upgrade ant?
>
> John
No changes. I am using apache-ant-1.10.1 which is latest greatest as of 6 FEB 2017.
http://ant.apache.org
Moved a bunch of properties, test.nashorn target is running as before for me, not recognizing "script" "nashorn":
ant -f C:\\x3d-code\\www.web3d.org\\x3d\\stylesheets\\java test.nashorn
test.nashorn:
Compile:
Run:
Warning: toFileJavaScript() is overwriting prior file nashorn/examples/HelloWorldProgramOutput.js
Script DEF=colorTypeConversionScript contains CDATA source-code text, copied as "#sourceText" using "strings" mode
Script DEF=MaterialModulatorScript contains CDATA source-code text, copied as "#sourceText" using "strings" mode
HelloWorldProgramOutput self-validation test results: success
script:
C:\x3d-code\www.web3d.org\x3d\stylesheets\java\build.xml:90:
org.apache.bsf.BSFException: unsupported language: nashorn
at org.apache.bsf.BSFManager.loadScriptingEngine(BSFManager.java:686)
at org.apache.bsf.BSFManager.exec(BSFManager.java:485)
at org.apache.tools.ant.util.optional.ScriptRunner.executeScript(ScriptRunner.java:98)
at org.apache.tools.ant.taskdefs.optional.Script.execute(Script.java:53)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor695.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:286)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:555)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
BUILD FAILED (total time: 3 seconds)
offending block:
<script language="nashorn">
<classpath>
<fileset dir="${saxon.dir}" includes="${saxon.jar}"/>
<fileset dir="${exificient.dir}" includes="${exificient.jar}"/>
<fileset dir="${openexi.dir}" includes="${openexi.jar}"/>
<fileset dir="${java.jars.dir}" includes="${jsai.classes.archive.jar.name}"/>
</classpath>
load('nashorn/jvm-npm.js');
load('nashorn/repeatPolyfill.js');
load('nashorn/examples/HelloWorldProgramOutput.js.intermediate.js');
load('nashorn/examples/HelloWorldProgramOutput.js');
</script>
new to me... apparent reference:
Ant Manual: Script
https://ant.apache.org/manual/Tasks/script.html
There is an example 2/3 down that page with
<script language="javascript"> <![CDATA[
If I make that change (not checked in) the error moves a bit:
script:
C:\x3d-code\www.web3d.org\x3d\stylesheets\java\build.xml:90:
org.mozilla.javascript.EcmaError: ReferenceError: "load" is not defined.
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
at org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3413)
at org.mozilla.javascript.ScriptRuntime.getNameFunctionAndThis(ScriptRuntime.java:1951)
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:95)
at org.mozilla.javascript.gen.c1._c0(Unknown Source)
at org.mozilla.javascript.gen.c1.call(Unknown Source)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
at org.mozilla.javascript.gen.c1.call(Unknown Source)
at org.mozilla.javascript.gen.c1.exec(Unknown Source)
at org.mozilla.javascript.Context.evaluateString(Context.java:1196)
at org.apache.bsf.engines.javascript.JavaScriptEngine.eval(JavaScriptEngine.java:138)
at org.apache.bsf.util.BSFEngineImpl.exec(BSFEngineImpl.java:141)
at org.apache.bsf.BSFManager$6.run(BSFManager.java:493)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.bsf.BSFManager.exec(BSFManager.java:491)
at org.apache.tools.ant.util.optional.ScriptRunner.executeScript(ScriptRunner.java:98)
at org.apache.tools.ant.taskdefs.optional.Script.execute(Script.java:53)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor695.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:286)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:555)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
BUILD FAILED (total time: 50 seconds)
Perhaps you are using a Java 9 capability? i am (staying) at java version "1.8.0_152"
> *From: *Don Brutzman <mailto:brutzman at nps.edu>
> *Sent: *Sunday, December 17, 2017 6:34 PM
> *To: *John Carlson <mailto:yottzumm at gmail.com>
> *Cc: *x3d-public at web3d.org <mailto:x3d-public at web3d.org>
> *Subject: *Re: Before further discussions:
>
> John: our mails crossed but yes this was done this afternoon, renamed as test.nashorn for consistency.
>
> Key question before rebuild/redeploy: is the nashorn directory at the right level?
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/20171217/911415a7/attachment-0001.html>
More information about the x3d-public
mailing list