Sha256: 138f7c7d4e50a6f6948ee5ac6e3f781df6510ea5b0c6f9162d32ce79226faa3e

Contents?: true

Size: 1.57 KB

Versions: 2

Compression:

Stored size: 1.57 KB

Contents

# jruby-warck

jruby-warck takes any Rack-based application builds a .war file that you can run either

  * with "java -jar" or
  * inside a servlet container (eg.Tomcat, JBoss, Jetty, etc...).

Yes, it's like Warbler, but far simpler.

## Usage

### Dependencies
  * jruby-rack

### Basic

  1. change directory to the root of your application
  2. run "rake assets:precompile" if you've a Rails application.
  3. run "warck package[war_name]" (If you need to compile the source code, use "warck package_compiled[war_name]" instead)
  4. You can now deploy the resulting jar in a servlet container or run in standalone mode, i.e, java -jar [war_name].war

### Customizing what gets in the .war


When packaging, jruby-warck will include all .rb files in the web archive.

Additionally, by default it will also include all .yml and .erb files, but you can change this.

* To select which files should be packaged, create a "select.files" inside the application directory containing a glob pattern per line for the filenames you need. Note that this will override the default, so that no other files will be included.

* To keep any files from being included, create "reject.files" inside the app directory containing a glob pattern per line for the filenames you want to reject.

### Customizing classpath
By default MANIFEST.MF includes jruby-complete on the classpath. However, if your application needs to add addicional entries to classpath, create a "cp.entries" file, and specify one entry per line.

##License

jruby-warck is released under the [MIT License](http://www.opensource.org/licenses/MIT).

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jruby-warck-1.2.4 README.md
jruby-warck-1.2.3 README.md