Sha256: 59a5377f68c2c144537c0e634af4ca06a7cf57324da001760851afcaa5aa28a7

Contents?: true

Size: 855 Bytes

Versions: 48

Compression:

Stored size: 855 Bytes

Contents

require 'fileutils'
require 'jettywrapper'

namespace :jetty do
  Jettywrapper.url = 'https://github.com/dpla/marmotta-jetty/archive/3.3.0-solr-4.10.3.zip'

  DEFAULT_MARMOTTA = File.expand_path(File.join(Jettywrapper.app_root,
                                                'jetty',
                                                'marmotta'))
  MARMOTTA_HOME = ENV['MARMOTTA_HOME'] || DEFAULT_MARMOTTA

  desc 'Configure solr schema'
  task :config do
    cp('solr_conf/schema.xml', 'jetty/solr/development-core/conf/schema.xml')
    cp('solr_conf/solrconfig.xml',
       'jetty/solr/development-core/conf/solrconfig.xml')
  end

  desc 'Empty the Marmotta home directory used by Jettywrapper'
  task :clean_marmotta_home do
    FileUtils.rm_rf(MARMOTTA_HOME) unless MARMOTTA_HOME == DEFAULT_MARMOTTA
  end

  task :clean => [:clean_marmotta_home]
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
krikri-0.15.2 lib/tasks/jetty.rake
krikri-0.15.1 lib/tasks/jetty.rake
krikri-0.15.0 lib/tasks/jetty.rake
krikri-0.14.0 lib/tasks/jetty.rake
krikri-0.13.2 lib/tasks/jetty.rake
krikri-0.13.1 lib/tasks/jetty.rake
krikri-0.13.0 lib/tasks/jetty.rake
krikri-0.12.4 lib/tasks/jetty.rake
krikri-0.12.3 lib/tasks/jetty.rake
krikri-0.12.1 lib/tasks/jetty.rake
krikri-0.12.0 lib/tasks/jetty.rake
krikri-0.12.0.pre.rc.1 lib/tasks/jetty.rake
krikri-0.11.2 lib/tasks/jetty.rake
krikri-0.11.1 lib/tasks/jetty.rake
krikri-0.11.0 lib/tasks/jetty.rake
krikri-0.10.1 lib/tasks/jetty.rake
krikri-0.10.0 lib/tasks/jetty.rake
krikri-0.9.0 lib/tasks/jetty.rake
krikri-0.8.9 lib/tasks/jetty.rake
krikri-0.8.8 lib/tasks/jetty.rake