Not everything is needed to build and run the plugins and RCP version, so only import the plugins into Eclipse as described below.
$ git clone https://github.com/sstalin/AppBuilder.git
Open the Eclipse Download Page and choose "Eclipse for RCP and RAP Developers"
Via the Eclipse menu, choose File -> Import -> General -> Existing Projects into Workspace. Navigate to the Madl folder, select all of the plugins, and click Finish.
Via the Eclipse menu, choose File -> Import -> General -> Existing Projects into Workspace. Navigate to the Groovy top-level folder, select all of the plugins, and click Finish.
There will be a build error in the org.codehaus.groovy.eclipse.astviews project if the Groovy/Grails plugin is not installed because Groovy classes in that project will not be recognized by Eclipse.
Open Help -> Eclipse Marketplace and search for "groovy" and install Groovy/Grails Tool Suite (GGTS) for Eclipse Kepler (4.3).
Note: Eclipse will need to be restarted for the installation to finish.
- Expand the
edu.depaul.cdm.madl.eclipse.featureproject. - Right-click on
feature.xmland choose Run configurations - Add a new Run Configuration under Eclipse Application named MADL-Plugin
- The default can be left for all other settings
- Click Run
- A runtime Eclipse instance will startup with the plugin installed
Important: Once the runtime Eclipse instance starts, set the AppBuilder Home directory via Eclipse -> Preferences -> AppBuilder Preferences to the root of the AppBuilder directory. If the AppBuilder Home directory is not set, it's not possible to create a new project.
- Close the runtime instance of Eclipse if it's still open
- Expand the
edu.depaul.cdm.madl.bootstrapproject - Right-click on
plugin.xmland choose Run configurations - Add a new Run Configuration under Eclipse Application named MADL-RCP
- On the Main tab, under
Run a productchooseedu.depaul.cdm.madl.bootstrap.product - The default can be left for all other settings
- Click Run
- The MADL splash screen will display and a runtime instance of Eclipse will open the RCP version
- As before, set the AppBuilder Home directory before creating a new project
- Download and Open Eclipse 4.3 or higher from the Eclipse Download Page
- Important: First install the
JDT Core patch for Groovy-Eclipse plugin. This is required, otherwise the MADL plugin will throw runtime errors once installed. To install this patch, navigate to Help -> Eclipse Marketplace and search "groovy". Choose only theJDT Core patch for Groovy-Eclipse plugin:
- Confirm the installation and restart Eclipse
- Once Eclipse restarts, navigate to Help -> Install New Software
- Click
Addto setup the MADL update site - Configure Name as "MADL Update Site"
- Configure Location as http://selab.cdm.depaul.edu/SEStudio/madl
- Select MADL IDE from the list of plugins and click Next to proceed with the installation
- As before, set the AppBuilder Home directory before creating a new project
- Right-click on the
edu.depaul.cdm.madl.eclipse.featureproject and chooseExport - Choose Plug-in Development -> Deployable features and click Next
- Choose a location under the
Directoryfield
This will package and export all of the necessary files as jar libraries.
Lastly, copy the exact file and folder structure to an update site, i.e.:
# Copy everything from the current directory excluding shell scripts to the update site
$ rsync -r --exclude=*.sh * madl@selab.cdm.depaul.edu:/var/www/html/SEStudio/madl
# Or, simply copy everything from the current directory to the update site
$ scp -r * madl@selab.cdm.depaul.edu:/var/www/html/SEStudio/madl
Note: The feature includes a category.xml. To change the name of the plugin displayed to the user on install, edit the category.xml Name field. Currently, it's "MADL IDE."
- Expand the
edu.depaul.cdm.madl.bootstrapplug-in project - Right click
plugin.xmland select Export - Choose Plug-in Development -> Eclipse product
- Select a Destination directory and click Finish
