Sha256: 5b9fef82b5bff84b8b60d892512075f47ffaf0337262f7c1f13630eb97c66fb7

Contents?: true

Size: 644 Bytes

Versions: 1

Compression:

Stored size: 644 Bytes

Contents

require 'fileutils'
require 'jettywrapper'

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

  MARMOTTA_HOME = ENV['MARMOTTA_HOME'] || File.expand_path(File.join(Jettywrapper.app_root, '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 'Remove the jetty and marmotta directories and recreate them'
  task :clean do
    FileUtils.rm_rf(MARMOTTA_HOME)
    Jettywrapper.clean
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
krikri-0.1.0 lib/tasks/jetty.rake