Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Running the sample application in Eclispe

Chuck Dumont edited this page May 23, 2014 · 6 revisions
  1. Complete the steps outlined in Development Environment to set up your Eclipse workspace.

  2. Select Run->Run Configurations...

  3. Select OSGi Framework in the Navigator then click on New

  4. Enter JAGGR Sample in the Name field

  5. Select Equinox for the Framework

  6. Select Workspace and de-select Target Plaform

  7. Expand Target Platform and select org.eclipse.equinox.http.jetty

  8. Click Add Required Bundles Import

  9. Click Run

Open a web browser and enter the URL http://localhost/test/res/test.html

To load the application without using the Aggregator, use the URL http://localhost/test/res/test-no-aggr.html

###Using a file sync utility

When running the Aggregator out of Eclipse, web resources from WebContent are read out of the target folder for the project rather than the source folder. To avoid having to do a Maven build every time you update a JavaScript source file, you can use a file sync utility such as de.loskutov.FileSync to keep selected directories from the source and target folders in sync. The jaggr-core project already contains a settings file for de.loskutov.FileSync, so to use this utility with the Aggregator, you only need to install it into Eclipse.