0.0
No commit activity in last 3 years
No release in over 3 years
Kinda like warbler, except WAR-only and contained in a single Rakefile.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
>= 1.1.7, ~> 1.1
 Project Readme

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.