Home > sbt-winstone-plugin

sbt-winstone-plugin

Sbt-winstone-plugin is a project mainly written in Scala, it's free.

A simple-build-tool (sbt) plugin for embedding your warfile into the Winstone Servlet Container.

A "simple-build-tool":http://code.google.com/p/simple-build-tool/ (sbt) plugin for embedding your warfile into the "Winstone Servlet Container":http://winstone.sourceforge.net/#embedding.

h2. Usage

Check out sbt's "plugin documentation":http://code.google.com/p/simple-build-tool/wiki/SbtPlugins.

  1. Modify your @project/plugins/Plugins.scala@ file:
import sbt._
class Plugins(info: ProjectInfo) extends PluginDefinition(info) {
  val github = "GitHub" at "http://petrh.github.com/m2/"
  val winstone = "com.github.petrh" % "sbt-winstone-plugin" % "1.0-SNAPSHOT"
}
  1. Modify your project definition file:
import sbt._
class Project(info: ProjectInfo) extends DefaultWebProject(info) with WinstoneProject {
  ...
}
  1. Now you may run:
  sbt update
  sbt embed
  1. The generated jarfile may be run directly using @java -jar jarfile@.