-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13201 from bobjacobsen/deprecated-javascript-warning
Request JavaScript/ECMAscript JMRI scripting users contact us
- Loading branch information
Showing
7 changed files
with
71 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# JavaScript/ECMAscript support is being deprecated and may soon be removed. | ||
# | ||
# As part of this, use of that support will fire a dialog box to warn people. | ||
# Since that can be really annoying if it happens on every JMRI start, we | ||
# provide this script to disable the warning. | ||
|
||
import jmri | ||
jmri.script.JmriScriptEngineManager.dontWarnJavaScript = True | ||
|
||
import org.slf4j | ||
log = org.slf4j.LoggerFactory.getLogger("JavaScript Interpreter") | ||
log.warn("The following warning has been suppressed:") | ||
log.warn("*** Scripting with JavaScript/ECMAscript is being deprecated ***") | ||
log.warn("*** and may soon be removed. If you are using this, please ***") | ||
log.warn("*** contact us on the jmriusers group for assistance. ***") |
This file was deleted.
Oops, something went wrong.