Skip to content

Commit

Permalink
Specify full path the java because sudo is being a brat
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Gunderloy authored and Mike Gunderloy committed Jun 30, 2009
1 parent 3e586ba commit c478126
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vendor/plugins/rubaidhstrano/recipes/assets.rb
Expand Up @@ -56,7 +56,7 @@
end

if fetch(:compress_assets, false)
depend :remote, :command, "java"
depend :remote, :command, "/usr/java/jdk/bin/java"
before 'deploy:finalize_update', 'assets:compress'
end
end
2 changes: 1 addition & 1 deletion vendor/plugins/rubaidhstrano/tasks/assets.rake
Expand Up @@ -29,7 +29,7 @@ namespace :assets do
end

def yui_compressor(*args)
sh "java -jar #{File.join(File.dirname(__FILE__), '..', 'support', 'yuicompressor-2.4.2.jar')} #{args.join(" ")}"
sh "/usr/java/jdk/bin/java -jar #{File.join(File.dirname(__FILE__), '..', 'support', 'yuicompressor-2.4.2.jar')} #{args.join(" ")}"
end

task :javascripts => FileList["public/javascripts/**/*.js"] do |task|
Expand Down

0 comments on commit c478126

Please sign in to comment.