Permalink
Browse files

added additional config files to copy on install

  • Loading branch information...
1 parent c84105e commit bec69fe44e5f0d748206268318593a5c05c931eb @mbrevoort committed Jan 8, 2010
Showing with 8 additions and 3 deletions.
  1. BIN grails-solr-0.1.zip
  2. +1 −1 plugin.xml
  3. +7 −2 scripts/_Install.groovy
View
Binary file not shown.
View
@@ -3,7 +3,7 @@
<authorEmail>brevoortm@avalonconsult.com</authorEmail>
<title>Grails Solr Plugin</title>
<description>\
-Provides search capabilities for Grails domain model and more. Based on Solr
+Provides search capabilities for Grails domain model and more using the excellent Solr
open source search server through the SolrJ library.
</description>
<documentation>http://grails.org/Solr+Plugin</documentation>
View
@@ -8,5 +8,10 @@
//
// ant.mkdir(dir:"${basedir}/grails-app/jobs")
//
-Ant.mkdir(dir: "${basedir}/grails-app/conf/solr")
-Ant.copy(file: "${pluginBasedir}/src/solr-local/solr/conf/schema.xml", todir:"${basedir}/grails-app/conf/solr")
+def solrConfDir = "${basedir}/grails-app/conf/solr"
+if(! new File(solrConfDir)?.exists()) {
+ Ant.mkdir(dir: "${basedir}/grails-app/conf/solr")
+ Ant.copy(todir:"${basedir}/grails-app/conf/solr") {
+ fileset(dir: "${pluginBasedir}/src/solr-local/solr/conf" )
+ }
+}

0 comments on commit bec69fe

Please sign in to comment.