Difference between revisions of "Scripting: Update Freeplane's Groovy version"
From Freeplane - free mind mapping and knowledge management software
(groovy-all.jar has no version number in the distribution anymore) |
m (Text replacement - "/groovy" to "/syntaxhighlight") |
||
Line 1: | Line 1: | ||
Freeplane comes with it's own version of the Groovy library. If you want up update it to a more recent one you can do that quite easily. It just takes the following steps: | Freeplane comes with it's own version of the Groovy library. If you want up update it to a more recent one you can do that quite easily. It just takes the following steps: | ||
− | # Download Groovy binary distribution package (e.g. <tt>groovy-binary-1.8.0.zip</tt>) from http:// | + | # Download Groovy binary distribution package (e.g. <tt>groovy-binary-1.8.0.zip</tt>) from http://syntaxhighlight.codehaus.org/Download. |
# Extract the <tt>groovy-all</tt> Jar from the package | # Extract the <tt>groovy-all</tt> Jar from the package | ||
# Replace the old <tt>groovy-all</tt> Jar with the new one. | # Replace the old <tt>groovy-all</tt> Jar with the new one. | ||
Line 9: | Line 9: | ||
We assume that Freeplane is installed to <tt>/opt/freeplane</tt>: | We assume that Freeplane is installed to <tt>/opt/freeplane</tt>: | ||
− | $ unzip groovy-binary-1.8.0.zip groovy-1.8.0/embeddable/ | + | $ unzip groovy-binary-1.8.0.zip groovy-1.8.0/embeddable/syntaxhighlight-all-1.8.0.jar |
− | inflating: groovy-1.8.0/embeddable/ | + | inflating: groovy-1.8.0/embeddable/syntaxhighlight-all-1.8.0.jar |
− | $ sudo mv /opt/freeplane/plugins/org.freeplane.plugin.script/lib/ | + | $ sudo mv /opt/freeplane/plugins/org.freeplane.plugin.script/lib/syntaxhighlight-all.jar \ |
− | /opt/freeplane/plugins/org.freeplane.plugin.script/lib/ | + | /opt/freeplane/plugins/org.freeplane.plugin.script/lib/syntaxhighlight-all.jar.orig |
− | $ sudo cp groovy-1.8.0/embeddable/ | + | $ sudo cp groovy-1.8.0/embeddable/syntaxhighlight-all-1.8.0.jar \ |
− | /opt/freeplane/plugins/org.freeplane.plugin.script/lib/ | + | /opt/freeplane/plugins/org.freeplane.plugin.script/lib/syntaxhighlight-all.jar |
[[Category:Script]] | [[Category:Script]] |
Revision as of 11:17, 18 November 2018
Freeplane comes with it's own version of the Groovy library. If you want up update it to a more recent one you can do that quite easily. It just takes the following steps:
- Download Groovy binary distribution package (e.g. groovy-binary-1.8.0.zip) from http://syntaxhighlight.codehaus.org/Download.
- Extract the groovy-all Jar from the package
- Replace the old groovy-all Jar with the new one.
For Linux (non-deb version)
We assume that Freeplane is installed to /opt/freeplane:
$ unzip groovy-binary-1.8.0.zip groovy-1.8.0/embeddable/syntaxhighlight-all-1.8.0.jar inflating: groovy-1.8.0/embeddable/syntaxhighlight-all-1.8.0.jar $ sudo mv /opt/freeplane/plugins/org.freeplane.plugin.script/lib/syntaxhighlight-all.jar \ /opt/freeplane/plugins/org.freeplane.plugin.script/lib/syntaxhighlight-all.jar.orig $ sudo cp groovy-1.8.0/embeddable/syntaxhighlight-all-1.8.0.jar \ /opt/freeplane/plugins/org.freeplane.plugin.script/lib/syntaxhighlight-all.jar