﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-季浩的Blog-随笔分类-Groovy&amp;Grails</title><link>http://www.blogjava.net/jht/category/26094.html</link><description>努力</description><language>zh-cn</language><lastBuildDate>Sun, 23 Sep 2007 04:02:44 GMT</lastBuildDate><pubDate>Sun, 23 Sep 2007 04:02:44 GMT</pubDate><ttl>60</ttl><item><title>Groovy Plugin for Eclipse IDE</title><link>http://www.blogjava.net/jht/archive/2007/09/23/147523.html</link><dc:creator>jht</dc:creator><author>jht</author><pubDate>Sun, 23 Sep 2007 03:19:00 GMT</pubDate><guid>http://www.blogjava.net/jht/archive/2007/09/23/147523.html</guid><wfw:comment>http://www.blogjava.net/jht/comments/147523.html</wfw:comment><comments>http://www.blogjava.net/jht/archive/2007/09/23/147523.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/jht/comments/commentRss/147523.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/jht/services/trackbacks/147523.html</trackback:ping><description><![CDATA[<div class="content" style="PADDING-TOP: 3mm">Groovy Eclipse Plugin 允许你编辑编译允许groovy脚本和类。<br /><br /><img class="emoticon" height="16" alt="" src="http://docs.codehaus.org/images/icons/emoticons/warning.gif" width="16" align="absMiddle" border="0" /> 注意该插件正在不断开发中，你可以查看该插件开发的最近进展: <span class="nobr"><a href="http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=true&amp;mode=hide&amp;pid=10242&amp;sorter/order=DESC&amp;sorter/field=priority&amp;resolutionIds=-1&amp;component=10635"><font color="#2266cc">issues and bugs</font></a></span><div class="section_3"><h3><a name="EclipsePlugin-Eclipseversioncompatibility"></a>Eclipse 版本兼容性</h3><p><img class="emoticon" height="16" alt="" src="http://docs.codehaus.org/images/icons/emoticons/error.gif" width="16" align="absMiddle" border="0" /> Eclipse 3.0 : 不能工作，因为和3.1Eclipse有依赖关系<br /><br /><img class="emoticon" height="16" alt="" src="http://docs.codehaus.org/images/icons/emoticons/error.gif" width="16" align="absMiddle" border="0" /> Eclipse 3.1 : 该插件的 1.0.1 与之不兼容，但是插件的1.0.0.20070118 版本可以正常工作<br /><br /><img class="emoticon" height="16" alt="" src="http://docs.codehaus.org/images/icons/emoticons/check.gif" width="16" align="absMiddle" border="0" /> Eclipse 3.2 : 兼容<br /><br /><img class="emoticon" height="16" alt="" src="http://docs.codehaus.org/images/icons/emoticons/check.gif" width="16" align="absMiddle" border="0" /> Eclipse 3.3 : 兼容（根据最小化的初始测试）<br /><br /><a name="EclipsePlugin-UpdateSite"></a><br /><strong>通过UpdateSite安装<br /></strong><br />包含最近发布的站点: <span class="nobr"><a href="http://dist.codehaus.org/groovy/distributions/update/"><font color="#2266cc">http://dist.codehaus.org/groovy/distributions/update/</font></a></span></p></div><div class="section_3"><ul><li>在Eclipse菜单里选择: <b>Help -&gt; Software Updates -&gt; Find and Install -&gt; Search For New Features</b></li><li>点击 <b>New Remote Site</b></li><li>在 <strong>Name</strong> 字段里填名称 (例如: Groovy) 
</li><li>将上面的URL拷贝到 <b>URL</b> 字段里，然后点击 <b>OK</b></li><li>选中新建Groovy站点然后确定 
</li><li>在 <b>Select the Features to Install</b> 下选中Groovy 的选项（确保你选择了最新的版本）点击 <b>Next</b></li><li>接受，点击 <b>Next</b></li><li>如何默认安装位置可以的话，点击 <b>Finish</b> (然后eclipse开始下载Plugin) 
</li><li>如果你看到plugin为签名的对话框弹出来了，点击 <b>Install</b> or <b>Install All</b></li></ul><p>这将下载并安装Eclipse的Groovy插件.  它需要重启Eclipse来保证插件加载完成。<br /><br />如果你想尝试最近的开发中的版本,  可以用这个站点: http<span class="nobr"><a href="http://dist.codehaus.org/groovy/distributions/updateDev/"><font color="#2266cc">://dist.codehaus.org/groovy/distributions/updateDev/</font></a></span></p></div><div class="section_3"><h3>创建一个 Groovy 工程</h3><p>按照如下步骤创建一个基本的Groovy工程:</p><ul><li>打开: <b>File</b> -&gt; <b>New</b> -&gt; <b>Project</b></li><li>选择 <b>Java Project</b> 然后点 <b>Next</b></li><li>在 <b>Project Name</b> 字段填上你工程的名字
</li><li>在 <b>Project Layout</b> 下选择 <b>Create separate source and output folders</b> 然后点击 <b>Finish</b></li><li>在 <b>Package Explorer</b> 下找到刚刚新建的工程，右击, 选择 <b>Groovy</b> -&gt; <b>Add Groovy Nature</b></li></ul><p>到目前为止你有了一个src目录，一个bin-groovy目录，还有几个库文件。还有一个由Eclipse创建的bin目录，但是因为过滤隐藏了。下面的几步是为了让bin-groovy目录成为默认的输出文件夹，并且将它和src文件夹关联，使得调试工具知道从哪找关联的源代码和类。</p><ul><li>在 <strong>Package Explorer</strong>, 右击 "GroovyJava" 工程, 选择: <b>Build Path</b> -&gt; <b>Configure Build Path</b></li><li>使用 <b>Browse</b> 按钮，将 <b>Default Output Folder</b> 从<b>bin</b> 改为 <b>bin-groovy</b></li><li>点击 <b>OK</b>, <b>OK</b></li></ul></div></div><img src ="http://www.blogjava.net/jht/aggbug/147523.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/jht/" target="_blank">jht</a> 2007-09-23 11:19 <a href="http://www.blogjava.net/jht/archive/2007/09/23/147523.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>