concept Eclipse in category griffon

This is an excerpt from Manning's book Griffon in Action.
integrate-with—Adds IDE support files. Command-line tools and a simple text editor are good enough to get you started, but if you need additional power, you might want to try a Java IDE that supports Groovy and Griffon. At the time of writing, you can specify the following command flags to integrate with a particular IDE or build tool: eclipse, ant, gradle, textmate, and intellij. For example, if you want to add Eclipse-specific support files, you invoke the integrate command as follows:
$ griffon integrate-with –-eclipse You can now open your project from within Eclipse, because this command created a pair of files that every Eclipse project requires: .project and .classpath. You can find comprehensive coverage of setting your IDE to work with Griffon projects, as well as other productivity tools, in chapter 14.
NetBeans IDE is another popular choice among Java developers. Though it was a latecomer in terms of Groovy support, that didn’t prevent the NetBeans team from gaining ground at a tremendous pace, to the point where this IDE can be considered the second best when it comes to working with Groovy (and no, Eclipse isn’t first on that list, yet).
Unlike Eclipse, a Groovy editor is a standard part of NetBeans IDE if you install the full version, meaning that you don’t need to install any plugins to use Groovy in Net-Beans IDE. In addition, there’s a plugin that integrates the Griffon commands into NetBeans IDE, allowing you to create new Griffon applications right inside NetBeans IDE.
We’ll discuss Eclipse first because it’s the dominant IDE on the market by a large margin, judging by its install base. We’ll cover the basic steps involved in getting a Griffon application up and running. The first step is installing the Groovy Eclipse Plugin.
Now the .classpath file will be up to date every time you install or uninstall a plugin. Remember to refresh the project inside Eclipse to get the latest version every time you install or uninstall a plugin.
Finally, the third step: importing the project into Eclipse. Bring up the Import dialog box and select the Existing Projects into Workspace option, as shown in figure 14.2.
All of this is great, but you’ll surely want to test drive your Griffon application. You’ll rely on Eclipse’s Ant support, because at the time of writing there’s no explicit Griffon support in Eclipse—this may change in the future.
The trick is letting Eclipse know about the Ant build file that should be located in your application’s main directory. Hold on a second, there’s no Ant build file yet! No worries—you can generate a suitable one by invoking the following command at the command prompt:
$ griffon integrate-with -antNow go back to Eclipse, and don’t forget to refresh the project’s contents! Open the Ant view if you don’t have it open already: go to Window > Show Views > Ant. On that view, right-click to display a contextual menu, select the Add Buildfile option, locate your application’s build file, and voilà! You should see a list of available targets in the Ant view, as shown in figure 14.5. Without further ado, double-click on any target, such as the run-app one, and after a few seconds your application should pop up. Notice that the target’s output will be displayed in the Console view.
You’re free now to explore what can be done with Eclipse. Remember that the Ant build file contains just a small selection of the targets that can be called. You can tweak it to meet your own needs.