def initialize(warbler_home = WARBLER_HOME)
@staging_dir = File.join("tmp", "war")
@dirs = TOP_DIRS
@includes = FileList[]
@excludes = FileList[]
@java_libs = FileList["#{warbler_home}/lib/*.jar"]
@java_classes = FileList[]
@gems = default_gems
@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)
yield self if block_given?
@excludes += warbler_vendor_excludes(warbler_home)
@excludes += FileList["**/*.log"] if @exclude_logs
@excludes << @staging_dir
end