-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
180 lines (145 loc) · 7.42 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<project name="ApiCommonWebsite" basedir=".">
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooo Dependencies oooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<import file="${projectsDir}/EbrcWebSvcCommon/build.xml" />
<import file="${projectsDir}/JBrowse/build.xml" />
<import file="${projectsDir}/ApiCommonModel/build.xml" />
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooo Installation oooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<target name="ApiCommonWebsite-Installation" depends="EbrcWebSvcCommon-Installation,
ApiCommonModel-Installation,
JBrowse-Installation,
ApiCommonWebsite/Model-Installation,
ApiCommonWebsite/View-Installation,
ApiCommonWebsite/Site-Installation,
ApiCommonWebsite/Service-Installation,
ApiCommonWebsite/CommentUpdater-Installation">
<ant target="defaultProjectInstall">
<property name="project" value="ApiCommonWebsite" />
</ant>
<antcall target="ApiCommonWebsite-Glossary" />
</target>
<target name="ApiCommonWebsite-Glossary">
<mapper id="glossmapper" type="glob" from="*.txt"
to="${targetDir}/lib/xml/*.xml" />
<echo message="Running glossaryTextToXml glossary.txt > glossary.xml" />
<apply executable="${targetDir}/bin/glossaryTextToXml" verbose="true">
<filelist dir="${targetDir}/lib/xml" files="glossary.txt" />
<redirector>
<outputmapper refid="glossmapper" />
</redirector>
</apply>
</target>
<!-- ooooooooooooooooooooooo Install Components ooooooooooooooooooooooo -->
<target name="ApiCommonWebsite/Model-Installation">
<ant target="defaultComponentInstall">
<property name="project" value="ApiCommonWebsite" />
<property name="component" value="Model" />
</ant>
</target>
<target name="ApiCommonWebsite/Site-Installation">
<ant target="defaultComponentInstall">
<property name="project" value="ApiCommonWebsite" />
<property name="component" value="Site" />
</ant>
<mkdir dir="${htdocsTargetDir}/plasmoap/tmp" />
<chmod dir="${htdocsTargetDir}/plasmoap/tmp" perm="ugo+rwx" />
</target>
<target name="ApiCommonWebsite/View-Installation"
depends="ApiCommonWebsite/Model-Installation">
<ant target="defaultComponentInstall">
<property name="project" value="ApiCommonWebsite" />
<property name="component" value="View" />
</ant>
</target>
<target name="ApiCommonWebsite/Service-Installation"
depends="ApiCommonWebsite/Model-Installation">
<ant target="defaultComponentInstall">
<property name="project" value="ApiCommonWebsite" />
<property name="component" value="Service" />
</ant>
</target>
<target name="ApiCommonWebsite/CommentUpdater-Installation">
<ant target="defaultComponentInstall">
<property name="project" value="ApiCommonWebsite" />
<property name="component" value="CommentUpdater" />
</ant>
</target>
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooo Web Installation oooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<target name="ApiCommonWebsite-WebInstallation" depends="EbrcWebSvcCommon-WebInstallation,
JBrowse-WebInstallation,
ApiCommonWebsite-Installation,
ApiCommonWebsite/View-WebInstallation,
ApiCommonWebsite/Site-WebInstallation">
<!-- JBrowse Links -->
<ant target="symlink">
<property name="link" value="${webappTargetDir}/jbrowse/tracks"/>
<property name="resource" value="${targetDir}/lib/jbrowse/auto_generated"/>
</ant>
<ant target="symlink">
<property name="link" value="${webappTargetDir}/jbrowse/common_tracks"/>
<property name="resource" value="${targetDir}/lib/jbrowse/common"/>
</ant>
<ant target="symlink">
<property name="link" value="${webappTargetDir}/WEB-INF/wdk-model/lib/jbrowse"/>
<property name="resource" value="${targetDir}/lib/jbrowse"/>
</ant>
</target>
<target name="ApiCommonWebsite/Site-WebInstallation">
<ant target="defaultWebComponentInstall">
<property name="project" value="ApiCommonWebsite" />
<property name="component" value="Site" />
</ant>
<ant target="installWebAssets">
<property name="project" value="ApiCommonWebsite" />
<property name="sitePackageName" value="genomics-site"/>
</ant>
<!--JBrowse stuff -->
<delete file="${webappTargetDir}/jbrowse/jbrowse.conf" />
<delete file="${webappTargetDir}/jbrowse/jbrowse_embed.conf" />
<delete file="${webappTargetDir}/jbrowse/functions.conf" />
<delete file="${webappTargetDir}/jbrowse/apollo_gene_tracks.conf" />
<delete file="${webappTargetDir}/jbrowse/index.html" />
<delete dir="${webappTargetDir}/jbrowse/node_modules" />
<copy file="${projectsDir}/ApiCommonModel/Model/lib/jbrowse/jbrowse.conf"
tofile="${webappTargetDir}/jbrowse/jbrowse.conf" />
<copy file="${projectsDir}/ApiCommonModel/Model/lib/jbrowse/jbrowse_embed.conf"
tofile="${webappTargetDir}/jbrowse/jbrowse_embed.conf" />
<copy file="${projectsDir}/ApiCommonModel/Model/lib/jbrowse/functions.conf"
tofile="${webappTargetDir}/jbrowse/functions.conf" />
<copy file="${projectsDir}/ApiCommonModel/Model/lib/jbrowse/apollo_gene_tracks.conf"
tofile="${webappTargetDir}/jbrowse/apollo_gene_tracks.conf" />
<copy file="${projectsDir}/ApiCommonModel/Model/lib/jbrowse/index.html"
tofile="${webappTargetDir}/jbrowse/index.html" />
<copy file="${projectsDir}/ApiCommonModel/Model/lib/jbrowse/apiJBrowse.js"
tofile="${webappTargetDir}/jbrowse/apiJBrowse.js" />
<!-- replacement for dataPlotter file used to do expression graph -->
<replace file="${cgibinTargetDir}/dataPlotter.pl"
token="@rProgram@"
value="${rProgram}" />
</target>
<target name="ApiCommonWebsite/View-WebInstallation">
<ant target="defaultComponentInstall">
<property name="project" value="ApiCommonWebsite" />
<property name="component" value="View" />
</ant>
<ant target="defaultWebComponentInstall">
<property name="project" value="ApiCommonWebsite" />
<property name="component" value="View" />
</ant>
</target>
<target name="ApiCommonWebsite/Service-WebInstallation">
<ant target="defaultComponentInstall">
<property name="project" value="ApiCommonWebsite" />
<property name="component" value="Service" />
</ant>
<ant target="defaultWebComponentInstall">
<property name="project" value="ApiCommonWebsite" />
<property name="component" value="Service" />
</ant>
</target>
</project>