Changeset 20085
- Timestamp:
- 2009-07-27T11:10:27+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/build.xml
r20079 r20085 96 96 <!-- jar files needed by applets go here --> 97 97 <property name="web.applet" value="${web.home}/applet"/> 98 98 99 <!-- jar files needed by the servlet (and extra ones) go here --> 99 100 <property name="web.lib" value="${web.home}/WEB-INF/lib"/> … … 126 127 <!-- catalina home is set to tomcat basedir if already installed, otherwise 127 128 use greenstone's tomcat --> 128 <condition property="catalina.home" value="${tomcat.installed.path}" >129 <condition property="catalina.home" value="${tomcat.installed.path}" else="${packages.home}/tomcat"> 129 130 <and> 130 131 <isset property="tomcat.installed.path"/> … … 135 136 </condition> 136 137 137 <property name="catalina.home" value="${packages.home}/tomcat"/>138 139 138 <property name="os.linux" value="Linux"/> 140 139 <property name="os.mac" value="Mac OS X"/> … … 206 205 </condition> 207 206 208 <condition property="static.arg" value="LDFLAGS=-static" >207 <condition property="static.arg" value="LDFLAGS=-static" else=" "> 209 208 <isset property="compile.static"/> 210 209 </condition> 211 <condition property="static.arg" value=" ">212 <not>213 <isset property="compile.static"/>214 </not>215 </condition>216 210 217 211 <!-- where is search4j tool --> 218 <condition property="search4j.exec" value="bin/search4j.exe" >212 <condition property="search4j.exec" value="bin/search4j.exe" else="bin/search4j"> 219 213 <isset property="current.os.iswindows"/> 220 214 </condition> 221 <property name="search4j.exec" value="bin/search4j"/>222 215 223 216 … … 227 220 <property name="gli.home" value="${basedir}/gli"/> 228 221 <property name="javagdbm.home" value="${src.packages.home}/javagdbm"/> 229 230 <condition property="common.src.home" value="${gs2build.home}/common-src"> 231 <not> 232 <isset property="disable.collection.building"/> 233 </not> 234 </condition> 235 236 <condition property="common.src.home" value="${basedir}/common-src"> 222 223 <condition property="common.src.home" value="${basedir}/common-src" else="${gs2build.home}/common-src"> 237 224 <isset property="disable.collection.building"/> 238 225 </condition> … … 276 263 <!-- All elements that Tomcat 5 exposes to applications --> 277 264 <path id="tomcat5"> 278 279 280 281 282 283 284 285 286 287 288 289 265 <pathelement location="${catalina.home}/common/classes"/> 266 <fileset dir="${catalina.home}/common/endorsed"> 267 <include name="*.jar"/> 268 </fileset> 269 <fileset dir="${catalina.home}/common/lib"> 270 <include name="*.jar"/> 271 </fileset> 272 <!-- seems to be empty, but will leave in just in case some people make use of this to customise their install: --> 273 <pathelement location="${catalina.home}/shared/classes"/> 274 <fileset dir="${catalina.home}/shared/lib"> 275 <include name="*.jar"/> 276 </fileset> 290 277 </path> 291 278 292 279 <!-- All elements that Tomcat 6 exposes to applications --> 293 280 <path id="tomcat6"> 294 295 296 281 <fileset dir="${catalina.home}/lib"> 282 <include name="*.jar"/> 283 </fileset> 297 284 </path> 298 285 … … 320 307 <pathelement location="${lib.jni}/mgpp.jar"/> 321 308 322 323 324 309 <!-- Include all elements that Tomcat exposes to applications --> 310 <path refid="tomcat${tomcat.version.major}"/> 311 325 312 </path> 326 313 … … 350 337 <echo>os.unix: ${os.unix}</echo> 351 338 </target> 352 353 339 354 340 <!-- ==================== Primary and Global Targets ============================= --> 355 341 … … 454 440 <fail if="do.abort">Build aborted by user. Please change your properties settings and re-run the target</fail> 455 441 </target> 456 457 442 458 443 <!-- this sets up some initial properties --> 459 444 <target name="init"> 460 445 446 <!-- has the gs3-setup script been run?? --> 447 <condition property="gs3-setup-not-done"> 448 <not> 449 <isset property="env.GSDL3HOME"/> 450 </not> 451 </condition> 452 453 <fail if="gs3-setup-not-done" message="please run 'gs3-setup' (Windows) or 'source gs3-setup.sh' (Linux/Mac) before running this target."/> 454 461 455 <condition property="java.too.old"> 462 456 <or> … … 548 542 <echo>activating xalan.jar</echo> 549 543 <copy file="${web.lib}/xalan.jar.tmp" tofile="${web.lib}/xalan.jar"/> 550 551 552 553 554 555 556 557 544 <if> 545 <bool> 546 <and> 547 <isset property="current.os.ismac"/> 548 <available file="${catalina.home}/common/endorsed" type="dir"/> 549 </and> 550 </bool> 551 <copy file="${web.lib}/xalan.jar.tmp" tofile="${catalina.home}/common/endorsed/xalan.jar"/> 558 552 </if> 559 553 </target> 560 561 <!-- to delete -->562 <target name="copy-xalan-for-mac"></target>563 554 564 555 <target name="deactivate-xalan-jar"> … … 671 662 <unzip src="${packages.home}/${tomcat.version}.zip" 672 663 dest="${packages.home}"/> 673 674 675 676 677 678 679 680 681 682 683 684 664 665 <!-- If we are using Java 1.4, we'd be using tomcat 5.5 in which case 666 we would need to have the tomcat compat package to work with Java 1.4--> 667 <if> 668 <bool><equals arg1="1.4" arg2="${ant.java.version}"/></bool> 669 <get src="http://www.greenstone.org/gs3files/${tomcat.version}-compat.zip" 670 dest="${packages.home}/${tomcat.version}-compat.zip" 671 usetimestamp="true"/> 672 <unzip src="${packages.home}/${tomcat.version}-compat.zip" 673 dest="${packages.home}"/> 674 </if> 675 685 676 <!-- delete any existing tomcat --> 686 677 <delete dir="${packages.home}/tomcat"/> … … 1018 1009 <target name="compile-core" depends="init" 1019 1010 description="Compile only the Greenstone core"> 1020 1021 1022 1023 1024 1025 1026 1011 <if> 1012 <!-- Rather than test for tomcat 6, testing here for NOT tomcat 5 1013 (so that it may hopefully still serve when it becomes tomcat 7) --> 1014 <bool><not><equals arg1="5" arg2="${tomcat.version.major}"/></not></bool> 1015 <copy file="${web.lib}/xercesImpl.jar" todir="${catalina.home}/lib"/> 1016 <copy file="${web.lib}/xml-apis.jar" todir="${catalina.home}/lib"/> 1017 </if> 1027 1018 <mkdir dir="${build.home}"/> 1028 1019 <javac srcdir="${src.home}" … … 1073 1064 <if> 1074 1065 <bool><istrue value="${tomcat.islocal}"/></bool> 1075 1076 1066 <copy file="${web.lib}/xercesImpl.jar" todir="${web.applet}"/> 1067 <copy file="${web.lib}/xml-apis.jar" todir="${web.applet}"/> 1077 1068 </if> 1078 1069
Note:
See TracChangeset
for help on using the changeset viewer.