Fork me on Github s

Posts Tagged ant

Does Your Build Suck?

I have come up with a few questions you should ask yourself if your build is up to snuff. 

  • Does it take longer than 10 minutes to setup a new computer to build a project?
  • Are there only a one or two people who know how to completely setup a new computer?
  • Do builds sometimes fail on the integration server when they are passing on your development machine?
  • Do you often make cross-repository commits?
  • Does building a subproject force you to build several other subprojects?
  • Does it take longer than 2 minutes to checkout a new project and build it successfully?
  • Is it possible for other developers (or other external factors) to break your development build without checking in code?
  • Can you use any IDE with your project?

If you answered yes to any of these questions, perhaps you should spend some time refactoring your build and/or project structure.  A nasty build can be very frustrating for developers yet is an oft overlooked part of development.

Tags: , , , , , ,

1 Comment

JRuby 1.5 to provide native support for Ant

In case you haven’t heard, the next version of JRuby will provide native support for Ant.  Much like antwrap, you will be able to call ant tasks straight from Ruby.  There are some pretty good examples here, but no examples of how to get it running on your machine today.

  1. First, you will need to install Git SCM
  2. Next, create a directory, JRuby on your machine
  3. CD to that directory, and run ‘git init’
  4. Next, run ‘git pull git://github.com/jruby/jruby.git’
  5. Once it has finished downloading, you can run ‘ant’ to build it
  6. Now, just use the executable jar under bin to run the latest version of JRuby

Now get started converting those nasty ant builds to rake.

Tags: , ,

No Comments