lib/jruby-warck/constants.rb in jruby-warck-1.0.1 vs lib/jruby-warck/constants.rb in jruby-warck-1.0.2

- old
+ new

@@ -47,10 +47,10 @@ WEB_INF = BUILD_DIR + "/WEB-INF" META_INF = BUILD_DIR + "/META-INF" RACKUP_FILE = "config.ru" - BOOTSTRAP_ERB = File.read(File.exist?(custom_bootstrap = RUNNING_FROM + "/jar-bootstrap.rb.erb") ? custom + BOOTSTRAP_ERB = File.read(File.exist?(custom_bootstrap = RUNNING_FROM + "/jar-bootstrap.rb.erb") ? custom_bootstrap : (HOME + "/lib/templates/jar-bootstrap.rb.erb")) # additional filename patterns to be included inside the archive # default is all yml files SELECT_FILES = FileList[IO.readlines(Dir.pwd + "/select.files").map(&:chomp).reject { |line| line[0] == "#" }] rescue FileList["**/*.yml", "**/*.erb"]