Changeset 20112 for release-kits/mark3/ant-scripts/create-components.xml
- Timestamp:
- 2009-08-03T11:49:27+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/mark3/ant-scripts/create-components.xml
r17964 r20112 2 2 <project name="mark3-create-components" default="create-components"> 3 3 4 <import file="${basedir}/distributions/web/resources/xml/components.xml"/> 5 <import file="${rk.home}/greenstone3/ant-scripts/rk3-targets.xml"/> 6 4 7 <!-- create components from the distributions folder --> 5 8 6 <!-- 1st level -->7 9 <target name="create-components"> 8 10 <antcall target="prepare-components" /> … … 10 12 </target> 11 13 12 <!-- 2nd level -->13 14 <target name="prepare-components"> 14 <antcall target="prepare-core-component" /> 15 <antcall target="prepare-ant-component" /> 16 <antcall target="prepare-tomcat-component" /> 17 <antcall target="prepare-imagemagick-component" /> 18 <antcall target="prepare-ghostscript-component" /> 19 20 <antcall target="prepare-sourcecode-component" /> 21 15 <antcall target="prepare-component"><param name="component" value="core"/></antcall> 16 <antcall target="prepare-component"><param name="component" value="tomcat"/></antcall> 17 <antcall target="prepare-component"><param name="component" value="imagemagick"/></antcall> 18 <antcall target="prepare-component"><param name="component" value="ghostscript"/></antcall> 22 19 </target> 23 20 24 21 <target name="compress-components"> 25 <antcall target="compress-core-component" /> 26 <antcall target="compress-ant-component" /> 27 <antcall target="compress-tomcat-component" /> 28 <antcall target="compress-imagemagick-component" /> 29 <antcall target="compress-ghostscript-component" /> 30 31 <antcall target="compress-zipped-binary-release" /> <!-- from init --> 32 22 <antcall target="compress-component"><param name="component" value="core"/></antcall> 23 <antcall target="compress-component"><param name="component" value="tomcat"/></antcall> 24 <antcall target="compress-component"><param name="component" value="imagemagick"/></antcall> 25 <antcall target="compress-component"><param name="component" value="ghostscript"/></antcall> 33 26 </target> 34 27 35 <!-- 3rd level -->36 <!-- core -->37 <target name="prepare-core-component">38 39 <delete dir="components/tmp/core"/>40 <mkdir dir="components/tmp/core"/>41 42 <copy todir="components/tmp/core" overwrite="true">43 <fileset dir="distributions/web">44 <include name="**/*"/>45 46 <!-- exclude sourcecode -->47 <exclude name="src"/>48 <exclude name="src/**/*"/>49 <exclude name="gs2build/common-src"/>50 <exclude name="gs2build/common-src/**/*"/>51 <exclude name="gs2build/build-src"/>52 <exclude name="gs2build/build-src/**/*"/>53 <exclude name="gs2build/runtime-src"/>54 <exclude name="gs2build/runtime-src/**/*"/>55 56 <!-- exclude ant -->57 <exclude name="packages/ant"/>58 <exclude name="packages/ant/**/*"/>59 60 <!-- exclude tomcat -->61 <exclude name="packages/tomcat"/>62 <exclude name="packages/tomcat/**/*"/>63 64 <!-- exclude imagemagick -->65 <exclude name="gs2build/bin/darwin/imagemagick"/>66 <exclude name="gs2build/bin/darwin/imagemagick/**/*"/>67 68 </fileset>69 </copy>70 71 <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />72 </target>73 74 <target name="compress-core-component">75 <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>76 </target>77 78 <!-- sourcecode -->79 <target name="prepare-sourcecode-component">80 81 <delete dir="components/tmp/sourcecode"/>82 <mkdir dir="components/tmp/sourcecode"/>83 84 <copy todir="components/tmp/sourcecode" overwrite="true">85 <fileset dir="distributions/web">86 <include name="src/**/*"/>87 <include name="gs2build/common-src/**/*"/>88 <include name="gs2build/build-src/**/*"/>89 <include name="gs2build/runtime-src/**/*"/>90 </fileset>91 </copy>92 93 <mkdir dir="products"/>94 <tar destfile="products/Greenstone-${version}-${os.suffix}-sourcecode-component.tar.gz" basedir="components/tmp/sourcecode" compression="gzip" longfile="gnu"/>95 </target>96 97 <target name="compress-sourcecode-component">98 <sevenzip task="encode" input="components/sourcecode.comp" output="components/sourcecode.lzma" dictionnary="26"/>99 </target>100 101 <!-- ant -->102 <target name="prepare-ant-component">103 104 <delete dir="components/tmp/ant"/>105 <mkdir dir="components/tmp/ant"/>106 107 <copy todir="components/tmp/ant" overwrite="true">108 <fileset dir="distributions/web/packages">109 <include name="ant/**/*"/>110 </fileset>111 </copy>112 113 <zip destfile="components/ant.comp" basedir="components/tmp/ant" compress="false" />114 </target>115 116 <target name="compress-ant-component">117 <sevenzip task="encode" input="components/ant.comp" output="components/ant.lzma" dictionnary="26"/>118 </target>119 120 <!-- tomcat -->121 <target name="prepare-tomcat-component">122 123 <delete dir="components/tmp/tomcat"/>124 <mkdir dir="components/tmp/tomcat"/>125 126 <copy todir="components/tmp/tomcat" overwrite="true">127 <fileset dir="distributions/web/packages">128 <include name="tomcat/**/*"/>129 </fileset>130 </copy>131 132 <zip destfile="components/tomcat.comp" basedir="components/tmp/tomcat" compress="false" />133 </target>134 135 <target name="compress-tomcat-component">136 <sevenzip task="encode" input="components/tomcat.comp" output="components/tomcat.lzma" dictionnary="26"/>137 </target>138 139 <!-- imagemagick -->140 <target name="prepare-imagemagick-component">141 142 <delete dir="components/tmp/imagemagick"/>143 <mkdir dir="components/tmp/imagemagick"/>144 145 <copy todir="components/tmp/imagemagick" overwrite="true">146 <fileset dir="distributions/web/gs2build/bin/darwin">147 <include name="imagemagick/**/*"/>148 </fileset>149 </copy>150 151 <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>152 </target>153 154 <target name="compress-imagemagick-component">155 <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>156 </target>157 158 <!-- ghostscript -->159 <target name="prepare-ghostscript-component">160 161 <delete dir="components/tmp/ghostscript"/>162 <mkdir dir="components/tmp/ghostscript"/>163 164 <copy todir="components/tmp/ghostscript" overwrite="true">165 <fileset dir="distributions/web/gs2build/bin/darwin">166 <include name="ghostscript/**/*"/>167 </fileset>168 </copy>169 170 <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" includes="**/*"/>171 </target>172 173 <target name="compress-ghostscript-component">174 <sevenzip task="encode" input="components/ghostscript.comp" output="components/ghostscript.lzma" dictionnary="26"/>175 </target>176 177 </project>
Note:
See TracChangeset
for help on using the changeset viewer.