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
<h1>A Windows-specific installation script</h1> <p>that allows to create installers for the different groovy versions. You can examine the results on the <a href="http://groovy.codehaus.org/Download">download page</a>.</p> <p><img class="confluence-embedded-image confluence-thumbnail" src="/download/thumbnails/231082293/setup.png?version=1&modificationDate=1371606006557" data-image-src="/download/attachments/231082293/setup.png?version=1&modificationDate=1371606006557" data-linked-resource-id="231377004" data-linked-resource-type="attachment" data-linked-resource-default-alias="setup.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231082293" title="null > setup.png"></p> <p>The installer first copies the groovy files to where the user wants,</p> <p><img class="confluence-embedded-image confluence-thumbnail" src="/download/thumbnails/231082293/outdir.png?version=1&modificationDate=1371606006548" data-image-src="/download/attachments/231082293/outdir.png?version=1&modificationDate=1371606006548" data-linked-resource-id="231377003" data-linked-resource-type="attachment" data-linked-resource-default-alias="outdir.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231082293" title="null > outdir.png"></p> <p>then asks for permission to create a variable GROOVY_HOME and to add the respective bin directory (%GROOVY_HOME%/bin) to the path, if no reference to groovy already exists in it.</p> <p><img class="confluence-embedded-image confluence-thumbnail" src="/download/thumbnails/231082293/variables.jpg?version=1&modificationDate=1371606006529" data-image-src="/download/attachments/231082293/variables.jpg?version=1&modificationDate=1371606006529" data-linked-resource-id="231377002" data-linked-resource-type="attachment" data-linked-resource-default-alias="variables.jpg" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231082293" title="null > variables.jpg"></p> <p>The user can decide whether to put these into the user or system environment (on Win 95 and Win 98 this information is appended to the autoexec.bat instead) i.e., whether the installation will be for the current user or for all users. Then the installer checks for the existence of JAVA_HOME. If it doesn't exist, a message box points out the potential problem.</p> <p>Next the user can decide whether or not to install the native launcher,</p> <p><img class="confluence-embedded-image confluence-thumbnail" src="/download/thumbnails/231082293/native.jpg?version=1&modificationDate=1371606006521" data-image-src="/download/attachments/231082293/native.jpg?version=1&modificationDate=1371606006521" data-linked-resource-id="231377001" data-linked-resource-type="attachment" data-linked-resource-default-alias="native.jpg" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231082293" title="null > native.jpg"></p> <p>can decide to install additional packages,</p> <p><img class="confluence-embedded-image confluence-thumbnail" src="/download/thumbnails/231082293/additionalmodules.png?version=1&modificationDate=1371606006476" data-image-src="/download/attachments/231082293/additionalmodules.png?version=1&modificationDate=1371606006476" data-linked-resource-id="231376999" data-linked-resource-type="attachment" data-linked-resource-default-alias="additionalmodules.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231082293" title="null > additionalmodules.png"></p> <p>and finally whether to associate .groovy files with the native launcher, and whether to add the extension .groovy and .gy to PATHEXT. This allows to start Groovy files from the command line directly, without having to call the groovy explicitly.</p> <p><img class="confluence-embedded-image confluence-thumbnail" src="/download/thumbnails/231082293/fileassociation.png?version=1&modificationDate=1371606006512" data-image-src="/download/attachments/231082293/fileassociation.png?version=1&modificationDate=1371606006512" data-linked-resource-id="231377000" data-linked-resource-type="attachment" data-linked-resource-default-alias="fileassociation.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231082293" title="null > fileassociation.png"></p> <p>As you can see in the screen shots (they are clickable thumbnails), currently english, german, french and spanish are supported as installation languages.</p> <p>Oh, and whatever you do, do not use the command line option -russel.</p> <p>The french translation has been contributed by Xavier Mehaut and Tugduall Grall, the spanisch translation by Andres Almiray, and the tranlation to brazilian portuguese has been provided by Marcos Silva Pereira.</p> <p>Thank you very much for your help.</p> <h2>Silent installation</h2> <p>The installer supports silent installation with the command line option /S. When using this option you can influence which parts are installed using additional options:</p> <table class="confluenceTable"><tbody> <tr> <th class="confluenceTh"><p>Option</p></th> <th class="confluenceTh"><p>Function</p></th> </tr> <tr> <td class="confluenceTd"><p> /A </p></td> <td class="confluenceTd"><p>Install Additional Packages</p></td> </tr> <tr> <td class="confluenceTd"><p> /ALL </p></td> <td class="confluenceTd"><p>Install All</p></td> </tr> <tr> <td class="confluenceTd"><p> /D </p></td> <td class="confluenceTd"><p>Set Installation Directory (mandatory)</p></td> </tr> <tr> <td class="confluenceTd"><p> /F </p></td> <td class="confluenceTd"><p>Create File Associations</p></td> </tr> <tr> <td class="confluenceTd"><p> /N </p></td> <td class="confluenceTd"><p>Install Native Launcher</p></td> </tr> <tr> <td class="confluenceTd"><p> /S </p></td> <td class="confluenceTd"><p>Silent Install</p></td> </tr> <tr> <td class="confluenceTd"><p> /V </p></td> <td class="confluenceTd"><p>Set Variables</p></td> </tr> </tbody></table> <p>The option /D is mandatory and points to the installation directory. It is important to note that the /D option <strong>must</strong> be the last parameter on the command line and must not contain any quotes, even if the path contains spaces. Only absolute paths are supported. Use an equal sign to separate the option and the path.</p> <p>Example: <code>groovy-1.5.6-installer-2.exe /S /A /N /D=d:\program files\groovy</code></p> <h2>Working with the installer source</h2> <p>To use the installer source to create your own binary installers, simply check it out into an Eclipse workspace. Additionally you might want to install the <a href="http://nsis.sourceforge.net/EclipseNSIS_-_NSIS_plugin_for_Eclipse">NSIS-Eclipse-Plugin</a>, it helps when developing NSIS stuff.</p> <p>If you have worked with NSIS-scripts already there should be no big problem understanding what is done.</p> <p>The main script is the file setup.nsi, where you can find the installer program. Three additional pages are defined, Variables, NativeLauncher and FileAssociation, and for each you can find the respective .ini file containing the screen placement. Simply open them in the design editor provided by the Eclipse-Plugin, and you can see what they look like.</p> <p>Two bmp-images contain the Groovy logo in different resolutions, one for the welcome page and one as header image for the other pages. The name is the game ...</p> <p>Fínally you have the launch scripts. These actually start the compiler with different settings for the groovy version, the groovy location (on your hard disk) and the location of the native launcher. The groovy version influences the final name of the installer.</p> <p>The launch scripts are setting the following variables:</p> <ul> <li><strong>SOURCE_VERSION</strong> defines the version of the release</li> <li><strong>SOURCE_DIR</strong> is the full path to the groovy install directory</li> <li><strong>NATIVE_DIR</strong> is the full path to the native launcher</li> <li><strong>SCRIPTOM_DIR</strong> is the full path to the scriptom module</li> <li><strong>GANT_DIR</strong> is the full path to the gant module</li> <li><strong>GRAPHICS_B</strong> is the full path to the graphicsbuilder module</li> <li><strong>SWINGX_B</strong> is the full path to the swingxbuilder module</li> <li><strong>VERSION_TXT</strong> is the full path to the installed_versions.txt (this file describes the used versions)</li> <li><strong>DOC_DIR</strong> is the full path to the doc directory</li> </ul> <p>Most probably you only have to set these variables and you are happy to go.</p> <p>Have fun.</p> <p>If there is any problem whatsoever, either ask on the mailing lists or contact the author at</p> <p>joachim.baumann_at_xinaris.de.</p> <p>Excerpt:<table class="wysiwyg-macro" data-macro-name="excerpt" data-macro-parameters="atlassian-macro-output-type=INLINE" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2V4Y2VycHQ6YXRsYXNzaWFuLW1hY3JvLW91dHB1dC10eXBlPUlOTElORX0&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="RICH_TEXT"><tr><td class="wysiwyg-macro-body"><p>a Windows-specific installer for Groovy</p></td></tr></table></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