-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
43 lines (39 loc) · 1.86 KB
/
build.xml
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
<project name="ProjectBuildHelper" basedir=".">
<description>
Project Build Helper
</description>
<property name="webInf" location="src/main/webapp/WEB-INF" />
<target name="copy-libs-jar">
<mkdir dir="${webInf}/lib"/>
<echo>Copying jars from ${basedir}/lib to ${webInf}/lib</echo>
<copy todir="${webInf}/lib" overwrite="true">
<fileset dir="lib">
<exclude name="Readme.txt" />
</fileset>
</copy>
</target>
<target name="copy-wm-project-properties">
<mkdir dir="target/classes"/>
<echo>Copying .wmproject.properties file to target/classes(classpath)</echo>
<copy file=".wmproject.properties" todir="target/classes" overwrite="true" failonerror="false"/>
</target>
<target name="cdnUrl-replace">
<replaceregexp file="src/main/webapp/index.html" byline="true">
<regexp pattern="/studio/_static_/*.*.*.*/wmapp"/>
<substitution expression="_cdnUrl_/wmapp"/>
</replaceregexp>
<replaceregexp file="src/main/webapp/index.html" byline="true">
<regexp pattern="//.*.cloudfront.net/studio-app/.*.*.*.*/wmapp"/>
<substitution expression="_cdnUrl_/wmapp"/>
</replaceregexp>
<replaceregexp file="src/main/webapp/index.html" byline="true">
<regexp pattern="/studio/_static_/*.*.*.*/wmmobile"/>
<substitution expression="_cdnUrl_/wmmobile"/>
</replaceregexp>
<replaceregexp file="src/main/webapp/index.html" byline="true">
<regexp pattern="//.*.cloudfront.net/studio-app/.*.*.*.*/wmmobile"/>
<substitution expression="_cdnUrl_/wmmobile"/>
</replaceregexp>
</target>
<target name="init" depends="copy-libs-jar,copy-wm-project-properties,cdnUrl-replace"></target>
</project>