lib/jarbler/builder.rb in jarbler-0.2.3 vs lib/jarbler/builder.rb in jarbler-0.3.0

- old
+ new

@@ -269,16 +269,12 @@ puts "Compiling .rb files to .class is done with JRuby version #{JRUBY_VERSION}, but intended runtime JRuby version for jar file is #{config.jruby_version}" end ruby_files = Find.find('.').select { |f| f =~ /\.rb$/ } # find all Ruby files in the current directory - if !config.include_gems_to_compile - ruby_files = ruby_files.select { |f| !(f =~ /\.#{File::SEPARATOR}gems#{File::SEPARATOR}/) } # Exclude ./gems/* directories from compiling - end - # Exclude named files or directories from compiling config.excludes_from_compile.each do |exclude| - ruby_files = ruby_files.select { |f| !(f =~ /\.#{File::SEPARATOR}app_root#{File::SEPARATOR}#{exclude}/) } + ruby_files = ruby_files.select { |f| !(f =~ /\.#{File::SEPARATOR}#{exclude}/) } end ruby_files.each do |ruby_file| debug "Compile Ruby file #{ruby_file}" full_file_name = File.join(Dir.pwd, ruby_file) # full name including path is required by the JRuby compiler \ No newline at end of file