Skip to content
Skip to breadcrumbs
Skip to header menu
Skip to action menu
Skip to quick search
Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Sign Up
Dashboard
Groovy
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Page Layout
No Layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Undo
Redo
Find/Replace
Keyboard Shortcuts Help
<p>To use Groovy from inside jEdit download this</p> <p><a class="external-link" href="http://plugins.jedit.org/plugins/?SuperScript" rel="nofollow">http://plugins.jedit.org/plugins/?SuperScript</a></p> <p>. You'll need a fairly recent jEdit distribution.<br /> Right now BSF isn't yet released with inbuilt Groovy support so you have to add the following code to the startup script in <br class="atl-forced-newline" /></p> <table class="wysiwyg-macro" data-macro-name="code" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGV9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> <jedit.home>/startup/startup.bsh </pre></td></tr></table> <p>You can also add a startup.bsh script into your home directory at</p> <table class="wysiwyg-macro" data-macro-name="code" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGV9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> <user.settings.home>/.jedit/startup/startup.bsh </pre></td></tr></table> <table class="wysiwyg-macro" data-macro-name="code" data-macro-default-parameter="java" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGU6amF2YX0&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> org.apache.bsf.BSFManager.registerScriptingEngine( "groovy","org.codehaus.groovy.bsf.GroovyEngine",new String[]{"groovy","gv"} ); </pre></td></tr></table> <p>Also you'll need to copy the groovy-all-1.0-jsr-XXXX.jar file into the jedit/jars directory.</p> <p>Restart jEdit.</p> <p>Open SuperScript dockable from Plugins Menu or Dockable area and choose "groovy" from the languages dropdown.</p> <p>To test if groovy works fine or not, just try running some expression in the textbox or open some groovy script in jEdit and try "Executing Script".</p> <h3>Alternative Groovy mode</h3> <p>Oliver Rutherfurd has developed a Groovy mode for jEdit...</p> <p><a href="http://www.rutherfurd.net/jEdit/modes/groovy.xml">http://www.rutherfurd.net/jEdit/modes/groovy.xml</a></p> <table class="wysiwyg-macro" data-macro-name="code" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGV9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> ~/.jedit/catalog entry: <MODE NAME="groovy" FILE="groovy.xml" FILE_NAME_GLOB="*.{groovy,grv}"/> </pre></td></tr></table> <p>The Groovy mode for jEdit is in the SVN since July, 9th 2004.<br /> It is included in standard jEdit setup.<br /> In order to know if you have this mode, check that the file <jEdit_Home>/modes/groovy.xml exists.</p> <h3>Console Commando Plugin</h3> <p>Instructions:<br /> 1. Install Console plugin in jEdit.<br /> 2. Copy the attachment on this wiki: groovy.xml into your $HOME/.jedit/console/commando/groovy.xml<br /> (NOTE: I hardcoded my groovy path. Change it if it doesn't match yours.)<br /> 3. jEdit Menu: Plugins>Console>Regen menu.<br /> 4. jEdit Menu: Plugins>Plugin Options..., On left pick<br /> Console>Compile&Run, Then select groovy file type and set your<br /> compiler/interpreter to "groovy" selection.</p> <p>Now you may open up any groovy script and Run Commando..., Default F5<br /> will re-run the last command.</p>
Please type the word appearing in the picture.
Attachments
Labels
Location
Watch this page
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced