<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Eclipse Setup for Grails 1.1 Development</title>
	<atom:link href="http://www.objectpartners.com/2009/05/27/eclipse-setup-for-grails-11-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.objectpartners.com/2009/05/27/eclipse-setup-for-grails-11-development/</link>
	<description>Object Partners Inc.</description>
	<lastBuildDate>Wed, 25 Aug 2010 12:45:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Object Partners Inc.</title>
		<link>http://www.objectpartners.com/2009/05/27/eclipse-setup-for-grails-11-development/comment-page-1/#comment-204</link>
		<dc:creator>Object Partners Inc.</dc:creator>
		<pubDate>Tue, 02 Jun 2009 17:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.objectpartners.com/?p=1111#comment-204</guid>
		<description>[...] is a follow on to Eclipse Setup for Grails 1.1 Development. Although not ideal Eclipse integration, by setting up a Run Configuration for your Grails project [...]</description>
		<content:encoded><![CDATA[<p>[...] is a follow on to Eclipse Setup for Grails 1.1 Development. Although not ideal Eclipse integration, by setting up a Run Configuration for your Grails project [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tlomenda</title>
		<link>http://www.objectpartners.com/2009/05/27/eclipse-setup-for-grails-11-development/comment-page-1/#comment-203</link>
		<dc:creator>tlomenda</dc:creator>
		<pubDate>Tue, 02 Jun 2009 01:25:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.objectpartners.com/?p=1111#comment-203</guid>
		<description>Running Grails Integration Tests in Eclipse

Although not ideal IDE integration, by setting up a Run Configuration for your Grails project in Eclipse, you will be able to run and debug Grails integration JUnit tests within Eclipse.  Here is how:
- Open Run Configurations
- Select Java Applications-&gt;New
- On the Main tab: 
    Project:  Select your Grails project
    Main class:  org.codehaus.groovy.grails.cli.support.GrailsStarter
- On Arguments tab:
    Program args (Including the quotes):  
        &quot;test-app ${string_prompt} -integration&quot;
    VM Arguments: -Dgrails.home=${grails_home} 
        -Dbase.dir=&quot;${project_loc:}&quot;    
        -Dgrails.env=development -Xms512M -Xmx768M 
        -XX:PermSize=64M -XX:MaxPermSize=128M
- On Classpath tab
    User Entries add your project
    User Entries add all $GROOVY_HOME/dist and 
        $GROOVY_HOME/lib jar files (to be safe)
- On Source tab add your Java Project for debugging purposes
- On Environment tab you have to add a JAVA_HOME and 
  GRAILS_HOME environment variable.
- On Common tab Display in Run and Debug Favorites menus
- Apply and Done

Try it out.  Let&#039;s say you have integration tests for a controller called SomeController.  When you run this new run configuration, when prompted type in SomeController.  The results of test will be shown in the console and the test report will be generated in /test/reports (you will have to manually re-sync to refresh the reports.

Now try setting a breakpoint in a test within the integration test case for SomeController.  Now run the debug configuration version of the setup you did above.  Again, when prompted enter SomeController. Eclipse should stop at your breakpoint.  Now you can debug your integration test within Eclipse without having to manually setup a remote debugger.</description>
		<content:encoded><![CDATA[<p>Running Grails Integration Tests in Eclipse</p>
<p>Although not ideal IDE integration, by setting up a Run Configuration for your Grails project in Eclipse, you will be able to run and debug Grails integration JUnit tests within Eclipse.  Here is how:<br />
- Open Run Configurations<br />
- Select Java Applications-&gt;New<br />
- On the Main tab:<br />
    Project:  Select your Grails project<br />
    Main class:  org.codehaus.groovy.grails.cli.support.GrailsStarter<br />
- On Arguments tab:<br />
    Program args (Including the quotes):<br />
        &#8220;test-app ${string_prompt} -integration&#8221;<br />
    VM Arguments: -Dgrails.home=${grails_home}<br />
        -Dbase.dir=&#8221;${project_loc:}&#8221;<br />
        -Dgrails.env=development -Xms512M -Xmx768M<br />
        -XX:PermSize=64M -XX:MaxPermSize=128M<br />
- On Classpath tab<br />
    User Entries add your project<br />
    User Entries add all $GROOVY_HOME/dist and<br />
        $GROOVY_HOME/lib jar files (to be safe)<br />
- On Source tab add your Java Project for debugging purposes<br />
- On Environment tab you have to add a JAVA_HOME and<br />
  GRAILS_HOME environment variable.<br />
- On Common tab Display in Run and Debug Favorites menus<br />
- Apply and Done</p>
<p>Try it out.  Let&#8217;s say you have integration tests for a controller called SomeController.  When you run this new run configuration, when prompted type in SomeController.  The results of test will be shown in the console and the test report will be generated in /test/reports (you will have to manually re-sync to refresh the reports.</p>
<p>Now try setting a breakpoint in a test within the integration test case for SomeController.  Now run the debug configuration version of the setup you did above.  Again, when prompted enter SomeController. Eclipse should stop at your breakpoint.  Now you can debug your integration test within Eclipse without having to manually setup a remote debugger.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Adelman</title>
		<link>http://www.objectpartners.com/2009/05/27/eclipse-setup-for-grails-11-development/comment-page-1/#comment-200</link>
		<dc:creator>Nick Adelman</dc:creator>
		<pubDate>Fri, 29 May 2009 19:56:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.objectpartners.com/?p=1111#comment-200</guid>
		<description>I am wondering if you have tried or had success in debugging grails integration tests within eclipse, or seen and reference regarding how to do this. Unit tests can be debuged with no problem. For integration tests, I have only seen references to running grails-debug from the command line and then attaching an eclipse debugger.</description>
		<content:encoded><![CDATA[<p>I am wondering if you have tried or had success in debugging grails integration tests within eclipse, or seen and reference regarding how to do this. Unit tests can be debuged with no problem. For integration tests, I have only seen references to running grails-debug from the command line and then attaching an eclipse debugger.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philipp</title>
		<link>http://www.objectpartners.com/2009/05/27/eclipse-setup-for-grails-11-development/comment-page-1/#comment-198</link>
		<dc:creator>Philipp</dc:creator>
		<pubDate>Wed, 27 May 2009 23:07:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.objectpartners.com/?p=1111#comment-198</guid>
		<description>I followed your instructions on 
Eclipse 3.4.1 on Ubuntu 9.04 with Java 6
so maybe some other Ubuntu people will find this helpful

------------
comments to &quot;Versions I Used for this Setup&quot;
I used
http://dist.codehaus.org/groovy/distributions/updateDev/
which seems to have Groovy 1.6

------------
comments to &quot;Eclipse WorkSpace Setup&quot;

I have Ubuntu and used http://code.google.com/p/ant-deb-task/ to get a debian package
using your linux console you can find out where grails is installed.
$ grails
Grails home is set to: /usr/share/grails

I had problems with enviroment variables so I used a lot of global paths

------------
comments to &quot;Create Grails External Tool&quot;

I had problems with my JAVA_HOME so I set it manually in the environment tab of the External-Config, and set it to &quot;replace native ...&quot;

My grails command was not set to executable so I followed http://jamesladdcode.com/?p=97 not sure if this is a wise idea, but it got we forward
/usr/share/grails/bin$ sudo chmod +x grails

so the command is
/usr/share/grails/bin/grails

------------
comments to &quot;Debugging Your Grails Application&quot;
I asssume we have the same limitation like in NetBeans6.7 that we can&#039;t set breakpoint in closures and step throug them, right?

------------
comments to &quot;Resolving Eclipse Classpath Problems: Grails Project with Grails Plug-in Dependencies&quot;

I skipped this, for the moment, but we are using this plugin too, so it seems I will come back to this soon.

------------
comments to &quot;Running Grails Unit Tests in Eclipse&quot;
I had the problem that Eclipse complained the bin-groovy is not in the classpath. I added it manually in the &quot;configure build path&quot;-&gt;&quot;Libraries Tab&quot;-&gt;&quot;Add Class Folder Button&quot;



------------
Result: Ready for Mylyn + Grails</description>
		<content:encoded><![CDATA[<p>I followed your instructions on<br />
Eclipse 3.4.1 on Ubuntu 9.04 with Java 6<br />
so maybe some other Ubuntu people will find this helpful</p>
<p>&#8212;&#8212;&#8212;&#8212;<br />
comments to &#8220;Versions I Used for this Setup&#8221;<br />
I used<br />
<a href="http://dist.codehaus.org/groovy/distributions/updateDev/" rel="nofollow">http://dist.codehaus.org/groovy/distributions/updateDev/</a><br />
which seems to have Groovy 1.6</p>
<p>&#8212;&#8212;&#8212;&#8212;<br />
comments to &#8220;Eclipse WorkSpace Setup&#8221;</p>
<p>I have Ubuntu and used <a href="http://code.google.com/p/ant-deb-task/" rel="nofollow">http://code.google.com/p/ant-deb-task/</a> to get a debian package<br />
using your linux console you can find out where grails is installed.<br />
$ grails<br />
Grails home is set to: /usr/share/grails</p>
<p>I had problems with enviroment variables so I used a lot of global paths</p>
<p>&#8212;&#8212;&#8212;&#8212;<br />
comments to &#8220;Create Grails External Tool&#8221;</p>
<p>I had problems with my JAVA_HOME so I set it manually in the environment tab of the External-Config, and set it to &#8220;replace native &#8230;&#8221;</p>
<p>My grails command was not set to executable so I followed <a href="http://jamesladdcode.com/?p=97" rel="nofollow">http://jamesladdcode.com/?p=97</a> not sure if this is a wise idea, but it got we forward<br />
/usr/share/grails/bin$ sudo chmod +x grails</p>
<p>so the command is<br />
/usr/share/grails/bin/grails</p>
<p>&#8212;&#8212;&#8212;&#8212;<br />
comments to &#8220;Debugging Your Grails Application&#8221;<br />
I asssume we have the same limitation like in NetBeans6.7 that we can&#8217;t set breakpoint in closures and step throug them, right?</p>
<p>&#8212;&#8212;&#8212;&#8212;<br />
comments to &#8220;Resolving Eclipse Classpath Problems: Grails Project with Grails Plug-in Dependencies&#8221;</p>
<p>I skipped this, for the moment, but we are using this plugin too, so it seems I will come back to this soon.</p>
<p>&#8212;&#8212;&#8212;&#8212;<br />
comments to &#8220;Running Grails Unit Tests in Eclipse&#8221;<br />
I had the problem that Eclipse complained the bin-groovy is not in the classpath. I added it manually in the &#8220;configure build path&#8221;-&gt;&#8221;Libraries Tab&#8221;-&gt;&#8221;Add Class Folder Button&#8221;</p>
<p>&#8212;&#8212;&#8212;&#8212;<br />
Result: Ready for Mylyn + Grails</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Torey Lomenda</title>
		<link>http://www.objectpartners.com/2009/05/27/eclipse-setup-for-grails-11-development/comment-page-1/#comment-197</link>
		<dc:creator>Torey Lomenda</dc:creator>
		<pubDate>Wed, 27 May 2009 22:51:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.objectpartners.com/?p=1111#comment-197</guid>
		<description>One step I left out (or at least implied) in order to run unit tests in Eclipse.  You need to ensure that your project&#039;s bin-groovy directory is on the Eclipse project&#039;s classpath.

This will allow you to make changes to your groovy files in Eclipse, compile changes are made in bin-groovy and groovy unit tests can be re-run with these changes.

A post that details these unit testing steps further can be found at:  http://www.objectpartners.com/2009/02/16/unit-testing-grails-in-eclipse/</description>
		<content:encoded><![CDATA[<p>One step I left out (or at least implied) in order to run unit tests in Eclipse.  You need to ensure that your project&#8217;s bin-groovy directory is on the Eclipse project&#8217;s classpath.</p>
<p>This will allow you to make changes to your groovy files in Eclipse, compile changes are made in bin-groovy and groovy unit tests can be re-run with these changes.</p>
<p>A post that details these unit testing steps further can be found at:  <a href="http://www.objectpartners.com/2009/02/16/unit-testing-grails-in-eclipse/" rel="nofollow">http://www.objectpartners.com/2009/02/16/unit-testing-grails-in-eclipse/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
