Difference between revisions of "Scripting: Update Freeplane's Groovy version"

From Freeplane - free mind mapping and knowledge management software
(Created page with '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: # Dow...')
 
m (Reverted edits by Dimitry (talk) to last revision by Boercher)
(Tag: Rollback)
 
(3 intermediate revisions by 3 users not shown)
Line 7: Line 7:
 
=== For Linux (non-deb version) ===
 
=== For Linux (non-deb version) ===
  
We assume that Freeplane is installed to <tt>/opt/freeplane</tt> and that currently Groovy 1.5.6 is used:
+
We assume that Freeplane is installed to <tt>/opt/freeplane</tt>:
  
 
  $ unzip groovy-binary-1.8.0.zip groovy-1.8.0/embeddable/groovy-all-1.8.0.jar
 
  $ unzip groovy-binary-1.8.0.zip groovy-1.8.0/embeddable/groovy-all-1.8.0.jar
 
     inflating: groovy-1.8.0/embeddable/groovy-all-1.8.0.jar
 
     inflating: groovy-1.8.0/embeddable/groovy-all-1.8.0.jar
 
   
 
   
  $ sudo mv /opt/freeplane/plugins/org.freeplane.plugin.script/lib/groovy-all-1.5.6.jar \
+
  $ sudo mv /opt/freeplane/plugins/org.freeplane.plugin.script/lib/groovy-all.jar \
           /opt/freeplane/plugins/org.freeplane.plugin.script/lib/groovy-all-1.5.6.jar.orig
+
           /opt/freeplane/plugins/org.freeplane.plugin.script/lib/groovy-all.jar.orig
 
   
 
   
 
  $ sudo cp groovy-1.8.0/embeddable/groovy-all-1.8.0.jar \
 
  $ sudo cp groovy-1.8.0/embeddable/groovy-all-1.8.0.jar \
           /opt/freeplane/plugins/org.freeplane.plugin.script/lib/groovy-all-1.5.6.jar
+
           /opt/freeplane/plugins/org.freeplane.plugin.script/lib/groovy-all.jar
  
 
+
[[Category:Script]]
=== Notes ===
 
 
 
Instead of overwriting the old Jar keeping the old name of it you can also use the new name by changing the name of the Groovy library in the MANIFEST.MF file of the script plugin:
 
 
 
$ sudo cp groovy-1.8.0/embeddable/groovy-all-1.8.0.jar \
 
          /opt/freeplane/plugins/org.freeplane.plugin.script/lib/
 
 
$ sudo vi /opt/freeplane/plugins/org.freeplane.plugin.script/META-INF/MANIFEST.MF
 

Latest revision as of 11:26, 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:

  1. Download Groovy binary distribution package (e.g. groovy-binary-1.8.0.zip) from http://groovy.codehaus.org/Download.
  2. Extract the groovy-all Jar from the package
  3. 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/groovy-all-1.8.0.jar
   inflating: groovy-1.8.0/embeddable/groovy-all-1.8.0.jar

$ sudo mv /opt/freeplane/plugins/org.freeplane.plugin.script/lib/groovy-all.jar \
          /opt/freeplane/plugins/org.freeplane.plugin.script/lib/groovy-all.jar.orig

$ sudo cp groovy-1.8.0/embeddable/groovy-all-1.8.0.jar \
          /opt/freeplane/plugins/org.freeplane.plugin.script/lib/groovy-all.jar