Rakefile in backlog-0.9.1 vs Rakefile in backlog-0.10.0
- old
+ new
@@ -19,13 +19,13 @@
p.author = 'Uwe Kubosch'
p.email = 'uwe@kubosch.no'
p.remote_rdoc_dir = '' # Release to root
p.changes = p.paragraphs_of('History.txt', 0..4).join("\n\n")
p.rdoc_pattern = /^(app\/(controllers|helpers|models)|lib|bin)|txt$/
- p.clean_globs = ['doc']
+ p.clean_globs = ['doc', 'log']
p.spec_extras = {
- :files => Dir['**/*'].reject{|file_name| file_name =~ /^(doc|log|pkg|tmp)/},
+ :files => Dir['**/*'].reject{|file_name| file_name =~ /^(doc|log|pkg|tmp|WEB-INF)/},
:rdoc_options => ['--inline-source'],
:executables => ['backlog'],
:requirements => ['ImageMagick or GraphicsMagick', 'PostgreSQL']
}
p.need_zip = true
@@ -34,9 +34,23 @@
p.rsync_args = "-av --delete --exclude=wiki*"
end
task :release_all do
ENV['VERSION'] = APP::VERSION
- Rake::Task[:publish_docs].invoke
+ #Rake::Task[:publish_docs].invoke
Rake::Task[:release].invoke
- Rake::Task[:post_news].invoke
+ Rake::Task[:release_war].invoke
+ #Rake::Task[:post_news].invoke
+end
+
+task :release_war do
+ Rake::Task['war:standalone:create'].invoke
+ if File.exists? 'backlog.war'
+ File.makedirs 'pkg'
+ File.move 'backlog.war', "pkg/backlog-#{APP::VERSION}.war"
+ end
+ if File.exists? "pkg/backlog-#{APP::VERSION}.war"
+ rf = RubyForge.new
+ rf.login
+ rf.add_file 'backlog', 'backlog', APP::VERSION, "pkg/backlog-#{APP::VERSION}.war"
+ end
end
\ No newline at end of file