RubyGems Navigation menu

anttrap 0.01

The AntTrap Ruby Gem ==================== A tiny Gem that can generate an Apache Ant build file from a Rakefile. This allows for a developer to work in Rake, but integrate with any tool that supports Ant. The generated build file simply calls exec on the selected Rake task. As of 8/9/2011, the only tool I have tested so far is Eclipse. Sample rakefile --- require 'anttrap' AntTrap.antproject="RakeFile #{Time.new}" AntTrap.rake = '/usr/bin/rake' AntTrap.rakeargs = ["-v"] desc "The Bar task" task :Bar do puts "Bar!" end desc "The Foo Task" task :Foo do puts "Hello world" end Sample Generated Ant Build File --- Generating an Ant Build File --- rake AntTrap Using the Ant Build file in an IDE --- Simply use the Ant build file in your favorite IDE like you always have. Each time you modify the rakefile, be sure to run "rake AntTrap" (or just run the AntTrap task from your IDE). Whenever you the build.xml file is generated, the Ant file will need to be refreshed in your IDE. In Eclipse, right click in the Ant view and select "Refresh Buildfiles". Compiling Multiple Java Files from Rake --- see the [sample rakefile](https://github.com/metadave/anttrap/blob/master/samples/rakefile) Installation --- Unix: sudo gem install anttrap Windows: gem install anttrap Submitting an Issue --- I use the [GitHub issue tracker](http://github.com/metadave/anttrap/issues) to track bugs and features. Before submitting a bug report or feature request, check to make sure it hasn't already been submitted. You can indicate support for an existing issuse by voting it up. When submitting a bug report, please include a [Gist](http://gist.github.com/) that includes a stack trace and any details that may be necessary to reproduce the bug, including your gem version, Ruby version, and operating system. Ideally, a bug report should include a pull request with failing specs. Copyright --- Copyright (c) 2011 Dave Parfitt See [LICENSE](https://github.com/metadave/anttrap/blob/LICENSE) for details.

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 0.03 - August 12, 2011 (7 KB)
  2. 0.02 - August 10, 2011 (7 KB)
  3. 0.01 - August 09, 2011 (8 KB)

Runtime Dependencies (1):

builder >= 3.0.0

Owners:

Authors:

  • Dave Parfitt

SHA 256 checksum:

2ae2a8f51a17aeb4228557d00a0d7176f9376d9e7b76867d651c6154013e3e0c

Total downloads 15,745

For this version 4,904

Licenses:

N/A

Required Ruby Version: >= 1.8

Links: