Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(805)

Side by Side Diff: jruby-abridged/Rakefile

Issue 129078: add support for precompilation-enabled (Closed)
Patch Set: move the java files Created 14 years, 5 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « google-appengine/Rakefile ('k') | jruby-abridged/lib/appengine-jruby-jars.rb » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 require 'rubygems' 1 require 'rubygems'
2 require 'rake/gempackagetask' 2 require 'rake/gempackagetask'
3 require 'rubygems/specification' 3 require 'rubygems/specification'
4 require 'date' 4 require 'date'
5 require 'erb' 5 require 'erb'
6 require 'fileutils' 6 require 'fileutils'
7 7
8 ROOT = File.expand_path(File.dirname(__FILE__)) 8 ROOT = File.expand_path(File.dirname(__FILE__))
9 require "#{ROOT}/lib/appengine-jruby-jars" 9 require "#{ROOT}/lib/appengine-jruby-jars"
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 warn_file = "#{site_ruby}jruby/openssl/builtin.rb" 70 warn_file = "#{site_ruby}jruby/openssl/builtin.rb"
71 all_lines = IO.readlines(warn_file) 71 all_lines = IO.readlines(warn_file)
72 open(nice_file, 'w') do |file| 72 open(nice_file, 'w') do |file|
73 file.puts(all_lines[0..-5] + all_lines[-2..-1]) 73 file.puts(all_lines[0..-5] + all_lines[-2..-1])
74 end 74 end
75 mv(nice_file, warn_file) 75 mv(nice_file, warn_file)
76 end 76 end
77 # redistribute some other files 77 # redistribute some other files
78 cp(File.join(AppEngine::Rack::ROOT, 'appengine-rack.rb'), site_ruby) 78 cp(File.join(AppEngine::Rack::ROOT, 'appengine-rack.rb'), site_ruby)
79 cp_r(File.join(AppEngine::Rack::ROOT, 'appengine-rack'), 79 cp_r(File.join(AppEngine::Rack::ROOT, 'appengine-rack'),
80 File.join(site_ruby, 'appengine-rack')) 80 File.join(site_ruby, 'appengine-rack'))
81 mkdir_p(File.join('com', 'google', 'appengine', 'jruby'))
82 cp(File.join(ROOT, 'src', 'LazyApplicationFactory.class'),
83 File.join('com', 'google', 'appengine', 'jruby'))
84 cp(File.join(ROOT, 'src', 'LazyContextListener.class'),
85 File.join('com', 'google', 'appengine', 'jruby'))
81 cp(APPENGINE_BOOT, site_ruby) 86 cp(APPENGINE_BOOT, site_ruby)
82 cp(APPENGINE_COMMANDS, File.join('jruby', 'commands.rb')) 87 cp(APPENGINE_COMMANDS, File.join('jruby', 'commands.rb'))
83 check_system("jar", "cf", File.join(ROOT, ABRIDGED_JAR), '.') 88 check_system("jar", "cf", File.join(ROOT, ABRIDGED_JAR), '.')
84 end 89 end
85 rm_rf('tmp') 90 rm_rf('tmp')
86 end 91 end
87 end 92 end
88 end 93 end
89 94
90 task :default => :gem 95 task :default => :gem
91 96
92 Rake::GemPackageTask.new(spec).define 97 Rake::GemPackageTask.new(spec).define
93 98
94 desc "install the gem locally" 99 desc "install the gem locally"
95 task :install => [:package] do 100 task :install => [:package] do
96 sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}} 101 sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
97 end 102 end
98 103
99 desc "create a gemspec file" 104 desc "create a gemspec file"
100 task :make_spec do 105 task :make_spec do
101 open("#{GEM}.gemspec", "w") do |file| 106 open("#{GEM}.gemspec", "w") do |file|
102 file.puts spec.to_ruby 107 file.puts spec.to_ruby
103 end 108 end
104 end 109 end
OLDNEW
« no previous file with comments | « google-appengine/Rakefile ('k') | jruby-abridged/lib/appengine-jruby-jars.rb » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b