Skip to content
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.

Using Winstone

Jerome Guibert edited this page Mar 25, 2015 · 1 revision

Run it

Deploy a single webapplication using a directory:

  java -jar target/winstone-X.X.X-boot.jar --webroot=<location of webroot> (+ other options)
  • OR - Deploy a single webapplication using a war file:
  java -jar target/winstone-X.X.X-boot.jar --warfile=<location of warfile> (+ other options)
  • OR - Deploy several webapplication using a multiple directories :
  java -jar target/winstone-X.X.X-boot.jar --webroots=[<location of webroot>;]+ (+ other options)

webroots is a dot-comma separated list of webroot

  • OR - Deploy several webapplication under the same directory:
  java -jar target/winstone-X.X.X-boot.jar --webappsDir=<location of webapps directory> (+ other options)
  • OR - Deploy several webapplication under the host directory:
  java -jar target/winstone-X.X.X-boot.jar --hostsDir=<location of hosts directory> (+ other options)

Build from source

If you want to build from source code, you will need to download and install: Apache Maven (v2.x) and Git Tool. The following instructions assume you have already installed Maven/git and have the maven/git shell script in your path

To build Winstone, checkout the tree:

git clone git@github.com:geronimo-iia/winstone.git

Then build it:

cd winstone
mvn clean install

The winstone-X.X.X-boot.jar file will be in the winstone/target directory after the build is complete.

By default maven build add dependencies into archive folder /lib in target jar file. If you need more information read more about Keystone