
gems.maven-tools-1.0.5.Rakefile Maven / Gradle / Ivy
The newest version!
#-*- mode: ruby -*-
begin
require 'maven/ruby/tasks'
rescue LoadError
# ignore - can not add as development dependency to avoid circular dependencies
end
task :default => [ :specs ]
desc 'run minispecs'
task :specs do
begin
require 'minitest'
rescue LoadError
end
require 'minitest/autorun'
$LOAD_PATH << "spec"
$LOAD_PATH << "lib"
Dir['spec/*_spec.rb'].each { |f| require File.basename(f.sub(/.rb$/, '')) }
end
task :headers do
require 'copyright_header'
s = Gem::Specification.load( Dir["*gemspec"].first )
args = {
:license => s.license,
:copyright_software => s.name,
:copyright_software_description => s.description,
:copyright_holders => s.authors,
:copyright_years => [Time.now.year],
:add_path => "lib:src",
:output_dir => './'
}
command_line = CopyrightHeader::CommandLine.new( args )
command_line.execute
end
# vim: syntax=Ruby
© 2015 - 2025 Weber Informatics LLC | Privacy Policy