Sha256: c7f53ed2b0325b7dfc11ad18c975d9aab930c69c1796c35689c54ed9b1fbd60d

Contents?: true

Size: 911 Bytes

Versions: 10

Compression:

Stored size: 911 Bytes

Contents

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
maven-tools-1.0.5 Rakefile
maven-tools-1.0.4 Rakefile
maven-tools-1.0.3 Rakefile
maven-tools-1.0.2 Rakefile
maven-tools-1.0.1 Rakefile
maven-tools-1.0.0 Rakefile
maven-tools-1.0.0.rc6 Rakefile
maven-tools-1.0.0.rc5 Rakefile
maven-tools-1.0.0.rc4 Rakefile
maven-tools-1.0.0.rc3 Rakefile