-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[jsscripting] GraalJS now uses automation/js #11719
Conversation
.../src/main/java/org/openhab/automation/jsscripting/internal/fs/watch/JSDependencyTracker.java
Show resolved
Hide resolved
.../src/main/java/org/openhab/automation/jsscripting/internal/fs/watch/JSScriptFileWatcher.java
Show resolved
Hide resolved
...ng/src/main/java/org/openhab/automation/jsscripting/internal/GraalJSScriptEngineFactory.java
Outdated
Show resolved
Hide resolved
bb733d1
to
bb7bac7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting for https://github.com/openhab/openhab-core/runs/4497892590 to succeed. Then we can rerun the build for this PR.
...ng/src/main/java/org/openhab/automation/jsscripting/internal/GraalJSScriptEngineFactory.java
Show resolved
Hide resolved
.../src/main/java/org/openhab/automation/jsscripting/internal/fs/watch/JSScriptFileWatcher.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/openhab/automation/jsscripting/internal/fs/watch/JSDependencyTracker.java
Outdated
Show resolved
Hide resolved
...ng/src/main/java/org/openhab/automation/jsscripting/internal/OpenhabGraalJSScriptEngine.java
Show resolved
Hide resolved
Signed-off-by: Jonathan Gilbert <[email protected]>
I am not sure why this is failing; has it not yet caught up with the change in core? |
@jpg0 https://ci.openhab.org/job/openHAB-Core/880/ is building right now which i think will push updated core bundles to the repos. |
.../src/main/java/org/openhab/automation/jsscripting/internal/fs/watch/JSDependencyTracker.java
Outdated
Show resolved
Hide resolved
…penhab/automation/jsscripting/internal/fs/watch/JSDependencyTracker.java
* GraalJS now uses automation/js Signed-off-by: Jonathan Gilbert <[email protected]> Signed-off-by: Nick Waterton <[email protected]>
* GraalJS now uses automation/js Signed-off-by: Jonathan Gilbert <[email protected]> Signed-off-by: Michael Schmidt <[email protected]>
* GraalJS now uses automation/js Signed-off-by: Jonathan Gilbert <[email protected]>
* GraalJS now uses automation/js Signed-off-by: Jonathan Gilbert <[email protected]>
* GraalJS now uses automation/js Signed-off-by: Jonathan Gilbert <[email protected]>
* GraalJS now uses automation/js Signed-off-by: Jonathan Gilbert <[email protected]> Signed-off-by: Andras Uhrin <[email protected]>
This change modifies the 'new' GraalJS plugin to monitor
<openHAB-conf>/automation/js for scripts
, with libraries in<openHAB-conf>/automation/js/node_modules
- as per NodeJS standard spec.It also removes itself from monitoring the original
automation/jsr233/javascript/*
directories, and instead leaves this for Nashorn. This allows users to move scripts over to GraalJS from Nashorn one-by-one.Note that this change breaks any ES6+ scripts which are in automation/jsr233/javascript/* directories. These will need to be moved to
automation/js
.Note also that this PR depends on openhab/openhab-core#2593 which enables it to use it's own script directory.
Signed-off-by: Jonathan Gilbert [email protected]