Commit f841d83755cc4318c921f119f2ec7d8d18ede49c
- Date: Thu Jun 12 22:08:47 +0000 2008
- Committer: Logan Barnett (logustus@gmail.com)
- Author: Logan Barnett (logustus@gmail.com)
- Commit SHA1: f841d83755cc4318c921f119f2ec7d8d18ede49c
- Tree SHA1: b2ccabf42b3b723f222068c965a9fd54f0d0e531
pty is required (was loaded, and failed). Using sh directly instead of file_utils.sh (it's a private method on file_utils).
Commit diff
| |   |
| 73 | 73 | desc "Create a keystore" |
| 74 | 74 | task :keytool => [:setup_consts] do |
| 75 | 75 | begin |
| 76 | | load 'pty' |
| 76 | require 'pty' |
| 77 | 77 | rescue Exception |
| 78 | 78 | warn "Exception requiring 'pty': #{$!.inspect}" |
| 79 | 79 | warn "If you are using JRuby, you may need MRI to run the rawr:keytool task" |
| toggle raw diff |
--- a/lib/rawr.rb
+++ b/lib/rawr.rb
@@ -73,7 +73,7 @@ namespace("rawr") do
desc "Create a keystore"
task :keytool => [:setup_consts] do
begin
- load 'pty'
+ require 'pty'
rescue Exception
warn "Exception requiring 'pty': #{$!.inspect}"
warn "If you are using JRuby, you may need MRI to run the rawr:keytool task" |
| |   |
| 91 | 91 | copy_deployment_to web_path |
| 92 | 92 | file_utils.cp web_start_config_file, web_path, :verbose => true |
| 93 | 93 | storepass = self_sign_pass_phrase(options) ? " -storepass #{self_sign_pass_phrase(options)} " : '' |
| 94 | | file_utils.sh "jarsigner -keystore sample-keys #{storepass} #{web_path}/#{@project_name}.jar myself" |
| 94 | sh "jarsigner -keystore sample-keys #{storepass} #{web_path}/#{@project_name}.jar myself" |
| 95 | 95 | puts "done signing project jar" |
| 96 | | @classpath.each {|jar| file_utils.sh "jarsigner -keystore sample-keys #{storepass} #{to_web_path(jar).strip} myself" } |
| 96 | @classpath.each {|jar| sh "jarsigner -keystore sample-keys #{storepass} #{to_web_path(jar).strip} myself" } |
| 97 | 97 | end |
| 98 | 98 | |
| 99 | 99 | |
| toggle raw diff |
--- a/lib/web_bundler.rb
+++ b/lib/web_bundler.rb
@@ -91,9 +91,9 @@ module Rawr
copy_deployment_to web_path
file_utils.cp web_start_config_file, web_path, :verbose => true
storepass = self_sign_pass_phrase(options) ? " -storepass #{self_sign_pass_phrase(options)} " : ''
- file_utils.sh "jarsigner -keystore sample-keys #{storepass} #{web_path}/#{@project_name}.jar myself"
+ sh "jarsigner -keystore sample-keys #{storepass} #{web_path}/#{@project_name}.jar myself"
puts "done signing project jar"
- @classpath.each {|jar| file_utils.sh "jarsigner -keystore sample-keys #{storepass} #{to_web_path(jar).strip} myself" }
+ @classpath.each {|jar| sh "jarsigner -keystore sample-keys #{storepass} #{to_web_path(jar).strip} myself" }
end
|