Changeset 32881 for main/trunk
- Timestamp:
- 2019-03-08T09:56:41+13:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/build.xml
r32792 r32881 1158 1158 <!-- assuming that index.html is not needed here --> 1159 1159 1160 <!--Now write out the url with oaiserver suffix as the baseURL property in OAIConfig.xml-->1160 <!--Now write out the url with /oaiserver suffix as the baseURL property in OAIConfig.xml--> 1161 1161 <available file="${basedir}/resources/oai/OAIConfig.xml.in" property="oaiconfig.present"/> 1162 1162 <antcall target="init-oaiconfig"> 1163 1163 <param name="url" value="${url}"/> 1164 1164 </antcall> 1165 1166 <!--Now write out the url with /gs-cantaloupe suffix as the baseURL property in IIIFConfig.xml--> 1167 <available file="${basedir}/resources/iiif/IIIFConfig.xml.in" property="iiifconfig.present"/> 1168 <antcall target="init-iiifconfig"> 1169 <param name="url" value="${url}"/> 1170 </antcall> 1171 1165 1172 </target> 1166 1173 … … 1171 1178 </target> 1172 1179 1180 <target name="init-iiifconfig" if="iiifconfig.present"> 1181 <echo>Writing out baseURL ${url}gs-cantaloupe to ${web.writableclasses}/IIIFConfig.xml</echo> 1182 <copy file="${basedir}/resources/iiif/IIIFConfig.xml.in" tofile="${web.writableclasses}/IIIFConfig.xml"/> 1183 <rsr verbosity="1" file="${web.writableclasses}/IIIFConfig.xml" pattern="<baseURL>.*</baseURL>" replacement="<baseURL>${url}gs-cantaloupe</baseURL>" /> 1184 </target> 1185 1173 1186 <target name="stop" depends="init,stop-tomcat,stop-derby" 1174 1187 description="Shutdown the Tomcat server."/> … … 1296 1309 <target name="copy-dot-svn-files" depends="init" 1297 1310 description="Copies all resources .svn files to .in versions - which are used during configure to generate the runtime versions." > 1298 <if><bool><available file="${basedir}/resources/tomcat/greenstone3.xml.in"/></bool> 1311 <if> 1312 <bool><available file="${basedir}/resources/tomcat/greenstone3.xml.in"/></bool> 1299 1313 <copy file="${basedir}/resources/tomcat/greenstone3.xml.in" tofile="${basedir}/resources/tomcat/greenstone3.xml.in.backup" overwrite="true"/> 1300 1314 </if> 1301 1302 1315 <copy file="${basedir}/resources/tomcat/greenstone3.xml.svn" tofile="${basedir}/resources/tomcat/greenstone3.xml.in" overwrite="true"/> 1303 <if><bool><available file="${basedir}/resources/tomcat/server_tomcat5.xml.in"/></bool> 1316 1317 <if> 1318 <bool><available file="${basedir}/resources/tomcat/server_tomcat5.xml.in"/></bool> 1304 1319 <copy file="${basedir}/resources/tomcat/server_tomcat5.xml.in" tofile="${basedir}/resources/tomcat/server_tomcat5.xml.in.backup" overwrite="true"/> 1305 1320 </if> 1306 1321 <copy file="${basedir}/resources/tomcat/server_tomcat5.xml.svn" tofile="${basedir}/resources/tomcat/server_tomcat5.xml.in" overwrite="true"/> 1307 <if><bool><available file="${basedir}/resources/tomcat/server_tomcat7.xml.in"/></bool> 1322 1323 <if> 1324 <bool><available file="${basedir}/resources/tomcat/server_tomcat7.xml.in"/></bool> 1308 1325 <copy file="${basedir}/resources/tomcat/server_tomcat7.xml.in" tofile="${basedir}/resources/tomcat/server_tomcat7.xml.in.backup" overwrite="true"/> 1309 1326 </if> 1310 1327 <copy file="${basedir}/resources/tomcat/server_tomcat8.xml.svn" tofile="${basedir}/resources/tomcat/server_tomcat8.xml.in" overwrite="true"/> 1311 <if><bool><available file="${basedir}/resources/tomcat/server_tomcat8.xml.in"/></bool> 1328 1329 <if> 1330 <bool><available file="${basedir}/resources/tomcat/server_tomcat8.xml.in"/></bool> 1312 1331 <copy file="${basedir}/resources/tomcat/server_tomcat8.xml.in" tofile="${basedir}/resources/tomcat/server_tomcat8.xml.in.backup" overwrite="true"/> 1313 1332 </if> 1314 1333 <copy file="${basedir}/resources/tomcat/server_tomcat8.xml.svn" tofile="${basedir}/resources/tomcat/server_tomcat8.xml.in" overwrite="true"/> 1315 <if><bool><available file="${basedir}/resources/tomcat/web8.xml.in"/></bool> 1334 1335 <if> 1336 <bool><available file="${basedir}/resources/tomcat/web8.xml.in"/></bool> 1316 1337 <copy file="${basedir}/resources/tomcat/web8.xml.in" tofile="${basedir}/resources/tomcat/web8.xml.in.backup" overwrite="true"/> 1317 1338 </if> 1318 1339 <copy file="${basedir}/resources/tomcat/web8.xml.svn" tofile="${basedir}/resources/tomcat/web8.xml.in" overwrite="true"/> 1319 <if><bool><available file="${basedir}/resources/oai/OAIConfig.xml.in"/></bool> 1320 <copy file="${basedir}/resources/oai/OAIConfig.xml.in" tofile="${basedir}/resources/oai/OAIConfig.xml.in.backup" overwrite="true"/> 1340 1341 <if> 1342 <bool><available file="${basedir}/resources/oai/OAIConfig.xml.in"/></bool> 1343 <copy file="${basedir}/resources/oai/OAIConfig.xml.in" tofile="${basedir}/resources/oai/OAIConfig.xml.in.backup" overwrite="true"/> 1321 1344 </if> 1322 1345 <copy file="${basedir}/resources/oai/OAIConfig.xml.svn" tofile="${basedir}/resources/oai/OAIConfig.xml.in" overwrite="true"/> 1323 <if><bool><available file="${basedir}/resources/cgi/gsdl3site.cfg.in"/></bool> 1346 1347 <if> 1348 <bool><available file="${basedir}/resources/iiif/IIIFConfig.xml.in"/></bool> 1349 <copy file="${basedir}/resources/iiif/IIIFConfig.xml.in" tofile="${basedir}/resources/iiif/IIIFConfig.xml.in.backup" overwrite="true"/> 1350 </if> 1351 <copy file="${basedir}/resources/iiif/IIIFConfig.xml.svn" tofile="${basedir}/resources/iiif/IIIFConfig.xml.in" overwrite="true"/> 1352 1353 <if> 1354 <bool><available file="${basedir}/resources/iiif/cantaloupe.properties.in"/></bool> 1355 <copy file="${basedir}/resources/iiif/cantaloupe.properties.in" tofile="${basedir}/resources/iiif/cantaloupe.properties.in.backup" overwrite="true"/> 1356 </if> 1357 <copy file="${basedir}/resources/iiif/cantaloupe.properties.svn" tofile="${basedir}/resources/iiif/cantaloupe.properties.in" overwrite="true"/> 1358 1359 <if> 1360 <bool><available file="${basedir}/resources/cgi/gsdl3site.cfg.in"/></bool> 1324 1361 <copy file="${basedir}/resources/cgi/gsdl3site.cfg.in" tofile="${basedir}/resources/cgi/gsdl3site.cfg.in.backup" overwrite="true"/> 1325 1362 </if> 1326 1363 <copy file="${basedir}/resources/cgi/gsdl3site.cfg.svn" tofile="${basedir}/resources/cgi/gsdl3site.cfg.in" overwrite="true"/> 1327 <if><bool><available file="${basedir}/resources/web/global.properties.in"/></bool> 1328 <copy file="${basedir}/resources/web/global.properties.in" tofile="${basedir}/resources/web/global.properties.in.backup" overwrite="true"/> 1364 1365 <if> 1366 <bool><available file="${basedir}/resources/web/global.properties.in"/></bool> 1367 <copy file="${basedir}/resources/web/global.properties.in" tofile="${basedir}/resources/web/global.properties.in.backup" overwrite="true"/> 1329 1368 </if> 1330 1369 <copy file="${basedir}/resources/web/global.properties.svn" tofile="${basedir}/resources/web/global.properties.in" overwrite="true"/> 1331 <if><bool><available file="${basedir}/resources/web/log4j.properties.in"/></bool> 1332 <copy file="${basedir}/resources/web/log4j.properties.in" tofile="${basedir}/resources/web/log4j.properties.in.backup" overwrite="true"/> 1370 1371 <if> 1372 <bool><available file="${basedir}/resources/web/log4j.properties.in"/></bool> 1373 <copy file="${basedir}/resources/web/log4j.properties.in" tofile="${basedir}/resources/web/log4j.properties.in.backup" overwrite="true"/> 1333 1374 </if> 1334 1375 <copy file="${basedir}/resources/web/log4j.properties.svn" tofile="${basedir}/resources/web/log4j.properties.in" overwrite="true"/> 1335 </target> 1376 1377 </target> 1336 1378 1337 1379 <!-- ========== Web app Targets ================================ --> … … 1578 1620 <copy file="${basedir}/resources/web/global.properties.in" tofile="${web.writableclasses}/global.properties" filtering="true" overwrite="true"/> 1579 1621 <copy file="${basedir}/resources/web/log4j.properties.in" tofile="${web.writableclasses}/log4j.properties" filtering="true" overwrite="true"/> 1580 <if><bool><istrue value="${gsdl3home.isreadonly}"/></bool> 1622 <if> 1623 <bool><istrue value="${gsdl3home.isreadonly}"/></bool> 1581 1624 <!-- uncomment the writablehome properties --> 1582 1625 <rsr verbosity="1" file="${web.writableclasses}/global.properties" pattern="^#gsdl3\.(writable{1})?home" replacement="gsdl3.$1home" /> … … 1584 1627 <chmod file="${web.writableclasses}/global.properties" perm="644"/> 1585 1628 <chmod file="${web.writableclasses}/log4j.properties" perm="644"/> 1629 1630 <copy file="${basedir}/resources/iiif/cantaloupe.properties.in" tofile="${basedir}/cantaloupe.properties" filtering="true" overwrite="true"/> 1631 <chmod file="${basedir}/cantaloupe.properties" perm="644"/> 1586 1632 </target> 1587 1633 … … 2302 2348 <if><bool> 2303 2349 <isset property="fedora.maxpermsize"/></bool> 2304 <property name="catalina.opts" value="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=$GSDL3HOME -DGSDLOS=$GSDLOS -DPATH=$PATH -Xmx800M ${readonly.catalina.opts} ${fedora.maxpermsize}"/>2350 <property name="catalina.opts" value="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=$GSDL3HOME -DGSDLOS=$GSDLOS -DPATH=$PATH -Xmx800M -Dcantaloupe.config=${basedir}/cantaloupe.properties ${readonly.catalina.opts} ${fedora.maxpermsize}"/> 2305 2351 <else> 2306 <property name="catalina.opts" value="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=$GSDL3HOME -DGSDLOS=$GSDLOS -DPATH=$PATH -Xmx800M ${readonly.catalina.opts}"/>2352 <property name="catalina.opts" value="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=$GSDL3HOME -DGSDLOS=$GSDLOS -DPATH=$PATH -Xmx800M -Dcantaloupe.config=${basedir}/cantaloupe.properties ${readonly.catalina.opts}"/> 2307 2353 </else> 2308 2354 </if> … … 2370 2416 <if><bool> 2371 2417 <isset property="fedora.maxpermsize"/></bool> 2372 <property name="catalina.opts" value="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=$GSDL3HOME -DGSDLOS=$GSDLOS -DPATH=$PATH -Xmx800M ${readonly.catalina.opts} ${fedora.maxpermsize}"/>2418 <property name="catalina.opts" value="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=$GSDL3HOME -DGSDLOS=$GSDLOS -DPATH=$PATH -Xmx800M -Dcantaloupe.config=${basedir}/cantaloupe.properties ${readonly.catalina.opts} ${fedora.maxpermsize}"/> 2373 2419 <else> 2374 <property name="catalina.opts" value="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=$GSDL3HOME -DGSDLOS=$GSDLOS -DPATH=$PATH -Xmx800M ${readonly.catalina.opts}"/>2420 <property name="catalina.opts" value="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=$GSDL3HOME -DGSDLOS=$GSDLOS -DPATH=$PATH -Xmx800M -Dcantaloupe.config=${basedir}/cantaloupe.properties ${readonly.catalina.opts}"/> 2375 2421 </else> 2376 2422 </if>
Note:
See TracChangeset
for help on using the changeset viewer.