Module Buildr::Ant
In: lib/buildr/java/ant.rb  (CVS)

Methods

ant   dependencies   version  

Constants

VERSION = '1.8.0'   Which version of Ant we‘re using by default.

Public Class methods

Current version of Ant being used.

Public Instance methods

Creates a new AntProject with the specified name, yield to the block for defining various Ant tasks, and executes each task as it‘s defined.

For example:

  ant("hibernatedoclet') do |doclet|
    doclet.taskdef :name=>'hibernatedoclet',
      :classname=>'xdoclet.modules.hibernate.HibernateDocletTask', :classpath=>DOCLET
    doclet.hibernatedoclet :destdir=>dest_dir, :force=>'true' do
      hibernate :version=>'3.0'
      fileset :dir=>source, :includes=>'**/*.java'
    end
  end

[Validate]