begin require 'jettywrapper' namespace :jetty do desc "Copies the application's solr config into jetty" task configure_solr: ['jetty:clean'] do FileList['solr_conf/conf/*'].each do |f| cp(f.to_s, 'jetty/solr/blacklight-core/conf/', verbose: true) end end end rescue LoadError namespace :jetty do desc "Copies the application's solr config into jetty (requires jettywrapper)" task :configure_solr do # no-op end end end