forked from VEuPathDB/ExamplePresenters
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
245 lines (187 loc) · 10.9 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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<project name="ApiCommonPresenters" default="Installation" basedir=".">
<!-- in order to turn on parallel processing, need to uncomment this, and then the <foreach> task -->
<!--
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
-->
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooo Dependencies oooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<import file="${projectsDir}/ApiCommonWebService/build.xml" />
<import file="${projectsDir}/ApiCommonDatasets/build.xml" />
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooo Checkout oooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<target name="ApiCommonWebService-Checkout" unless="ApiCommonWebService.present">
<ant target="defaultProjectCheckout" inheritAll="false">
<property name="svnurl" value="https://cbilsvn.pmacs.upenn.edu/svn/apidb/ApiCommonWebService" />
<property name="project" value="ApiCommonWebService"/>
<property name="version" value="??"/>
</ant>
</target>
<target name="ApiCommonPresenters-ChildCheckout">
<available file="../ApiCommonWebService" type="dir" property="ApiCommonWebService.present" />
<available file="../ApiCommonDatasets" type="dir" property="ApiCommonDatasets.present" />
<antcall target="ApiCommonWebService-Checkout" />
<antcall target="ApiCommonDatasets-Checkout" />
</target>
<target name="ApiCommonDatasets-Checkout" unless="ApiCommonDatasets.present">
<ant target="defaultProjectCheckout" inheritAll="false">
<property name="svnurl" value="https://cbilsvn.pmacs.upenn.edu/svn/apidb/ApiCommonDatasets"/>
<property name="project" value="ApiCommonDatasets"/>
<property name="version" value="api-build-9"/>
<property name="excludeChildren" value="true"/>
</ant>
</target>
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooo Update oooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<target name="ApiCommonPresenters-ChildUpdate" >
<ant target="defaultProjectUpdate">
<property name="project" value="ApiCommonWebService"/>
</ant>
<ant target="defaultProjectUpdate">
<property name="project" value="ApiCommonDatasets"/>
<property name="excludeChildren" value="true"/>
</ant>
</target>
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooo Installation oooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<target name="ApiCommonPresenters-Installation" depends="ApiCommonWebService-Installation,
ApiCommonDatasets/Datasets-Installation,
ApiCommonPresenters-MavenInstallation,
ApiCommonPresenters/Model-Installation" >
<ant target="defaultProjectInstall">
<property name="project" value="ApiCommonPresenters"/>
</ant>
</target>
<target name="ApiCommonPresenters-MavenInstallation">
<ant target="mavenBuildProject">
<property name="project" value="ApiCommonPresenters"/>
</ant>
<property name="alreadyBuilt" value="true"/>
</target>
<!-- oooooooooooooooooo Installation Postprocess ooooooooooooooooooooo -->
<target name="ApiCommonPresenters-Installation-postprocess">
<echo message="Postprocessing the ApiCommonPresenters installation"/>
<replace dir="${targetDir}/bin"
propertyFile="${targetDir}/config/replacements.prop" >
<include name="**/*" />
<replacefilter token="@perl@" property="perl"/>
</replace>
</target>
<!-- ooooooooooooooooooooooo Install Components ooooooooooooooooooooooo -->
<target name="ApiCommonPresenters/Model-Installation" depends="ProjectTree">
<echo message="Making Dataset property files"/>
<echo message="propertiesFromDatasets ApiCommonDatasets"/>
<exec failonerror="true" executable="${targetDir}/bin/propertiesFromDatasets">
<arg line="ApiCommonDatasets"/>
</exec>
<echo message="Making JBrowse Directories From prop files"/>
<echo message="jbrowseFromDatasets"/>
<exec failonerror="true" executable="${targetDir}/bin/jbrowseFromDatasets">
</exec>
<!-- The following code process the properties files in parallel -->
<!--
<exec failonerror="true" executable="${targetDir}/bin/datasetSchemaCheck">
<arg line="ApiCommonDatasets"/>
</exec>
<foreach target="datasetToProp" param="datasetFile" parallel="true" maxThreads="10">
<fileset dir="${projectsDir}/ApiCommonDatasets/Datasets/lib/xml/datasets/">
<include name="**/*.xml"/>
<exclude name="**/*Deprecated*"/>
</fileset>
</foreach>
-->
<echo message="Injecting Templates"/>
<echo message="presenterInjectTemplates -presentersDir ${projectsDir}/ApiCommonPresenters/Model/lib/xml/datasetPresenters -templatesDir ${projectsDir}/ApiCommonModel/Model/lib/dst -contactsXmlFile ${projectsDir}/ApiCommonPresenters/Model/lib/xml/datasetPresenters/contacts/contacts.xml -globalPresentersFile ${projectsDir}/ApiCommonModel/Model/lib/xml/datasetPresenters/global.xml"/>
<exec failonerror="true" executable="${targetDir}/bin/presenterInjectTemplates">
<arg line="-presentersDir ${projectsDir}/ApiCommonPresenters/Model/lib/xml/datasetPresenters -templatesDir ${projectsDir}/ApiCommonModel/Model/lib/dst -contactsXmlFile ${projectsDir}/ApiCommonPresenters/Model/lib/xml/datasetPresenters/contacts/contacts.xml -globalPresentersFile ${projectsDir}/ApiCommonModel/Model/lib/xml/datasetPresenters/global.xml"/>
</exec>
<java failonerror="true" classname="org.eupathdb.common.model.ontology.OwlClassGenerator">
<arg line="-path ${targetDir}/lib/wdk/ontology/ -inputFilename individuals.txt -outputFilename individuals.owl -ontoIRIstr 'http://purl.obolibrary.org/obo/eupath/category/individuals.owl'"/>
<classpath>
<pathelement location="${targetDir}/lib/java/ebrc-website-common-model-1.0.0.jar"/>
<pathelement location="${targetDir}/lib/java/args4j-2.0.23.jar"/>
<pathelement location="${targetDir}/lib/java/owlapi-distribution-3.5.0.jar"/>
<pathelement location="${targetDir}/lib/java/log4j-1.2.17.jar"/>
<pathelement location="${targetDir}/config/"/>
</classpath>
</java>
<java failonerror="true" classname="org.eupathdb.common.model.ontology.OwlClassGenerator">
<arg line="-path ${targetDir}/lib/wdk/ontology/ -inputFilename commonIndividuals.txt -outputFilename commonIndividuals.owl -ontoIRIstr 'http://purl.obolibrary.org/obo/eupath/category/commonIndividuals.owl'"/>
<classpath>
<pathelement location="${targetDir}/lib/java/ebrc-website-common-model-1.0.0.jar"/>
<pathelement location="${targetDir}/lib/java/args4j-2.0.23.jar"/>
<pathelement location="${targetDir}/lib/java/owlapi-distribution-3.5.0.jar"/>
<pathelement location="${targetDir}/lib/java/log4j-1.2.17.jar"/>
<pathelement location="${targetDir}/config/"/>
</classpath>
</java>
<java failonerror="true" classname="org.eupathdb.common.model.ontology.EuPathAnnotPropAdder">
<arg line="-path ${targetDir}/lib/wdk/ontology/ -inputFilename annotation.txt -outputFilename annotation.owl -ontoIRIstr 'http://purl.obolibrary.org/obo/eupath/category/annotation.owl'"/>
<classpath>
<pathelement location="${targetDir}/lib/java/ebrc-website-common-model-1.0.0.jar"/>
<pathelement location="${targetDir}/lib/java/args4j-2.0.23.jar"/>
<pathelement location="${targetDir}/lib/java/owlapi-distribution-3.5.0.jar"/>
<pathelement location="${targetDir}/lib/java/log4j-1.2.17.jar"/>
<pathelement location="${targetDir}/config/"/>
</classpath>
</java>
<java failonerror="true" classname="org.eupathdb.common.model.ontology.OntologyMerger">
<arg line="-path ${targetDir}/lib/wdk/ontology/ -inputFilename categories_full.owl -outputFilename categories_merged.owl"/>
<classpath>
<pathelement location="${targetDir}/lib/java/ebrc-website-common-model-1.0.0.jar"/>
<pathelement location="${targetDir}/lib/java/args4j-2.0.23.jar"/>
<pathelement location="${targetDir}/lib/java/owlapi-distribution-3.5.0.jar"/>
<pathelement location="${targetDir}/lib/java/log4j-1.2.17.jar"/>
<pathelement location="${targetDir}/config/"/>
</classpath>
</java>
<!-- Not needed -->
<ant target="defaultComponentInstall">
<property name="project" value="ApiCommonPresenters"/>
<property name="component" value="Model"/>
</ant>
<!-- call a command to resolve out-dated master files -->
<!--
<exec executable="workflowResolveAll">
</exec>
-->
</target>
<target name="datasetToProp">
<exec failonerror="true" executable="${targetDir}/bin/propertyFromDataset">
<arg line="${datasetFile}"/>
</exec>
</target>
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooo Web Installation oooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<target name="ApiCommonPresenters-WebInstallation" depends="ApiCommonWebsite-WebInstallation,
ApiCommonWebService-Installation,
ApiCommonPresenters/Site-WebInstallation,
ApiCommonPresenters-Installation">
</target>
<target name="ApiCommonPresenters/Site-WebInstallation">
<ant target="defaultWebComponentInstall">
<property name="project" value="ApiCommonPresenters"/>
<property name="component" value="Site"/>
</ant>
</target>
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooo Distributable ooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<target name="ApiCommonPresenters-Distributable" depends="ProjectTree">
<copy todir="${targetDir}">
<fileset dir="${projectsDir}" >
<exclude name="**/CVS/*" />
</fileset>
</copy>
</target>
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooo ProjectTree ooooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<target name="ProjectTree" if="${checkout}">
<ant target="projectCheckOut"/>
</target>
</project>