NIHVIVO-242 Remove from the Tomcat deploy area any ontology or submodel files that are left over from previous builds.
This commit is contained in:
parent
bf943e7bf1
commit
6ea86f7197
1 changed files with 14 additions and 0 deletions
|
@ -205,6 +205,10 @@ deploy - Deploy the application directly into the Tomcat webapps directory.
|
||||||
<fileset file="${webapp.dir}/config/dwr.xml" />
|
<fileset file="${webapp.dir}/config/dwr.xml" />
|
||||||
</copy>
|
</copy>
|
||||||
|
|
||||||
|
<copy todir="${build.dir}/war/WEB-INF">
|
||||||
|
<fileset dir="${webapp.dir}" includes="ontologies/**/*" />
|
||||||
|
</copy>
|
||||||
|
|
||||||
<copy file="${webapp.dir}/config/default.log4j.properties"
|
<copy file="${webapp.dir}/config/default.log4j.properties"
|
||||||
tofile="${build.dir}/war/WEB-INF/classes/log4j.properties"
|
tofile="${build.dir}/war/WEB-INF/classes/log4j.properties"
|
||||||
filtering="true">
|
filtering="true">
|
||||||
|
@ -257,6 +261,16 @@ deploy - Deploy the application directly into the Tomcat webapps directory.
|
||||||
<copy todir="${webapp.deploy.home}">
|
<copy todir="${webapp.deploy.home}">
|
||||||
<fileset dir="${build.dir}/war" />
|
<fileset dir="${build.dir}/war" />
|
||||||
</copy>
|
</copy>
|
||||||
|
|
||||||
|
<!-- Discard any ontology files from previous builds. -->
|
||||||
|
<sync todir="${webapp.deploy.home}/WEB-INF/ontologies" includeEmptyDirs="true">
|
||||||
|
<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">
|
||||||
|
<fileset dir="${build.dir}/war/WEB-INF/submodels" includes="**/*" />
|
||||||
|
</sync>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
Loading…
Add table
Reference in a new issue