forked from collectionspace/ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
55 lines (47 loc) · 2.31 KB
/
build.xml
File metadata and controls
55 lines (47 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<project name="ui" default="quick-deploy" basedir=".">
<!-- This file based on https://github.com/collectionspace/Tools/blob/master/mini-build/tenant-customizations-v2.2/ui/build.xml -->
<description>CollectionSpace UI</description>
<!-- 'environment' must be declared to bring values of system -->
<!-- environment variables into Ant, prior to reading any -->
<!-- properties files that may reference those values. -->
<property environment="env" />
<!-- Set properties for this build -->
<property file="build.properties" />
<property name="ui.war.dir.filepath"
value="${jee.deploy.cspace}/${cspace.ui.war.dir}" />
<fileset id="ui.webapp.with.standard.excludes" dir="${cspace.ui.webapp.filepath}"
defaultexcludes="false">
<include name="${cspace.ui.tenants}/**" />
<include name="${cspace.ui.defaults}/**" />
<exclude name="**/.project" />
<exclude name="**/.classpath" />
<exclude name="**/.idea/**" />
<exclude name="**/.settings/**" />
<exclude name="**/.svn/**" />
<exclude name="**/nbproject/**" />
<exclude name="**/.git/**" />
<exclude name="**/.gitignore" />
</fileset>
<!-- One-way sync the contents of the webapp directory to an exploded UI .war directory, -->
<!-- if present, without first doing an undeploy. -->
<target name="quick-deploy"
description="Sync UI customizations to the deployed CollectionSpace UI .war directory."
depends="sync-to-war-dir">
</target>
<!-- Syncs a potentially customized UI to the deployed UI .war directory -->
<target name="sync-to-war-dir"
depends="check-ui-war-dir-exists"
if="${ui.war.dir.exists}">
<!-- Does not overwrite files in the target with same or newer timestamp and provides -->
<!-- verbose output, both helping make the set of files being updated readily apparent. -->
<sync todir="${ui.war.dir.filepath}"
verbose="true">
<fileset refid="ui.webapp.with.standard.excludes" />
</sync>
</target>
<!-- Identify whether a UI .war directory exists -->
<target name="check-ui-war-dir-exists">
<available type="dir" file="${ui.war.dir.filepath}"
property="ui.war.dir.exists" />
</target>
</project>