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一下便知. 开门见山,首先抛出一 ...
随机推荐
- WPF中的Style
一.Style基础知识 构成Style最重要的两种元素是Setter和Trigger Setter类帮助我们设置控件的静态外观风格 Trigger类帮助我们设置控件的行为风格 Setter类的Prop ...
- 从零开始学ios开发(八):Autorotation and Autosizing
不好意思,这一篇间隔的时间有点长,最近实在是事情太多,耽搁了,好了,长话短说,下面继续学习ios. 这次学习的内容是Autorotation和Autosizing,Autorotation就是屏幕内容 ...
- 按键消抖VERILOG实现
对于消抖,有很多种写法.今天分享一下我的写法. 基本思路: 1. 看图 图1 ...
- 深入mysql_fetch_row()与mysql_fetch_array()的区别详解
这两个函数,返回的都是一个数组,区别就是第一个函数返回的数组是只包含值,我们只能$row[0],$row[1],这样以数组下标来读取数据,而mysql_fetch_array()返回的数组既包含第一种 ...
- DB天气app冲刺二阶段第六天
今天干了一件让我有点小激动的事情 就是我感觉我貌似找到了为什么我的项目会闪退了有的时候..但是还不确定.等会会再试试看看到底对不对.好吧其实今天就干了这些事整整一下午调试,找bug,决定从头开始一点一 ...
- 两行代码搞定UITableView无数据无网络显示-b
不知是否有像我一样的,每次写TableView在监听网络和无数据源时逻辑处理提示视图都是一堆代码,很繁琐也很重复的垃圾代码(可能就只有我这样
- mysql memory
mysql memory engine 创建: mysql> create table mt engine = memory select * from information_schema.t ...
- jQuery+AJAX实现网页无刷新上传
新年礼,提供简单.易套用的 jQuery AJAX上传示例及代码下载.后台对文件的上传及检查,以 C#/.NET Handler 处理 (可视需要改写成 Java 或 PHP). 有时做一个网站项目 ...
- Reactjs相比较原生方案是绝对的快吗?哪些情况下React有优势
作者:尤雨溪链接:http://www.zhihu.com/question/31809713/answer/53544875来源:知乎著作权归作者所有,转载请联系作者获得授权. 1. 原生 DO ...
- 2013 Asia Chengdu Regional Contest
hdu 4786 Fibonacci Tree http://acm.hdu.edu.cn/showproblem.php?pid=4786 copyright@ts 算法源于ts,用最小生成树可以求 ...