Changeset 17652 for release-kits/wirk3

Show
Ignore:
Timestamp:
31.10.2008 15:08:31 (11 years ago)
Author:
oranfry
Message:

started source releases

Location:
release-kits/wirk3
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • release-kits/wirk3/ant-scripts/create-components.xml

    r17471 r17652  
    22<project name="wirk3-create-components" default="create-components"> 
    33 
    4  
     4    <!-- create components from the distribution folder --> 
     5 
     6    <!-- 1st level --> 
    57    <target name="create-components"> 
    68        <antcall target="prepare-components" /> 
    79        <antcall target="compress-components" /> 
    810    </target> 
    9      
    10     <!-- create components from the distribution folder --> 
     11 
     12    <!-- 2nd level --> 
    1113    <target name="prepare-components"> 
    1214        <antcall target="prepare-core-component" /> 
     
    1618        <antcall target="prepare-ant-component" /> 
    1719        <antcall target="prepare-tomcat-component" /> 
     20        <antcall target="prepare-sourcecode-core-component" /> 
    1821    </target> 
    1922     
     
    2528        <antcall target="compress-ant-component" /> 
    2629        <antcall target="compress-tomcat-component" /> 
    27     </target> 
    28      
    29      
    30  
    31      
     30        <antcall target="compress-sourcecode-core-component" /> 
     31    </target 
     32     
     33    <!-- 3rd level --> 
    3234    <target name="prepare-core-component"> 
    3335 
     
    169171    </target>    
    170172 
     173    <target name="prepare-sourcecode-core-component"> 
     174        <delete dir="components/tmp/sourcecode-core"/> 
     175        <mkdir dir="components/tmp/sourcecode-core"/> 
     176 
     177        <copy todir="components/tmp/sourcecode-core" overwrite="true"> 
     178            <fileset dir="distribution/source"> 
     179                <include name="gli/**/*"/> 
     180                <include name="docs/**/*"/> 
     181                <include name="resources/**/*"/> 
     182                <include name="web/**/*"/> 
     183                <include name="gs2build/etc/**/*"/> 
     184                <include name="gs2build/setup.bash"/> 
     185                <include name="build.xml"/> 
     186                <include name="build.properties"/> 
     187                <include name="*.sh"/> 
     188                <include name="*.txt"/> 
     189            </fileset> 
     190        </copy> 
     191        <zip destfile="components/sourcecode-core.comp" basedir="components/tmp/sourcecode-core" compress="false" includes="**/*"/> 
     192    </target> 
     193     
     194    <target name="compress-sourcecode-core-component"> 
     195        <!--<sevenzip task="encode" input="components/sourcecode-core.comp" output="components/sourcecode-core.lzma" dictionnary="26"/>--> 
     196        <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 sourcecode-core.lzma sourcecode-core.comp"/></exec> 
     197    </target> 
     198 
     199 
    171200     
    172201     
  • release-kits/wirk3/ant-scripts/create-distribution.xml

    r17604 r17652  
    33 
    44    <target name="create-distribution"> 
     5 
    56        <!-- create distribution --> 
    67        <antcall target="export-greenstone3-gli" /> 
    78        <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="${basedir}/distribution/greenstone3" /></antcall> 
    89        <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distribution/greenstone3/gli" /></antcall> 
     10        <antcall target="insert-user-manual"/> 
     11 
     12        <antcall target="copy-web-to-source-greenstone3" /> <!-- from gs3-targets --> 
     13 
    914        <ant target="create-distribution-1" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false"> 
    1015            <property name="app.version" value="${version}"/> 
     
    2328        </ant> 
    2429        <antcall target="copy-over-build-xml" /> 
    25         <antcall target="insert-user-manual"/> 
    2630        <antcall target="insert-compiled-binaries"/> 
    2731        <antcall target="insert-icon"/> 
    2832        <antcall target="insert-uninstaller"><param name="script-format" value="bat"/></antcall> <!-- from rk3-targets --> 
    29         <antcall target="rename-build-xml-for-transit"/> 
    3033    </target> 
    3134 
  • release-kits/wirk3/installer/antinstall-config.xml

    r17597 r17652  
    5353            hidden="true"/> 
    5454 
     55        <!-- start binary release core --> 
    5556        <target 
    5657            target="Installing Core System" 
    5758            diskRequirement="@component.size.core@" 
     59            displayText="" 
    5860            defaultValue="true" 
     61            force="true"/> 
     62        <!-- end binary release core --> 
     63 
     64        <!-- start source release core --> 
     65        <target 
     66            target="Installing Source Code Core" 
     67            diskRequirement="@component.size.sourcecode-core@" 
    5968            displayText="" 
     69            defaultValue="true" 
    6070            force="true"/> 
     71        <!-- end source release core --> 
    6172 
    6273        <target 
     
    102113    </page> 
    103114 
     115    <!-- start bundled components --> 
    104116    <page type="input" name="tomcat-config" ifProperty="(${Installing Tomcat}==true)" displayText=""> 
    105117 
     
    109121 
    110122    </page> 
     123    <!-- end bundled components --> 
    111124 
    112125    <page type="progress" name="progress" showTargets="true" displayText=""/> 
  • release-kits/wirk3/installer/build.xml

    r17641 r17652  
    3939    <target name="Installing Core System"> 
    4040 
    41         <!-- figure out the start menu path (if not already set from previous installation) --> 
     41        <!-- figure out the start menu path --> 
    4242        <getfreepath path="${win32.personal.programs_menu}\Greenstone-@version@" property="startmenu.path"/> 
    4343        <path id="startmenu.path.path" path="${startmenu.path}"/> 
     
    7272        </copy> 
    7373 
    74         <!-- rename greenstone3-build.xml back to build.xml --> 
    75         <move file="${installDir}/greenstone3-build.xml" tofile="${installDir}/build.xml" overwrite="true"/> 
    76          
    7774        <!-- change the tomcat ports in build.properties --> 
    7875        <echo message="Changing tomcat ports in build.properties"/> 
     
    104101        <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="@gsdl3home@" replacement="${installDir.unix}/web"/> 
    105102 
     103        <echo message="Creating installation properties file"/> 
     104        <echo file="${installDir}\installation.properties">installed.startmenu.path:${startmenu.path.unix}</echo> 
     105         
     106    </target> 
     107 
     108    <target name="Installing Core System"> 
     109 
     110        <!-- figure out the start menu path --> 
     111        <getfreepath path="${win32.personal.programs_menu}\Greenstone-@version@" property="startmenu.path"/> 
     112        <path id="startmenu.path.path" path="${startmenu.path}"/> 
     113        <pathconvert targetos="unix" property="startmenu.path.unix" refid="startmenu.path.path"/> 
     114                 
     115        <echo>basedir: ${basedir}</echo> 
     116        <echo>installDir: ${installDir}</echo> 
     117        <echo>antinstaller.jar: ${antinstaller.jar}</echo> 
     118        <echo>startmenu.path: ${startmenu.path}</echo> 
     119         
     120        <!-- create the installation directory --> 
     121        <echo message="Creating Installation directory"/> 
     122        <mkdir dir="${installDir}"/> 
     123 
     124        <!-- extract 7za tool --> 
     125        <unzip src="${antinstaller.jar}" dest="${basedir}"> 
     126            <patternset><include name="7za.exe"/></patternset> 
     127        </unzip> 
     128         
     129        <!-- install files --> 
     130        <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="sourcecode-core.lzma"/></patternset></unzip> 
     131        <exec dir="${basedir}" executable="${basedir}/7za.exe"><arg line="x sourcecode-core.lzma"/></exec> 
     132        <delete file="sourcecode-core.lzma"/> 
     133        <unzip src="${basedir}/sourcecode-core.comp" dest="${installDir}"/> 
     134        <delete file="sourcecode-core.comp"/> 
     135 
     136        <!-- change the tomcat ports in build.properties --> 
     137        <echo message="Changing tomcat ports in build.properties"/> 
     138        <rsr file="${installDir}/build.properties" pattern="(tomcat.port[=:]).*" replacement="$1${tomcat.port}" /> 
     139        <rsr file="${installDir}/build.properties" pattern="(tomcat.shutdown.port[=:]).*" replacement="$1${tomcat.shutdown.port}" /> 
     140        <echo message="Changing tomcat ports in resources/tomcat/server.xml"/> 
     141        <copy file="${installDir}/resources/tomcat/server.xml" tofile="${installDir.local}/packages/tomcat/conf/server.xml" overwrite="true"/> 
     142         
     143        <!-- set gsdlhome in gs2build setup.bat --> 
     144        <echo message="Setting %GSDLHOME% in gs2build\setup.bat"/> 
     145        <rsr file="${installDir}/gs2build/setup.bat" pattern="\*\*GSDLHOME\*\*" replacement="${installDir.local}\gs2build" /> 
     146        <!-- copy the greenstone3.xml file to tomcat --> 
     147        <echo message="Copying greenstone3.xml to tomcat directory"/> 
     148        <copy file="${installDir}/resources/tomcat/greenstone3.xml" tofile="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" overwrite="true"/> 
     149        <rsr file="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" pattern="@gsdl3webhome@" replacement="${installDir.local}\web" /> 
     150 
     151        <!-- set up global properties --> 
     152        <echo message="Setting up global properties"/> 
     153        <copy file="${installDir}/resources/java/global.properties.in" tofile="${installDir}/web/WEB-INF/classes/global.properties" overwrite="true"/> 
     154        <rsr file="${installDir}/web/WEB-INF/classes/global.properties"> 
     155            <job pattern="@gsdl3home@" replacement="${installDir.unix}/web" /> 
     156            <job pattern="@tomcat.server@" replacement="${tomcat.server}" /> 
     157            <job pattern="@tomcat.port@" replacement="${tomcat.port}" /> 
     158        </rsr> 
     159 
     160        <!-- set up log4j properties--> 
     161        <echo message="Setting up log4j properties"/> 
     162        <copy file="${installDir}/resources/java/log4j.properties.in" tofile="${installDir}/web/WEB-INF/classes/log4j.properties" overwrite="true"/> 
     163        <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="@gsdl3home@" replacement="${installDir.unix}/web"/> 
     164 
    106165        <!-- delete unneeded files -->       
    107166        <delete dir="${installDir}/resources/icons"/> 
     
    112171         
    113172    </target> 
     173 
    114174 
    115175    <!-- Source -->