-
Notifications
You must be signed in to change notification settings - Fork 15
Running the sample application in Eclispe
-
Complete the steps outlined in Development Environment to set up your Eclipse workspace.
-
Select Run->Run Configurations...
-
Select OSGi Framework in the Navigator then click on New
-
Enter JAGGR Sample in the Name field
-
Select Equinox for the Framework
-
Select Workspace and de-select Target Plaform
-
Expand Target Platform and select org.eclipse.equinox.http.jetty
-
Click Add Required Bundles
-
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.