NIHVIVO-3439 Test to insure that the vitro.home.directory is writable by the build script. If it is not, the Solr installation will fail. REQUIRES ANT 1.8

This commit is contained in:
j2blake 2012-03-08 17:09:41 +00:00
parent 0813f08387
commit 06fbfcbb87

View file

@ -115,6 +115,16 @@ deploy - Deploy the application directly into the Tomcat webapps directory.
</not> </not>
</condition> </condition>
</fail> </fail>
<fail message="The vitro.home.directory &quot;${vitro.home.directory}&quot; is not writable.">
<condition>
<not>
<isfileselected file="${vitro.home.directory}" >
<writable/>
</isfileselected>
</not>
</condition>
</fail>
<property name="solr.home.dir" location="${vitro.home.directory}/solr" /> <property name="solr.home.dir" location="${vitro.home.directory}/solr" />
</target> </target>