forked from marubinotto/Piggydb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-war-utils.xml
121 lines (111 loc) · 4.26 KB
/
build-war-utils.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?xml version="1.0" encoding="UTF-8"?>
<project name="piggydb-war-utils" basedir=".">
<target name="_enable-anonymous">
<replace file="${build.war.dir}/WEB-INF/config/application.properties">
<replacetoken><![CDATA[piggydb.enableAnonymous=false]]></replacetoken>
<replacevalue><![CDATA[piggydb.enableAnonymous=true]]></replacevalue>
</replace>
</target>
<target name="_enable-strict-edit-auth">
<replace file="${build.war.dir}/WEB-INF/config/application.properties">
<replacetoken><![CDATA[piggydb.entity.changeableOnlyForCreator=false]]></replacetoken>
<replacevalue><![CDATA[piggydb.entity.changeableOnlyForCreator=true]]></replacevalue>
</replace>
</target>
<target name="_set-default-scale-to-detail">
<replace file="${build.war.dir}/WEB-INF/config/application.properties">
<replacetoken><![CDATA[piggydb.fragmentsView.defaultScale=]]></replacetoken>
<replacevalue><![CDATA[piggydb.fragmentsView.defaultScale=900]]></replacevalue>
</replace>
</target>
<target name="_enable-guest">
<replace file="${build.war.dir}/WEB-INF/spring/beans-model.xml">
<replacetoken><![CDATA[name="enableGuest" value="false"]]></replacetoken>
<replacevalue><![CDATA[name="enableGuest" value="true"]]></replacevalue>
</replace>
<replace file="${build.war.dir}/WEB-INF/spring/beans-ui.xml">
<replacetoken><![CDATA[name="allowsOnlyOwnerToUploadFile" value="false"]]></replacetoken>
<replacevalue><![CDATA[name="allowsOnlyOwnerToUploadFile" value="true"]]></replacevalue>
</replace>
</target>
<target name="_add-ad-top">
<replace file="${build.war.dir}/macro/ad.vm">
<replacetoken>##AD_TOP</replacetoken>
<replacevalue><![CDATA[
<div style="margin-bottom: 10px;">
<script type="text/javascript"><!--
google_ad_client = "pub-4370703433687393";
/* 728x90-top */
google_ad_slot = "4346200540";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
]]></replacevalue>
</replace>
</target>
<target name="_add-ad-sidebar-top">
<replace file="${build.war.dir}/macro/ad.vm">
<replacetoken>##AD_SIDEBAR_TOP</replacetoken>
<replacevalue><![CDATA[
<div class="sidebar-ad" style="text-align: center; margin-bottom: 10px;">
<script type="text/javascript"><!--
google_ad_client = "pub-4370703433687393";
/* 234x60-sidebar-top */
google_ad_slot = "8798119472";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
]]></replacevalue>
</replace>
</target>
<target name="_add-ad-sidebar-bottom">
<replace file="${build.war.dir}/macro/ad.vm">
<replacetoken>##AD_SIDEBAR_BOTTOM</replacetoken>
<replacevalue><![CDATA[
<div class="sidebar-ad" style="text-align: center; margin-top: 20px;">
<script type="text/javascript"><!--
google_ad_client = "pub-4370703433687393";
/* 200x200-sidebar-bottom-image */
google_ad_slot = "0893108701";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
]]></replacevalue>
</replace>
</target>
<target name="_add-ad-fragment">
<replace file="${build.war.dir}/macro/ad.vm">
<replacetoken>##AD_FRAGMENT</replacetoken>
<replacevalue><![CDATA[
<div style="text-align: center; margin-bottom: 5px;">
<script type="text/javascript"><!--
google_ad_client = "pub-4370703433687393";
/* 468x60-fragment */
google_ad_slot = "9041832052";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
]]></replacevalue>
</replace>
</target>
</project>