# -*- ruby -*- $:.unshift File.join(File.dirname(__FILE__), 'lib') require 'rubygems' require 'hoe' require 'ivy4r' hoe = Hoe.spec 'ivy4r' do |p| # self.rubyforge_name = 'ivy4rx' # if different than 'ivy4r' p.developer('Klaas Prause', 'klaas.prause@googlemail.com') p.remote_rdoc_dir = '' # Release to root only one project p.extra_deps = [['Antwrap', '>=0.7.0']] File.open(File.join(File.dirname(__FILE__), 'VERSION'), 'w') do |file| file.puts Ivy4r::VERSION end end begin require 'jeweler' Jeweler::Tasks.new(hoe.spec) rescue LoadError puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" end # vim: syntax=ruby ENV['IVY_EXT_DIR'] ||= '../Ivy' task 'ivy:publish' do#=> ['test', 'test:plugins', 'war:clean', 'war'] do raise 'ANT_HOME missing in environment!' unless ENV['ANT_HOME'] require 'ivy4r' ivy = Ivy4r.new #ivy.ant_home = ENV['ANT_HOME'] ext_dir = File.expand_path(ENV['IVY_EXT_DIR']) ivy.project_dir = ext_dir home = File.join(ext_dir, 'ivy-home') ivy.lib_dir = File.join(home, 'jars') ivy.property['ivy.home'] = home ivy.property['ivy.status'] = 'release' ivy.settings :file => File.join(ext_dir, 'ant-scripts', 'ivysettings.xml') ivy.resolve :file => File.join(File.dirname(__FILE__), 'ivy.xml') #options = {:status => status, :pubrevision => revision, :artifactspattern => "#{publish_from}/[artifact].[ext]"} end