Explode a .war file

Purpose

Create an "exploded .war format" of your web application using symbolic links to support faster code, compile, test cycles.

Requirements

  • Buildr 1.3+
  • Application server supporting exploded .war format
  • OS platform supporting symbolic links

Known Working

Tested on Jetty and Tomcat, Linux (Ubuntu 8.10), Buildr 1.3.4 (trunk)

Usage

0. Download explode.rb

1. At the top of your buildfile, add the following:

require 'explode.rb'

2. Define explode task on your web application:

package(:war).explode :target => "jetty/webapps/myApplication"

3. Run the task

buildr myApp:explode
  • No labels