forked from hapifhir/hapi-hl7v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
103 lines (103 loc) · 4.52 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<project name="MyProject" basedir=".">
<target name="site">
<echo>Running Maven</echo>
<exec executable="mvn.bat">
<arg line="-P SITE,ACCESS clean"/>
</exec>
<exec executable="mvn.bat">
<arg line="-P SITE,ACCESS post-site"/>
</exec>
</target>
<target name="package">
<echo>Running Maven</echo>
<exec executable="./mvn">
<arg line="-P GEN,ACCESS clean"/>
</exec>
<exec executable="mvn.bat">
<arg line="-P GEN,ACCESS install assembly:assembly"/>
</exec>
</target>
<target name="all">
<echo>Running Maven</echo>
<!--<exec executable="mvn.bat">
<arg line="-P GEN,ACCESS clean"/>
</exec>-->
<exec executable="mvn.bat">
<arg line="-P GEN,ACCESS install"/>
</exec>
<exec executable="mvn.bat">
<arg line="-P DIST,ACCESS package assembly:assembly site"/>
</exec>
</target>
<target name="urchin">
<echo>Adding Google analytics in target/site</echo>
<replace dir="target/site" summary="true">
<include name="**/*.html"></include>
<replacefilter token="#build#" value="${label}"/>
<replacefilter token="#version#" value="${version}"/>
<replacetoken><![CDATA[</body>]]></replacetoken>
<replacevalue><![CDATA[
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-1395874-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
]]></replacevalue>
</replace>
<replace dir="target/site" summary="true">
<include name="**/*.html"></include>
<replacetoken><![CDATA[</BODY>]]></replacetoken>
<replacevalue><![CDATA[
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-1395874-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</BODY>
]]></replacevalue>
</replace>
<replace dir="target/site" summary="true">
<include name="**/*.html"></include>
<replacetoken><![CDATA[</HEAD>
<FRAMESET]]></replacetoken>
<replacevalue><![CDATA[
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-1395874-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</HEAD>
<FRAMESET]]></replacevalue>
</replace>
<replace dir="target/site" summary="true">
<include name="**/*.html"></include>
<replacetoken><![CDATA[</head>
<frameset]]></replacetoken>
<replacevalue><![CDATA[
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-1395874-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</head>
<frameset]]></replacevalue>
</replace>
</target>
</project>