Skip to content

Commit

Permalink
just a wip of a jts install
Browse files Browse the repository at this point in the history
  • Loading branch information
mejackreed committed Feb 13, 2017
1 parent 72e7f0a commit 7c9b02d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .solr_wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
collection:
dir: solr/conf/
name: blacklight-core

extra_lib_directory: solr/ext
7 changes: 7 additions & 0 deletions lib/generators/geoblacklight/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ def solr_config
directory '../../../../solr', 'solr'
end

def download_jts
FileUtils.mkdir_p('solr/ext')
SolrWrapper::Downloader.fetch_with_progressbar(
'http://central.maven.org/maven2/com/vividsolutions/jts-core/1.14.0/jts-core-1.14.0.jar',
'solr/ext/jts-core-1.14.0.jar')
end

def include_geoblacklight_solrdocument
inject_into_file 'app/models/solr_document.rb', after: 'include Blacklight::Solr::Document' do
"\n include Geoblacklight::SolrDocument"
Expand Down

0 comments on commit 7c9b02d

Please sign in to comment.