Ignore:
Timestamp:
2008-06-20T16:01:32+12:00 (16 years ago)
Author:
oranfry
Message:

did the bulk of the work on the windows release kit for greenstone2

Location:
release-kits/wirk2/installer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • release-kits/wirk2/installer/antinstall-config.xml

    r16079 r16087  
    77            debug="false"
    88            lookAndFeel="org.tp23.jgoodies.plaf.plastic.PlasticXPLookAndFeel"
    9             name="Greenstone3 @version@ Installer"
     9            name="Greenstone@version@ Installer"
    1010            windowIcon="/resources/icon.png"
    1111            defaultImageResource="/resources/header.png"
     
    1818
    1919    <!--  type="license" shows a license page to click through -->
    20     <page type="license" name="license" resource="/LICENSE.txt"  displayText="" />
     20    <page type="license" name="license" resource="/COPYING"  displayText="" />
    2121
    2222    <!--  install destination page -->
     
    3535        <comment name="choose-components"/>
    3636
    37         <target target="install-core-components"        defaultValue="true" force="true" displayText="" />
    38         <target target="install-start-menu-shortcuts"   defaultValue="true" displayText="" />
    39         <target target="install-tomcat"                 defaultValue="true" displayText="" />
    40         <target target="install-ant"                    defaultValue="true" displayText="" />
    41         <target target="install-source-code"            defaultValue="false" displayText="" />
     37        <target target="install-core-components"    defaultValue="true" force="true" displayText="" />
     38        <target target="install-source-code"        defaultValue="false" displayText="" />
    4239
    4340    </page>
    4441
    45     <page type="input" name="tomcat-config" ifProperty="(${install-tomcat}==true)" displayText="">
    46 
    47         <text property="tomcat.server" defaultValue="localhost" displayText=""/>
    48         <text property="tomcat.port" defaultValue="8080" displayText=""/>
    49         <text property="tomcat.shutdown.port" defaultValue="8005" displayText=""/>
    50 
    51     </page>
    52 
    53     <page type="progress" name="progress" showTargets="false" target="cleanuptarget" displayText="">
    54     </page>
     42    <page type="progress" name="progress" showTargets="false" target="cleanuptarget" displayText=""></page>
    5543
    5644</installer>
  • release-kits/wirk2/installer/build.xml

    r15812 r16087  
    44-->
    55
    6 <project name="Installation" default="" basedir="${basedir}">
     6<project name="Installation">
    77
    88    <!-- this is required to pick up the properties generated during the install pages -->
     
    1515    <!-- custom tasks -->
    1616    <typedef name="rsr" classname="RegexSearchReplace" classpathref="project.classpath"/>
    17     <taskdef name="shortcut" classname="com.orangevolt.tools.ant.Win32ShortcutTask" classpathref="project.classpath"/>
    18     <taskdef name="winprops" classname="com.orangevolt.tools.ant.Win32PropertiesTask" classpathref="project.classpath"/>
    1917
    20     <!-- create a local installDir String -->
    21     <path id="installDir.path">
    22         <pathelement location="${installDir}"/>
    23     </path>
    24     <property name="installDir.local" refid="installDir.path"/>
    25    
    26    
    27     <target name="install-core-components">
    28         <!-- load windows properties -->
    29         <winprops/>
     18    <condition property="bundled.java.exists">
     19        <available file="../@java.extracted@/bin/java"/>
     20    </condition>
     21
     22
     23    <target name="install-core-components" depends="">
     24
     25        <echo>basedir: ${basedir}</echo>
     26        <echo>installDir: ${installDir}</echo>
     27        <echo>antinstaller.jar: ${antinstaller.jar}</echo>
    3028
    3129        <!-- create the installation directory -->
    3230        <echo message="Creating Installation directory"/>
    33         <echo>basedir: ${basedir}</echo>
    34         <echo>installDir: ${installDir}</echo>
    35         <echo>antinstaller.jar: ${antinstaller.jar}</echo>
    3631        <mkdir dir="${installDir}"/>
    3732
    38         <!-- install binaries  -->
     33
     34        <!-- install files -->
     35        <echo message="Installing GLI (gli)"/>
     36        <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="gli/**/*"/></patternset></unzip>
     37        <echo/>
     38
    3939        <echo message="Installing Executable Binaries (bin)"/>
    4040        <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="bin/**/*"/></patternset></unzip>
    4141        <echo/>
    4242
    43         <echo message="Installing Documentation (docs)"/>
    44         <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="docs/**/*"/></patternset></unzip>
     43        <echo message="Installing CGI Binaries (cgi-bin)"/>
     44        <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="cgi-bin/**/*"/></patternset></unzip>
    4545        <echo/>
    4646
    47         <echo message="Installing GLI (gli)"/>
    48         <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="gli/**/*"/></patternset></unzip>
     47        <echo message="Installing Config Folder (etc)"/>
     48        <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="etc/**/*"/></patternset></unzip>
    4949        <echo/>
    5050
    51         <echo message="Installing gs2build (gs2build)"/>
    52         <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="gs2build/**/*"/></patternset></unzip>
     51        <echo message="Installing mappings (mappings)"/>
     52        <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="mappings/**/*"/></patternset></unzip>
    5353        <echo/>
    5454
    55         <echo message="Installing Libraries (lib)"/>
    56         <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="lib/**/*"/></patternset></unzip>
     55        <echo message="Installing Packages (packages)"/>
     56        <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="packages/**/*"/></patternset></unzip>
    5757        <echo/>
    5858
    59         <echo message="Installing Web Content (web)"/>
    60         <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="web/**/*"/></patternset></unzip>
     59        <echo message="Installing Images (images)"/>
     60        <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="images/**/*"/></patternset></unzip>
    6161        <echo/>
    6262
    63         <echo message="Installing Resources (resources)"/>
    64         <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="resources/**/*"/></patternset></unzip>
     63        <echo message="Installing Perl Libraries (perllib)"/>
     64        <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="perllib/**/*"/></patternset></unzip>
    6565        <echo/>
    6666
    67         <echo message="Installing Windows Utility Commands (winutil)"/>
    68         <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="winutil/**/*"/></patternset></unzip>
     67        <echo message="Installing Indexers (indexers)"/>
     68        <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="indexers/**/*"/></patternset></unzip>
    6969        <echo/>
    7070
     71        <echo message="Installing Macros (macros)"/>
     72        <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="macros/**/*"/></patternset></unzip>
     73        <echo/>
     74
     75        <echo message="Installing Collect Folder (collect)"/>
     76        <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="collect/**/*"/></patternset></unzip>
     77        <echo/>
    7178       
    7279        <echo message="Installing Top Level Files"/>
    7380        <unzip src="${antinstaller.jar}" dest="${installDir}">
    7481            <patternset>
    75                 <include name="greenstone3-build.xml"/>
    76                 <include name="build.properties"/>
    77                 <include name="gs3-server.bat"/>
    78                 <include name="gs3-setup.bat"/>
    79                 <include name="LICENSE.txt"/>
    80                 <include name="README.txt"/>
    81                 <include name="server.jar"/>
     82                <include name="COPYING"/>
     83                <include name="setup.bat"/>
     84                <include name="server.exe"/>
    8285            </patternset>
    8386        </unzip>
    8487        <echo/>
    85        
    86         <!-- rename greenstone3-build.xml back to build.xml -->
    87         <move file="${installDir}/greenstone3-build.xml" tofile="${installDir}/build.xml" overwrite="true"/>
    88        
    89         <!-- change the tomcat ports in build.properties -->
    90         <echo message="Changing tomcat ports in build.properties"/>
    91         <rsr file="${installDir}/build.properties" pattern="(tomcat.port[=:]).*" replacement="$1${tomcat.port}" />
    92         <rsr file="${installDir}/build.properties" pattern="(tomcat.shutdown.port[=:]).*" replacement="$1${tomcat.shutdown.port}" />
    93         <echo message="Changing tomcat ports in resources/tomcat/server.xml"/>
    94         <copy file="${installDir}/resources/tomcat/server.xml" tofile="${installDir.local}/packages/tomcat/conf/server.xml" overwrite="true"/>
    95        
    96         <!-- set gsdlhome in gs2build setup.bat -->
    97         <echo message="Setting %GSDLHOME% in gs2build\setup.bat"/>
    98         <rsr file="${installDir}/gs2build/setup.bat" pattern="@gsdlhome@" replacement="${installDir.local}\gs2build" />
    99 
    100        
    101         <!-- copy the greenstone3.xml file to tomcat -->
    102         <echo message="Copying greenstone3.xml to tomcat directory"/>
    103         <copy file="${installDir}/resources/tomcat/greenstone3.xml" tofile="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" overwrite="true"/>
    104         <rsr file="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" pattern="@gsdl3webhome@" replacement="${installDir.local}\web" />
    105 
    106         <!-- set up global properties -->
    107         <echo message="Setting up global properties"/>
    108         <copy file="${installDir}/resources/java/global.properties.in" tofile="${installDir}/web/WEB-INF/classes/global.properties" overwrite="true"/>
    109         <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="@gsdl3home@" replacement="${installDir.local}\web" />
    110         <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="@tomcat.server@" replacement="${tomcat.server}" />
    111         <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="@tomcat.port@" replacement="${tomcat.port}" />
    112 
    113         <!-- set up log4j properties-->
    114         <echo message="Setting up log4j properties"/>
    115         <copy file="${installDir}/resources/java/log4j.properties.in" tofile="${installDir}/web/WEB-INF/classes/log4j.properties" overwrite="true"/>
    116         <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="@gsdl3home@" replacement="${installDir.local}\web" />
    11788
    11889        <!-- delete unneeded files -->     
     90        <echo message="Deleting some extraneous files"/>
    11991        <delete dir="${installDir}/resources/icons"/>
    12092        <delete file="${installDir}/resources/*.png"/>
     93
     94        <echo message="Finished"/>
    12195
    12296    </target>
    12397
    12498    <!-- Source -->
    125     <target name="install-source-code">
     99    <target name="install-source-code" depends="">
    126100        <echo message="Installing Source Code (src)"/>
    127101        <mkdir dir="${installDir}/src"/>
    128         <unzip src="${antinstaller.jar}" dest="${installDir}">
    129             <patternset>
    130                 <include name="src/**/*"/>
    131             </patternset>
    132         </unzip>
     102        <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="src/**/*"/></patternset></unzip>
    133103    </target>
    134104
    135     <target name="install-tomcat">
    136        
    137         <echo message="Installing Apache Tomcat"/>
    138         <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="packages/tomcat/**/*"/></patternset></unzip>
    139 
    140         <!-- change the tomcat ports in tomcats server.xml -->
    141         <rsr file="${installDir}/packages/tomcat/conf/server.xml" pattern="@server@" replacement="${tomcat.server}" />
    142         <rsr file="${installDir}/packages/tomcat/conf/server.xml" pattern="@port@" replacement="${tomcat.port}" />
    143         <rsr file="${installDir}/packages/tomcat/conf/server.xml" pattern="@shutdown-port@" replacement="${tomcat.shutdown.port}" />
    144 
    145     </target>
    146     <target name="install-ant">
    147         <echo message="Installing Apache Ant"/>
    148         <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="packages/ant/**/*"/></patternset></unzip>
    149     </target>
    150    
    151105    <target name="cleanuptarget">
    152106    </target>
    153107   
    154     <target name="install-start-menu-shortcuts">
    155108
    156         <mkdir dir="${win32.personal.programs_menu}\Greenstone-@version@\documentation"/>
    157        
    158        
    159         <shortcut
    160             file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone3 Server.lnk"
    161             execute="${installDir}\gs3-server.bat"
    162             workingDirectory="${installDir}"
    163             iconFile="${installDir}\resources\images\gs3.ico"
    164             iconIndex="0" />
    165 
    166         <shortcut
    167             file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone Librarian Interface (GLI).lnk"
    168             execute="${installDir}\gli\gli4gs3.bat"
    169             workingDirectory="${installDir}\gli"
    170             iconFile="${installDir}\resources\images\gs3.ico"
    171             iconIndex="0" />
    172            
    173         <shortcut
    174             file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone Editor for Metadata Sets (GEMS).lnk"
    175             execute="${installDir}\gli\gems4gs3.bat"
    176             workingDirectory="${installDir}\gli"
    177             iconFile="${installDir}\resources\images\gs3.ico"
    178             iconIndex="0" />
    179 
    180         <shortcut
    181             file="${win32.personal.programs_menu}\Greenstone-@version@\documentation\README.lnk"
    182             execute="${installDir}\README.txt" />
    183 
    184         <shortcut
    185             file="${win32.personal.programs_menu}\Greenstone-@version@\documentation\Greenstone3 Users' Guide.lnk"
    186             execute="${installDir}\documentation\manual\manual.pdf" />
    187 
    188         <shortcut
    189             file="${win32.personal.programs_menu}\Greenstone-@version@\documentation\Greenstone2 Users' Guide.lnk"
    190             execute="${installDir}\documentation\manual\gs2_user_en.pdf" />
    191 
    192            
    193     </target>
    194    
    195109</project>
Note: See TracChangeset for help on using the changeset viewer.