Source

war-bootstrap /

Filename Size Date modified Message
bootstrap
duel-mvcapp-archetype
mvcapp
132 B
198 B
1.2 KB
1.4 KB

Dev Setup

Environment

Maven Setup

mvn archetype:generate \
    -DarchetypeGroupId=org.duelengine \
    -DarchetypeArtifactId=duel-mvcapp-archetype \
    -DarchetypeVersion=0.2.0
cd myAppName
mvn package

JRebel Setup

Configure JRebel with $JREBEL_OPTS:

export JREBEL_OPTS "-noverify -javaagent:/Applications/ZeroTurnaround/JRebel/jrebel.jar"

Eclipse Instructions (Helios & Indigo)

  1. Create new Workspace
  2. Import... >> Maven >> Existing Maven Projects
  3. Build paths >> Add as Source Folders
    • target/generated-sources/duel
  4. Preferences >> General >> Workspace:
    • Build Automatically
    • Refresh Automatically
  5. Map *.duel extension to HTML editor

If also using Groovy:

  1. Build Paths >> Add as Source Folders
    • target/generated-sources/groovy-stubs/main
    • target/generated-sources/groovy-stubs/test

Development

  1. Start the dev webserver with: ./launch.sh
  2. Edit with Eclipse... refresh
  3. Repeat
  4. Restart on Guice binding changes / major refactorings as these don't seem to propagate as well