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.

Or, you can choose to install a development build, see below for more update sites.  In general, our development builds are quite stable.

Icon

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.

http://groovy.codehaus.org/Eclipse+Plugin

TUTORIAL OVERVIEW 
Task - Install GroovyEclipse Plugin. 
Level - Very basic. 
Prerequisites - Eclipse 3.4.2, 3.5, 3.5.1 or 3.6.0.

ALL GROOVY-ECLIPSE TUTORIALS 
Install GroovyEclipse Plugin 
Create Your First Groovy Project

QUICK FACTS FOR ECLIPSE EXPERTS

GroovyEclipse update site for Eclipse 4.2 (Juno), 
Release update site

http://dist.springsource.org/release/GRECLIPSE/e4.2/

GroovyEclipse update site for Eclipse 3.7 (Indigo), 
Release update site

http://dist.springsource.org/release/GRECLIPSE/e3.7/

GroovyEclipse update site for Eclipse 3.6.n (Helios), 
snapshot build with recent fixes

http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.6/

GroovyEclipse update site for Eclipse 3.5.n (Galileo), 
M1 build

http://dist.springsource.org/milestone/GRECLIPSE/e3.5/

GroovyEclipse update site for Eclipse 3.5.n (Galileo), 
snapshot build with recent fixes

http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.5/

GroovyEclipse update site for Eclipse 3.4.2 (Europa), 
snapshot build with recent fixes

http://ci.repository.codehaus.org/greclipse/snapshot/e34/

GroovyEclipse update site for Eclipse 3.4.2 (Europa), 
M1 build

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.

You use Eclipse's standard installation process to download and install GroovyEclipse. The Eclipse user interface for software installation and update varies between 3.4 and 3.5.

Eclipse 3.4.2 users: click Help > Software Updates and follow the dialogs to work with or add the GroovyEclipse update site - see step 3 for the URL.

2

To add the GroovyEclipse plugin download site to your Available Software Sites, click Add on the Available Software page.

If you have previously added the site, click the blue down arrow and select if from the drop-down list of your available sites.

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.

If you use 3.4.2 - "http://ci.repository.codehaus.org/greclipse/snapshot/e34" or

If you use 3.5.x - "http://dist.springsource.org/milestone/GRECLIPSE/e3.5/"

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.

Don't checkmark Groovy Compilers - they are included in the GroovyEclipse Plugin.

5

You can review the components to be installed on the Install Details page.

As noted above, the GroovyEclipse Plugin includes two versions of the Groovy compilers: v1.7-beta2 (enabled) and v1.6.5.

The JDT Core patch is an update to the Eclipse Java Development Tool (JDT) that enables Groovy/JDT integration.

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 
   Task - Create a Groovy project in Eclipse. 
   Level - Basic. The task is simple if you have created a Java project in Eclipse. 
   Prerequisites - GroovyEclipse v2.0, Eclipse 3.4.2, 3.5, or 3.5.1.

ALL GROOVY-ECLIPSE TUTORIALS 
   Install Groovy-Eclipse Plugin 
   Create Your First Groovy Project

QUICK FACTS FOR EXPERIENCED ECLIPSE USERS 
Create a Groovy project in Eclipse the same way you do a Java project, but use the Groovy wizards – File > New > Groovy Project and File > New > Groovy Class – instead of the Java equivalents.

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.

If Groovy Project does not appear in the drop-down list, then select Other and search for Groovy Project in the dialog box.

2

In the New Groovy Project wizard, type a name in the Project Name box, and click Next.

GroovyEclipse creates the project and a folder structure for it. A folder with the same name as the project appears in the Package Explorer. The project directory contains asrc and a bin folder, each empty.

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.

For information about build options, see Eclipse help for the New Java Project Wizard; it applies to Groovy projects as well.

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.

If you type the name of an existing package in thePackage field, the class is created there.

Just like in the JDT, you can create a package as a separate step with File > New > Package, or when you use the create the first class

6

GroovyEclipse creates the new class. The new class, Greetings.groovy in this example, is listed in the Package Explorer, and opened in the editor.

Note that, as generated by GroovyEclipseGreetings.groovy already contains the package statement and class declaration.

7

Paste this code into the file:

static void main(def args) { 
   def mygreeting = "Hello World" 
   println mygreeting 
}

8

Right click anywhere in the editor and then Run > Run As > Groovy Scriptor Java Application.

Running as an Application will launch the compiled *.class files, whereas running as aScript will launch the uncompiled *.groovy files. In general, the results will be the same, but there are some subtle differences between the two.

9

The greeting is issued in the Consoletab.

最新文章

  1. hdoj 5074
  2. [51NOD1090] 3个数和为0(水题,二分)
  3. Entity Framework Extended Library (EF扩展类库,支持批量更新、删除、合并多个查询等)
  4. zoj3820 Building Fire Stations 树的中心
  5. springmvc里面的中文乱码问题
  6. Codevs No.1245 最小的N个和
  7. asp:第三平台登陆
  8. CommonsChunkPlugin的一些总结
  9. python 数据结构
  10. HDU5039--Hilarity DFS序+线段树区间更新 14年北京网络赛
  11. Oracle游标
  12. html 跳转页面,同时跳转到一个指定的位置
  13. PHP语言基础03 By ACReaper
  14. linux学习的哲学层面的思考-架构
  15. cronatab周期性任务
  16. 基于Html5 Plus + Vue + Mui 移动App 开发(二)
  17. 关于lnmp下 phalcon和tp框架下的nginx文件配置
  18. Resharper 详细教程
  19. jmeter断言接口响应字段大小
  20. docker 容器的mysql主从复制

热门文章

  1. apache2: bad user name ${APACHE_RUN_USER} 解决
  2. MySQL监控工具-orztop
  3. Java的哪些事
  4. Input event驱动
  5. json 说明书
  6. DataTable.Compute 性能慢的问题
  7. C# 获取属性字段上DescriptionAttribute的值
  8. 小明很喜欢数学,有一天他在做数学作业时,要求计算出9~16的和,他马上就写出了正确答案是100。但是他并不满足于此,他在想究竟有多少种连续的正数序列的和为100(至少包括两个数)。没多久,他就得到另一组连续正数和为100的序列:18,19,20,21,22。现在把问题交给你,你能不能也很快的找出所有和为S的连续正数序列? Good Luck!
  9. 【BZOJ】【2179】FFT快速傅里叶
  10. 新建android项目src和layout文件夹中没有内容的问题