NIHVIVO-327 Set <sync> steps to not fail if ontologies or submodels directories are missing. Modify <copyetc> target to copy those directories even if they are empty.
This commit is contained in:
parent
de2fe22338
commit
44f9706d82
1 changed files with 9 additions and 2 deletions
|
@ -197,7 +197,10 @@ deploy - Deploy the application directly into the Tomcat webapps directory.
|
|||
</copy>
|
||||
|
||||
<copy todir="${build.dir}/war/WEB-INF">
|
||||
<fileset dir="${webapp.dir}" includes="ontologies" />
|
||||
<fileset dir="${webapp.dir}" includes="ontologies/**/*" />
|
||||
<fileset dir="${webapp.dir}" includes="submodels" />
|
||||
<fileset dir="${webapp.dir}" includes="submodels/**/*" />
|
||||
</copy>
|
||||
|
||||
<copy file="${webapp.dir}/config/default.log4j.properties"
|
||||
|
@ -254,12 +257,16 @@ deploy - Deploy the application directly into the Tomcat webapps directory.
|
|||
</copy>
|
||||
|
||||
<!-- Discard any ontology files from previous builds. -->
|
||||
<sync todir="${webapp.deploy.home}/WEB-INF/ontologies" includeEmptyDirs="true">
|
||||
<sync todir="${webapp.deploy.home}/WEB-INF/ontologies"
|
||||
includeEmptyDirs="true"
|
||||
failonerror="false">
|
||||
<fileset dir="${build.dir}/war/WEB-INF/ontologies" includes="**/*" />
|
||||
</sync>
|
||||
|
||||
<!-- Discard any submodel files from previous builds. -->
|
||||
<sync todir="${webapp.deploy.home}/WEB-INF/submodels" includeemptydirs="true">
|
||||
<sync todir="${webapp.deploy.home}/WEB-INF/submodels"
|
||||
includeemptydirs="true"
|
||||
failonerror="false">
|
||||
<fileset dir="${build.dir}/war/WEB-INF/submodels" includes="**/*" />
|
||||
</sync>
|
||||
</target>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue