def initialize(warbler_home = WARBLER_HOME)
@warbler_home = warbler_home
@staging_dir = File.join("tmp", "war")
@dirs = TOP_DIRS.select {|d| File.directory?(d)}
@includes = FileList[]
@excludes = FileList[]
@java_libs = default_jar_files
@java_classes = FileList[]
@gems = Warbler::Gems.new
@gem_dependencies = true
@exclude_logs = true
@public_html = FileList["public/**/*"]
@pathmaps = default_pathmaps
@webxml = default_webxml_config
@rails_root = File.expand_path(defined?(RAILS_ROOT) ? RAILS_ROOT : Dir.getwd)
@war_name = File.basename(@rails_root)
auto_detect_frameworks
yield self if block_given?
@excludes += warbler_vendor_excludes(warbler_home)
@excludes += FileList["**/*.log"] if @exclude_logs
@excludes << @staging_dir
end