https://github.com/abargnesi/rake-ant-jruby
An idea on how to combine build tools for fast and flexible java builds.
https://github.com/abargnesi/rake-ant-jruby
Last synced: 3 months ago
JSON representation
An idea on how to combine build tools for fast and flexible java builds.
- Host: GitHub
- URL: https://github.com/abargnesi/rake-ant-jruby
- Owner: abargnesi
- Created: 2014-09-11T03:50:19.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-11T03:55:57.000Z (over 10 years ago)
- Last Synced: 2025-01-12T17:47:37.492Z (5 months ago)
- Language: Ruby
- Homepage:
- Size: 113 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Rake + Ant + JRuby
==================This shows how to compile a jar project using Rake and Ant running on JRuby. JRuby is started with nailgun
to improve task execution time with Rake.IMHO this is a nice intersection of mature build tools, convenient build tasks, and a flexible language.
Startup time is also important. This could be used quickly from something like `gosh (the go shell)`_.
*Requirements*:
- Rake (``gem install rake``)
- Apache ANT, the ``ANT_HOME`` environment variable must be set
- JRuby*Usage*:
.. code-block:: bash
# start jruby using nailgun
jruby --ng-server# root of ant tool
export ANT_HOME="$HOME/tools/ant"# connect using nailgun client; --dev option to improve startup time (https://github.com/jruby/jruby/wiki/Improving-startup-time)
export JRUBY_OPTS="--ng --dev"# run rake
rake ant:compile ant:jar
Compiling java from src/main/java to target/classes
/home/tony/work/rake-jruby-test/Rakefile:12: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
Creating target/project.jar
Building jar: /home/tony/work/rake-jruby-test/target/project.jarreal 0m1.897s
user 0m0.201s
sys 0m0.246s.. _gosh (the go shell): https://github.com/formwork-io/gosh