Rakefile in rscm-0.4.5 vs Rakefile in rscm-0.5.0

- old
+ new

@@ -11,27 +11,20 @@ PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : '' PKG_NAME = 'rscm' PKG_VERSION = RSCM::VERSION::STRING + PKG_BUILD PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" -desc "Default Task" task :default => [:test, :gem] -#task :gem => [:test] -task :test => [:starteam] # Run the unit tests # To run a specific test: rake test TEST=path/to/test fl = FileList.new('test/**/*_test.rb') fl.exclude('test/**/mooky*.rb') -fl.exclude('test/**/monotone*.rb') # Incomplete/unsupported for now - reactivate when more complete! -fl.exclude('test/**/clearcase*.rb') # Incomplete/unsupported for now - reactivate when more complete! -fl.exclude('test/**/darcs*.rb') # Incomplete/unsupported for now - reactivate when more complete! -#fl.exclude('test/**/cvs*.rb') # Incomplete/unsupported for now - reactivate when more complete! -#fl.exclude('test/**/subversion*.rb') # Incomplete/unsupported for now - reactivate when more complete! -fl.exclude('test/**/perforce*.rb') # Incomplete/unsupported for now - reactivate when more complete! -fl.exclude('test/**/p4client*.rb') # Incomplete/unsupported for now - reactivate when more complete! -fl.exclude('test/**/starteam*.rb') # Too bloody hard to test without a StarTeam server license! Tested ad-hoc. +fl.exclude('test/**/monotone*.rb') +fl.exclude('test/**/clearcase*.rb') +fl.exclude('test/**/p4client*.rb') +fl.exclude('test/**/darcs*.rb') Rake::TestTask.new { |t| t.libs << "test" t.test_files = fl t.verbose = true @@ -45,22 +38,9 @@ rdoc.rdoc_files.include('README') rdoc.rdoc_files.include('CHANGES') rdoc.rdoc_files.include('lib/**/*.rb') rdoc.rdoc_files.include('docs/**/*.rd') } - -task :starteam do |t| - if(!ENV['RSCM_STARTEAM']) - puts "WARNING - NOT BUILDING STARTEAM SUPPORT SINCE 'RSCM_STARTEAM' IS NOT DEFINED. It should point to the StarTeam SDK directory" - else - ant = RUBY_PLATFORM == "i386-mswin32" ? "ant.bat" : system("which ant.sh") ? "ant.sh" : "ant" - IO.popen("#{ant} -f ext/java/build.xml clean jar") do |io| - io.each_line do |line| - puts line - end - end - end -end PKG_FILES = FileList[ '[A-Z]*', 'lib/**/*', 'bin/**/*',