You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
updated Java release flag from 8 to 11
updated Janino dependency from 3.1.8 to 3.1.9
added optional verbose logging to some methods
improved script deletion logic
modified css for tables
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ WebCTRL is a trademark of Automated Logic Corporation. Any other trademarks ment
12
12
13
13
## About
14
14
15
-
This add-on allows WebCTRL server administrators to upload and execute scripts, which are written in the Java programming language. Scripts may be compiled and packaged into *.jar* archives (recommended), or they may be interpreted at runtime using [Janino 3.1.8](http://janino-compiler.github.io/janino/) (easy for small scripts, but note that Janino has some [limitations](#janino-limitations)). The add-on does not come prepackaged with any scripts; however, sample scripts may be found within [*./samples*](./samples). Also see the [terminal unit commissioning script](https://github.com/automatic-controls/terminal-unit-script).
15
+
This add-on allows WebCTRL server administrators to upload and execute scripts, which are written in the Java programming language. Scripts may be compiled and packaged into *.jar* archives (recommended), or they may be interpreted at runtime using [Janino 3.1.9](http://janino-compiler.github.io/janino/) (easy for small scripts, but note that Janino has some [limitations](#janino-limitations)). The add-on does not come prepackaged with any scripts; however, sample scripts may be found within [*./samples*](./samples). Also see the [terminal unit commissioning script](https://github.com/automatic-controls/terminal-unit-script).
16
16
17
17
The original purpose of this add-on was to be a customizable alternative to the ACxelerate commissioning tool provided by Automated Logic. Semantic tagging is one concept borrowed from ACxelerate. Before execution, each script is paired with a mapping that associates control program microblock nodes to tag names referenced by the script. Primary script procedures are executed once on each control program specified by a mapping.
18
18
@@ -46,13 +46,13 @@ To prevent inadvertent schedule modification, each schedule stores a hash of the
46
46
47
47
## Script Development
48
48
49
-
If a single *.java* file is uploaded as a script, then it will be interpreted using [Janino 3.1.8](http://janino-compiler.github.io/janino/) at runtime. **You do not have to configure a development environment for compiling Janino scripts.** In principle, you could develop scripts using only a text editor like *Notepad*. Another advantage of this approach is that you can easily download, edit, and re-upload script source code from any computer with a connection to the WebCTRL server.
49
+
If a single *.java* file is uploaded as a script, then it will be interpreted using [Janino 3.1.9](http://janino-compiler.github.io/janino/) at runtime. **You do not have to configure a development environment for compiling Janino scripts.** In principle, you could develop scripts using only a text editor like *Notepad*. Another advantage of this approach is that you can easily download, edit, and re-upload script source code from any computer with a connection to the WebCTRL server.
50
50
51
51
However, it is recommended that scripts are compiled and packaged into *.jar* archives. Pre-compiled scripts do not suffer from Janino's [limitations](#janino-limitations). Essentially, just throw all your *.class* files into a *.jar* archive. The only special requirement is that a manifest file exist in the *.jar*, and that the `Main-Class` header specifies which class to use as the primary script (this class should extend `aces.webctrl.scripts.commissioning.core.Script`).
52
52
53
53
Be mindful to compile your script with a version of Java compatible with the target WebCTRL version of your server. For instance, you should use the build flag `--release 8` if you intend the script to run on WebCTRL7.0, and `--release 11` for WebCTRL8.0. See https://jdk.java.net/ to download the latest version of the java development kit.
54
54
55
-
To ease the development process, it is suggested to use an IDE (e.g, [Visual Studio Code](https://code.visualstudio.com/)), and then add the following dependencies: [CommissioningScripts-0.1.3.jar](https://github.com/automatic-controls/commissioning-scripts/releases/download/v0.1.3-beta/CommissioningScripts-0.1.3.jar) and [CommissioningScripts-0.1.3-sources.jar](https://github.com/automatic-controls/commissioning-scripts/releases/download/v0.1.3-beta/CommissioningScripts-0.1.3-sources.jar). These dependencies will provide you with intellisense and Javadocs for script development. You are also welcome to reference any other dependencies provided by WebCTRL at runtime (e.g, the add-on API, or `javax.servlet`).
55
+
To ease the development process, it is suggested to use an IDE (e.g, [Visual Studio Code](https://code.visualstudio.com/)), and then add the following dependencies: [CommissioningScripts-0.1.6.jar](https://github.com/automatic-controls/commissioning-scripts/releases/download/v0.1.6-beta/CommissioningScripts-0.1.6.jar) and [CommissioningScripts-0.1.6-sources.jar](https://github.com/automatic-controls/commissioning-scripts/releases/download/v0.1.6-beta/CommissioningScripts-0.1.6-sources.jar). These dependencies will provide you with intellisense and Javadocs for script development. You are also welcome to reference any other dependencies provided by WebCTRL at runtime (e.g, the add-on API, or `javax.servlet`).
56
56
57
57
This add-on does not enforce any security restrictions on what scripts can do. Scripts are executed with the same privilege set as the add-on. As such, you must be careful to **use scripts at your own risk.** Note that only WebCTRL server administrators are allowed to manage scripts.
0 commit comments