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
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>this script <a class="confluence-link unresolved" data-filename="SetupGroovyLib.groovy" data-linked-resource-default-alias="SetupGroovyLib.groovy" href="#">SetupGroovyLib.groovy</a> provide the following:</p> <table class="wysiwyg-macro" data-macro-name="code" data-macro-default-parameter="none" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGU6bm9uZX0&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> groovy SetupGroovyLib.groovy -h Usage SetupGroovyLib jarname [jarname...] The jarname is in format of Maven2 artifacts groupId:artifactId:version name. You may use site like http://www.mvnrepository.com to help you find the jarname. This script default arguments to: javax.activation:activation:1.1 javax.mail:mail:1.4 mysql:mysql-connector-java:5.1.5 These jars will allow you to send emails and access to MySQL database! </pre></td></tr></table> <p>NOTE: If you are using groovyConsole, you will need to restart it as it won't pick up any new jar added to ~/.groovy/lib automatically.</p> <p>See also <a class="confluence-link" href="/display/GROOVY/Installing+or+Update+Groovy+Automatically" data-linked-resource-id="39092234" data-linked-resource-type="page" data-linked-resource-default-alias="Installing or Update Groovy Automatically" data-base-url="http://docs.codehaus.org">Installing or Update Groovy Automatically</a></p> <h1>More examples</h1> <h2>Using commons-lang</h2> <p>Run <strong><code>groovy SetupGroovyLib.groovy commons-lang:commons-lang:2.3</code></strong><br /> Now try out:</p> <table class="wysiwyg-macro" data-macro-name="code" data-macro-default-parameter="none" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGU6bm9uZX0&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> import org.apache.commons.lang.* StringUtils.splitByWholeSeparator("aXXbXXc", "XX") </pre></td></tr></table>
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