lib/rbbt/resource/util.rb in rbbt-util-5.26.77 vs lib/rbbt/resource/util.rb in rbbt-util-5.26.78

- old
+ new

@@ -81,13 +81,11 @@ dir = line.chomp dir = File.join(opt_dir, dir) unless dir[0] == "/" Misc.env_add('CLASSPATH', "#{dir}") end if File.exist? File.join(opt_dir, '.java-classpaths') - Dir.glob(File.join opt_dir, 'jars', '*').each do |file| - dir = line.chomp - dir = File.join(opt_dir, dir) unless dir[0] == "/" - Misc.env_add('CLASSPATH', "#{dir}") + Dir.glob(File.join opt_dir, 'jars', '*.jar').each do |file| + Misc.env_add('CLASSPATH', "#{file}") end if File.exist?(File.join(opt_dir, '.post_install')) and File.directory?(File.join(opt_dir, '.post_install')) Dir.glob(File.join(opt_dir, '.post_install','*')).each do |file|