vivo-project / VIVO

VIVO is an extensible semantic web application for research discovery and showcasing scholarly work
http://vivoweb.org
BSD 3-Clause "New" or "Revised" License
202 stars 127 forks source link

No VIVO_HOME/rdf directory #3855

Closed chenejac closed 1 year ago

chenejac commented 1 year ago

Describe the bug The bug is introduced by this PR. It will be probably irrelevant after merging this PR, but we should fix this meanwhile. If VIVO_HOME is empty,

                                     <delete includeemptydirs="true">
                                            <fileset dir="${vivo-dir}/rdf">
                                                <include name="**/*"/>
                                                <exclude name="**/i18n/*_x_*/**"/>
                                            </fileset>
                                        </delete>

is throwing exception (no rdf directory)

To Reproduce

  1. configure setting.xml (for instance VIVO/installer/example-settings.xml) to point to an empty VIVO_HOME directory <vivo-dir>/opt/VIVO/home1111</vivo-dir>
  2. mvn clean install -s installer/example-settings.xml
  3. See error

Expected behavior It should also work when VIVO_HOME is empty (installation for the first time).