Permalink
Browse files

Shorten long lines

  • Loading branch information...
1 parent fe678a1 commit e7e69482898f3741c763d0b223de5fccf6f68e58 @drbrain drbrain committed Jan 31, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 Rakefile
View
@@ -72,7 +72,8 @@ if java
jruby_home = RbConfig::CONFIG['prefix']
ext.ext_dir = 'ext/java'
ext.lib_dir = 'lib/nokogiri'
- ext.classpath = (["#{jruby_home}/lib/jruby.jar"] + FileList['lib/*.jar'].map { |x| File.expand_path x }).join ':'
+ jars = ["#{jruby_home}/lib/jruby.jar"] + FileList['lib/*.jar']
+ ext.classpath = jars.map { |x| File.expand_path x }.join ':'
end
gem_build_path = File.join 'pkg', HOE.spec.full_name
@@ -81,7 +82,9 @@ if java
task gem_build_path => [:compile, tgz_build_path] do
cp_r tgz_build_path, gem_build_path, :verbose => true
- cp 'lib/nokogiri/nokogiri.jar', File.join(gem_build_path, 'lib', 'nokogiri'), :verbose => true
+ cp 'lib/nokogiri/nokogiri.jar',
+ File.join(gem_build_path, 'lib', 'nokogiri'),
+ :verbose => true
HOE.spec.files += ['lib/nokogiri/nokogiri.jar']
end
else

0 comments on commit e7e6948

Please sign in to comment.