Rakefile in backlog-0.17.0 vs Rakefile in backlog-0.17.1
- old
+ new
@@ -32,25 +32,27 @@
p.url = 'http://rubyforge.org/projects/backlog/'
p.extra_deps = [['rails', '>= 1.2.3'], ['gruff', '>= 0.2.8'], ['rmagick', '>= 1.15.10'], ['postgres', '>= 0.7.1']]
p.rsync_args = "-av --delete --exclude=wiki*"
end
+desc 'Release the application to RubyForge'
task :release_all do
ENV['VERSION'] = APP::VERSION
Rake::Task[:publish_docs].invoke
Rake::Task[:release].invoke
Rake::Task[:release_war].invoke
Rake::Task[:post_news].invoke
end
+desc 'Release the application as a Java EE WAR file to RubyForge'
task :release_war do
- File.mkdir 'WEB-INF' unless File.exists? 'WEB-INF'
+ Dir.mkdir 'WEB-INF' unless File.exists? 'WEB-INF'
FileUtils.cp 'vendor/plugins/goldspike/generators/goldspike/templates/web.xml.erb', 'WEB-INF/web.xml.erb' unless File.exists? 'WEB-INF/web.xml.erb'
Rake::Task['war:standalone:create'].invoke
war_pkg_file = "pkg/backlog-#{APP::VERSION}.war"
if File.exists? 'backlog.war'
- File.makedirs 'pkg'
- File.move 'backlog.war', war_pkg_file
+ FileUtils.makedirs 'pkg'
+ FileUtils.move 'backlog.war', war_pkg_file
end
if File.exists? war_pkg_file
rf = RubyForge.new
rf.login
rf.add_file 'backlog', 'backlog', APP::VERSION, war_pkg_file