lib/warbler/jar.rb
def find_application_files(config)
      config.dirs.select do |d|
        exists = File.directory?(d)
        $stderr.puts "warning: application directory `#{d}' does not exist or is not a directory; skipping" unless exists
        exists
      end.each do |d|
        @files[apply_pathmaps(config, d, :application)] = nil
      end
      @app_filelist = FileList[*(config.dirs.map{|d| "#{d}/**/*"})]
      @app_filelist.include *(config.includes.to_a)
      @app_filelist.exclude *(config.excludes.to_a)
      @app_filelist.map {|f| add_with_pathmaps(config, f, :application) }
    end
# Add all application directories and files to the archive.
Add all application directories and files to the archive.
Add all application directories and files to the archive .
def find_application_files(config)
      config.dirs.select do |d|
        exists = File.directory?(d)
        $stderr.puts "warning: application directory `#{d}' does not exist or is not a directory; skipping" unless exists
        exists
      end.each do |d|
        @files[apply_pathmaps(config, d, :application)] = nil
      end
      @app_filelist = FileList[*(config.dirs.map{|d| "#{d}/**/*"})]
      @app_filelist.include *(config.includes.to_a)
      @app_filelist.exclude *(config.excludes.to_a)
      @app_filelist.map {|f| add_with_pathmaps(config, f, :application) }
    end
def find_application_files ( config ) config . dirs . select do | d | exists = File . directory? ( d ) $stderr . puts "warning: application directory `#{d}' does not exist or is not a directory; skipping" unless exists exists end . each do | d | @files [ apply_pathmaps ( config , d , :application ) ] = nil end @app_filelist = FileList [ * ( config . dirs . map { | d | "#{d}/**/*" } ) ] @app_filelist . include * ( config . includes . to_a ) @app_filelist . exclude * ( config . excludes . to_a ) @app_filelist . map { | f | add_with_pathmaps ( config , f , :application ) } end
Add all application directories and files to the archive.
Add all application directories and files to the archive .
config