Sha256: 7afd0040a99654dc178041f2755e4e021b4917c79ca595c33e7f10a6f8ca5481

Contents?: true

Size: 1.42 KB

Versions: 1

Compression:

Stored size: 1.42 KB

Contents

# -*- 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ivy4r-0.3.0 Rakefile