Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Update about Gradle and Subclipse

...

  • CTRL+SHIFT+R for finding resources!
  • CTRL+H for finding text in files
  • The rest you will find on Internet (smile)

Note: though it's now more history, for me at least, here is what I got through initially when working with Gradle in Eclipse

Jira
serverASF JIRA
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyOFBIZ-7779

...

Setting up Eclipse to work with OFBiz is easy.

There are two ways to import OFBiz into Eclipse:

...

Info
titleMostly for committers but also for users who mind about svn history and annotations.

OFBiz has been split between framework and plugins. It's though still possible for Eclipse to handle the plugins inside the framework by embedding the ofbiz-plugins project inside the ofbiz (ofbiz-framework) project. That's interesting notably if you use Subclipse.

  1. Install the the best Eclipse plugin for Gradle: "Pivotal EGradle IDE". You can find it with MarketPlace and it offers almost all what you need.
  2. Change your perspective to show the EGradle buttons in the toolbar
  3. Run "gradlew pullAllPluginsSource"  from ofbiz-framework project root. pullAllPluginsSource inside Eclipse using the "EGradle quick launch" feature (use the button in the toolbar)
  4. Import the just checked out ofbiz-plugins project in Eclipse.
  5. Follow https://stackoverflow.com/questions/9163501/eclipse-import-folder-of-source-code-to-other-projects.
  6. You may then close ofbiz-plugins project (better keep it open see below). You should now be able to use the ofbiz project to handle both framework and plugins.

There is only 1 drawback. If you run gradlew eclipse your ofbiz project will lose the relation with its ofbiz-plugins sub project because this Gradle task delete and create a new .classpath files which destroy the relation created when following the stackoverflow answer. Then you need to make the steps above again. Note that you only need that if you wan to use Subclipse for plugins from inside the ofbiz (ofbiz-framework) project. Else the plugins project should still stay open and you can use Subclipse there. We can maybe automate that with Gradle but I'm not sure how.

...