Use Eclipse to develop groovy[docs.codehaus.org]
http://docs.codehaus.org/display/GROOVY/Install+Groovy-Eclipse+Plugin
http://docs.codehaus.org/display/GROOVY/Create+Your+First+Groovy+Project
Groovy-Eclipse is the set of Eclipse plugins that provide Eclipse support for Groovy projects.
Installation
The latest Groovy-Eclipse release is available from the following Eclipse update sites. To install, point your Eclipse update manager to the update site appropriate for your Eclipse version or drag and drop the marketplace icon into your Eclipse installation.
| Eclipse level | Release update site |
|---|---|
| 4.4 (Luna) | |
|
4.3 (Kepler) |
|
| 4.2 and 3.8 (Juno) | |
| 3.7 (Indigo) | |
Or, you can choose to install a development build, see below for more update sites. In general, our development builds are quite stable.
The install directory must be writable by the current user. Groovy-Eclipse cannot be installed into a shared install. This includes protected directories on windows like C:\Program Files. For more information Eclipse Bug 395516.
|
TUTORIAL OVERVIEW |
ALL GROOVY-ECLIPSE TUTORIALS |
|
QUICK FACTS FOR ECLIPSE EXPERTS |
|
|
GroovyEclipse update site for Eclipse 4.2 (Juno), |
http://dist.springsource.org/release/GRECLIPSE/e4.2/ |
|
GroovyEclipse update site for Eclipse 3.7 (Indigo), |
http://dist.springsource.org/release/GRECLIPSE/e3.7/ |
|
GroovyEclipse update site for Eclipse 3.6.n (Helios), |
http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.6/ |
|
GroovyEclipse update site for Eclipse 3.5.n (Galileo), |
http://dist.springsource.org/milestone/GRECLIPSE/e3.5/ |
|
GroovyEclipse update site for Eclipse 3.5.n (Galileo), |
http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.5/ |
|
GroovyEclipse update site for Eclipse 3.4.2 (Europa), |
http://ci.repository.codehaus.org/greclipse/snapshot/e34/ |
|
GroovyEclipse update site for Eclipse 3.4.2 (Europa), |
available soon |
GETTING HELP – If you have problems, send a message to http://xircles.codehaus.org/lists/eclipse-plugin-user@groovy.codehaus.org.
|
Do |
See |
|
|---|---|---|
| 1 |
In Eclipse 3.5.x, click Help > Install New Software.
|
|
| 2 |
To add the GroovyEclipse plugin download site to your Available Software Sites, click Add on the Available Software page.
|
|
| 3 |
On the Add Site page, type a name in the Name box to assign a name of your preference to the site, or leave it blank to use a default site name constructed from repository metadata. In the Location box type the download URL the URL that corresponds to your version of Eclipse, and click Next.
|
|
| 4 |
On the Available Software page, checkmark Groovy-Eclipse Plugin, and if you wish to work with the plugin sources, Groovy Eclipse SDK. Click Next.
|
|
| 5 |
You can review the components to be installed on the Install Details page.
|
|
| 6 |
Accept the license agreement and click Finish. |
|
| 7 |
Eclipse prompts you to restart. |
|
| 8 |
After Eclipse restarts, you can see that Eclipse's File > New menu now includes wizards for creating Groovy projects, classes, and test cases. You have successfully installed GroovyEclipse. For step-by-step instructions on how to create your first Groovy program using GroovyEclipse, see Create Your First Groovy Project. |
|
|
TUTORIAL OVERVIEW |
ALL GROOVY-ECLIPSE TUTORIALS |
|
QUICK FACTS FOR EXPERIENCED ECLIPSE USERS |
NOTE: In this tutorial, the Groovy-Eclipse plugin is running on Eclipse 3.5.1. The user interface and task flow may vary somewhat in Eclipse 3.4.2.
GETTING HELP – If you have problems, send a message to http://xircles.codehaus.org/lists/eclipse-plugin-user@groovy.codehaus.org.
|
Do |
See |
|
|---|---|---|
| 1 |
In Eclipse, click File > New > Groovy Project.
|
|
| 2 |
In the New Groovy Project wizard, type a name in the Project Name box, and click Next.
|
|
| 3 |
The tabs and options in the Build Settings window are identical to those in the the Java Development Tool (JDT). Click Finish to proceed without customizing the build settings.
|
|
| 4 |
Select the project in the Package Explorer, and click File > New > Groovy Class. |
|
| 5 |
In the Groovy Class wizard, type a name for the class in the Name box, a name for the package in the Packagefield, and click Finish to create the class and package.
|
|
| 6 |
GroovyEclipse creates the new class. The new class,
|
|
| 7 |
Paste this code into the file:
|
|
| 8 |
Right click anywhere in the editor and then Run > Run As > Groovy Scriptor Java Application.
|
|
| 9 |
The greeting is issued in the Consoletab. |
|
Use Eclipse to develop groovy[docs.codehaus.org]的更多相关文章
- 在eclipse中安装groovy插件
在eclipse中安装groovy插件详细步骤: step 1:检查自己的eclipse版本:在help->About Eclipse中查看: step 2:进入 https://github. ...
- SoapUI Pro Project Solution Collection –Easy develop Groovy Script to improve SoapUI ability
As you know the groovy script and java script language is the soapui supported .but unfortunately So ...
- eclipse开发Groovy代码,与java集成,maven打包编译
今天尝试了一下在eclipse里面写Groovy代码,并且做到和Java代码相互调用,折腾了一下把过程记录下来. 首先需要给eclipse安装一下Groovy的插件,插件地址:https://gith ...
- Eclipse Groovy插件使用时出现的错误 org.eclipse.core.runtime.InvalidRegistryObjectException: Invalid registry object
在eclipse marketplace中下载了groovy插件,发现使用的groovy版本跟项目中使用的groovy版本不一致. 于是在Preferences -> Groovy -> ...
- 〖Groovy〗语言使用贴士(Tips)(转)
[Groovy]是一门运行在[JVM]之上的动态语言.由[James Strachan]和[Bob McWhirter]于2003年启动开发,之后于2004年3月成为[JSR 241](Java Sp ...
- Debug with Eclipse
In this post we are going to see how to develop applications using Eclipse and Portofino 4. The trad ...
- 【转载】Gradle学习 第九章:Groovy快速入门
转载地址:http://ask.android-studio.org/?/article/17 To build a Groovy project, you use the Groovy plugin ...
- Git下载Spring项目源码并编译为Eclipse
1)当前系统中安装了gradle,如果为安装,可以从:http://www.gradle.org/downloads,,下载完后进行解压到任意盘符,然后增加环境变量GRADLE_HOME,并在环境变量 ...
- Maven + Eclipse + Tomcat - 开启项目调试之旅(转)
本文的读者需要拥有一些Maven基础知识和实践,如果没有,请直接绕过或者先看一些关于Maven教程,比如Juven翻译的<Maven权威指南>,google一下便知. 开门见山,首先抛出一 ...
随机推荐
- ASP.NET 运行机制续(完结)
上一篇说到applicationInstance会执行一些列的事件.下面是我在msdn上找到有关asp.net程序生命周期相关的描述及图片 声明周期的起始 ASP.NET 应用程序的生命周期以浏览器向 ...
- 实现iOS长时间后台的两种方法:Audiosession和VOIP(转)
分类: Iphone2013-01-24 14:03 986人阅读 评论(0) 收藏 举报 我们知道iOS开启后台任务后可以获得最多600秒的执行时间,而一些需要在后台下载或者与服务器保持连接的App ...
- iTween基础之Move(移动)
1,五种移动方法:2, 函数的基础属性及用法 原文地址:http://blog.csdn.net/dingkun520wy/article/details/50476864 iTween官网:http ...
- Android学习笔记:TabHost 和 FragmentTabHost(转)
转自:http://www.cnblogs.com/asion/p/3339313.html 作者:Asion Tang 出处:http://asiontang.cnblogs.com T ...
- NodeJS从零开始——NPM的使用
NPM是一个Node包管理和分发工具,已经成为了非官方的发布Node模块(包)的标准.有了NPM,可以很快的找到特定服务要使用的包,进行下载.安装以及管理已经安装的包. NPM常用的命令有: (1)$ ...
- Careercup - Facebook面试题 - 5671785349513216
2014-05-02 01:05 题目链接 原题: bool anaStrStr (string needle, string haystack) { } Write a function that ...
- 微信wap开发,页面显示元素不全-微信开发(asp.net)
最近在开发的微信的微商城,出现这样一种情况: pc上浏览正常,但是一到手机上浏览就会缺少部分元素 解决办法: 找了很多原因,还通过uc浏览器把网页到存下来了,发现并没有缺少元素,只是没有显示出来,后来 ...
- Ubuntu 查看文件以及磁盘空间大小命令df
(1)查看文件大小 查看当前文件夹下所有文件大小(包括子文件夹) du -sh # du -h 15M ./package 16K ./.fontconfig 4.0K ...
- MST性质(用于构造最小生成树)
描述:假设N=(V,{E})是一个连通网,U是顶点集V的一个非空子集.若(u,v)是一条具有最小权值(代价)的边,其中u∈U,v∈V-U,则必存在一棵包含边(u,v)的最小生成树. 证明: 假设网N的 ...
- C#截取文件的文件夹地址
创建文件 if (!File.Exists(file_name)) { File.Create(file_name).Close(); } using System.IO; 如果没有.Close(), ...
















