- Timestamp:
- 2010-06-30T10:24:48+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/release-kits/shared/core/ant-scripts/create-installer.xml
r22132 r22325 78 78 <property name="component.size.imagemagick" value="${component.megabytesize.imagemagick} MB"/> 79 79 80 <!-- calculate the size of: ghostscript-->81 <length property="component.bytesize. ghostscript" mode="all"><fileset file="${basedir}/components/ghostscript.comp"/></length>82 <math result="component.megabytesize. ghostscript" operand1="${component.bytesize.ghostscript}" operation="/" operand2="1048576" datatype="int"/>83 <property name="component.size. ghostscript" value="${component.megabytesize.ghostscript} MB"/>84 80 <!-- calculate the size of: apache httpd --> 81 <length property="component.bytesize.httpd" mode="all"><fileset file="${basedir}/components/apachehttpd.comp"/></length> 82 <math result="component.megabytesize.httpd" operand1="${component.bytesize.httpd}" operation="/" operand2="1048576" datatype="int"/> 83 <property name="component.size.httpd" value="${component.megabytesize.httpd} MB"/> 84 85 85 <!-- calculate the size of: tomcat --> 86 86 <length property="component.bytesize.tomcat" mode="all"><fileset file="${basedir}/components/tomcat.comp"/></length> … … 88 88 <property name="component.size.tomcat" value="${component.megabytesize.tomcat} MB"/> 89 89 90 <!-- EXT --> 91 <!-- calculate the size of: amp (and put it into the components directory) --> 92 <if><bool><and><equals arg1="${amp.enabled}" arg2="true"/><not><available file="${rk.home}/ext/amp.lzma"/></not></and></bool> 93 <fail>amp.lzma file not found in the release kit ext directory</fail> 94 </if> 95 96 <if><bool><and><equals arg1="${amp.enabled}" arg2="true"/></and></bool> 97 <echo>Copying amp.lzma to compontents directory</echo> 98 <copy file="${rk.home}/ext/amp.lzma" todir="${basedir}/components"/> 99 <property name="component.size.amp" value="257 MB"/> 100 </if> 101 <!-- /EXT --> 102 90 103 <!-- make the installer descriptors relevant to the current os --> 91 104 <dcff file="installer/antinstall-config.xml" startTag="<!--\s*if\s*(?!.*${rk.os})[^ ]+\s*-->" endTag="<!--\s*/if\s*-->" /> 92 105 <dcff file="installer/build.xml" startTag="<!--\s*if\s*(?!.*${rk.os})[^ ]+\s*-->" endTag="<!--\s*/if\s*-->" /> 106 107 <!-- EXT --> 108 <if><bool><not><equals arg1="${amp.enabled}" arg2="true"/></not></bool> 109 110 <dcff file="installer/antinstall-config.xml" startTag="<!-- start amp -->" endTag="<!-- end amp -->" /> 111 <dcff file="installer/build.xml" startTag="<!-- start amp -->" endTag="<!-- end amp -->" /> 112 </if> 113 <!-- /EXT --> 93 114 94 115 <!-- put the concrete values of things in the config --> … … 100 121 <job pattern="@component.size.imagemagick@" replacement="${component.size.imagemagick}"/> 101 122 <job pattern="@component.size.ghostscript@" replacement="${component.size.ghostscript}"/> 123 <job pattern="@component.size.httpd@" replacement="${component.size.httpd}"/> 102 124 <job pattern="@java.min.version@" replacement="${java.min.version}"/> 103 125 <job pattern="@java.extracted@" replacement="${java.extracted}"/> 104 126 </rsr> 127 128 <!-- EXT --> 129 <if><bool><equals arg1="${amp.enabled}" arg2="true"/></bool> 130 <rsr> 131 <fileset dir="${basedir}/installer" includes="*.xml"/> 132 <job pattern="@component.size.amp@" replacement="${component.size.amp}"/> 133 </rsr> 134 </if> 135 <!-- /EXT --> 105 136 106 137 <!-- put the concrete values of things in the text -->
Note:
See TracChangeset
for help on using the changeset viewer.