Skip to content

Building & Running

Peter Powers edited this page Sep 20, 2017 · 13 revisions

Build requirements:

Running:

Running nshmp-haz-ws services locally requires installation of a Java Servlet 3.1 container (e.g. Apache Tomcat 8). Once configured, executing:

cd /path/to/nshmp-haz-ws
./gradlew war

... creates a deployable WAR file in nshmp-haz-ws/build/libs.

To build, run, and test web applications using Eclipse, install:

Please see build.gradle for additional details on configuring paths to model directories.

Eclipse configuration and execution:

  • Set the Java 8 JDK installation as the default: Preferences > Java > Installed JREs
  • Set up a Tomcat server: Preferences > Server > Runtime Environments > Add...
  • Import nshmp-haz: File > Import > Gradle > Existing Gradle Project
  • Import nshmp-haz-ws, also as a Gradle project.
  • Window > Perspective > Open Perspective > Java Browsing
  • Select nshmp-haz-ws in the Package Explorer tab.
  • Run > Run As > Run on Server
Clone this wiki locally