changes to solr build.xml

This commit is contained in:
briancaruso 2011-04-01 18:55:46 +00:00
parent d070c84453
commit 81c48b9fdd
2 changed files with 11 additions and 10 deletions

View file

@ -14,8 +14,6 @@
<property name="solr.context.config.example" location="${solr.build.dir}/exampleSolrContext.xml"/>
<property name="solr.war" location="${solr.build.dir}/apache-solr-1.4.1.war"/>
<property name="deploy.properties.file" location="???"/>
<!-- =================================
target: describe
================================= -->
@ -56,7 +54,7 @@ deploy - Deploy solr service for use by vitro.
</copy>
<!-- Place context configuration XML in tomcat config directory. -->
<copy tofile="${tomcat.home}/conf/Catalina/localhost">
<copy todir="${tomcat.home}/conf/Catalina/localhost">
<fileset file="${solr.context.config}"/>
</copy>
@ -67,8 +65,11 @@ deploy - Deploy solr service for use by vitro.
target: properties
- - - - - - - - - - - - - - - - - -->
<target name="properties">
<property name="deploy.properties.file" location="deploy.properties" />
<fail message="You must create a &quot;${deploy.properties.file}&quot; file.">
<!--<property name="deploy.properties.file" location="deploy.properties" /> -->
<fail unless="deploy.properties.file"
message="The ant property deploy.properties.file must be defined to indicate the vitro deploy to create a solr service for." />
<fail message="There is no accessable deploy.properties file at &quot;${deploy.properties.file}&quot;.">
<condition>
<not>
<available file="${deploy.properties.file}" />

View file

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Context docBase="${solr.docbase}"
debug="0" crossContext="true">
crossContext="true" override="true">
<Environment
name="solr/home"
type="java.lang.String"
name="solr/home"
value="${solr.home}" override="true"/>
<!-- Disable persist sessions on shut down.-->
<Manager pathname="" />
</Context>