Ignore:
Timestamp:
2008-03-28T12:43:46+13:00 (16 years ago)
Author:
oranfry
Message:

changes to the wrapper and installer logic, and a few changes to init and compile stuff

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

Legend:

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

    r15097 r15142  
    1515            type="input"
    1616            name="intro"
    17             displayText="绿宝石蜯件">
     17            displayText="Welcome to the Greenstone3 installer">
    1818    </page>
    1919
     
    3434        <directory
    3535                property="installDir"
    36                 defaultValue="/research/oranfry/sandbox/Greenstone3.03a"
    37                 defaultValueWin="${env.ProgramFiles}\Greenstone3"
     36                defaultValue="/usr/local/Greenstone-@version@"
     37                defaultValueWin="${env.ProgramFiles}\Greenstone-@version@"
    3838                displayText="Select an installation directory"
    3939                create="true"/>
     
    4545        <comment name="tomcatportsdescription" displayText="Please select the ports which the web server (Apache Tomcat) will use  will use. It is usually safe to accept the defaults by just clicking Next. The exception is when you are running other services on these ports - if this is the case, select some free ports and click Next."/>
    4646
     47        <text property="tomcat.server" defaultValue="localhost" displayText="Tomcat Server"/>
    4748        <text property="tomcat.port" defaultValue="8080" displayText="Tomcat Port"/>
    4849        <text property="tomcat.shutdown.port" defaultValue="8005" displayText="Tomcat Shutdown Port"/>
     50
    4951    </page>
    5052
     
    5456            name="selector"
    5557            displayText="Components to install">
    56         <comment
    57                 name="choosecomponents"
    58                 displayText="Choose the components you want to install"
    59                 bold="true"/>
    60         <target
    61             displayText="Core components"
    62             target="default"
    63             defaultValue="true"
    64             force="true"/>
    65        
    66         <target
    67             displayText="Source code"
    68             target="tgsrc"
    69             defaultValue="false"/>
    70        
     58
     59        <comment name="choosecomponents" displayText="Choose the components you want to install" bold="true"/>
     60        <target displayText="Core components" target="default" defaultValue="true" force="true"/>
     61        <target displayText="Source code" target="tgsrc" defaultValue="false"/>
     62
    7163    </page>
    7264
  • release-kits/lirk3/installer/build.xml

    r14982 r15142  
    44-->
    55
    6 <project name="Installation" default="" basedir="${basedir}">
     6<project name="Installation" default="">
    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
     18    <condition property="bundled.java.exists">
     19        <available file="../@java.extracted@/bin/java"/>
     20    </condition>
     21
    1722
    1823    <target name="default" depends="">
     
    7681        <chmod dir="${installDir}" includes="*.sh" perm="775"/>
    7782        <chmod dir="${installDir}/bin/script" includes="*" perm="775"/>
     83        <chmod dir="${installDir}/bin" includes="*" perm="775"/>
    7884        <chmod dir="${installDir}/packages/tomcat/bin" includes="*.sh" perm="775"/>
     85        <chmod dir="${installDir}/packages/ant/bin" includes="*" perm="775"/>
    7986        <chmod dir="${installDir}/gs2build/bin/linux" includes="*" perm="775"/>
    8087        <chmod dir="${installDir}/gs2build/bin/script" includes="**/*" perm="775"/>
     
    110117        <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" />
    111118
    112         <!-- in the gs3-setup.sh file, set ANT_HOME and put it in PATH -->
    113         <echo>In the gs3-setup.sh file, set ANT_HOME and put it in PATH</echo>
     119
     120        <!-- in the gs3-setup.sh file, set ANT_HOME and put it in PATH (no need anymore)-->
     121        <!--<echo>In the gs3-setup.sh file, set ANT_HOME and put it in PATH</echo>
    114122        <exec executable="echo" output="${installDir}/gs3-setup.sh" append="true">
    115123            <arg line="export ANT_HOME=${installDir}/packages/ant; export PATH=$ANT_HOME/bin:$PATH;"/>
    116         </exec>
     124        </exec>-->
    117125
    118126        <!-- delete unneeded files -->     
     127        <echo message="Deleting some extraneous files"/>
    119128        <delete dir="${installDir}/resources/icons"/>
    120129        <delete file="${installDir}/resources/*.png"/>
     130
     131        <echo message="Finished"/>
    121132
    122133    </target>
     
    133144    </target>
    134145
    135     <target name="cleanuptarget">
     146    <target name="install-bundled-java" depends="" if="bundled.java.exists">
     147        <echo message="Installing bundled java"/>
     148        <copy todir="${installDir}/packages/jre">
     149            <fileset dir="../@java.extracted@"/>
     150        </copy>
     151        <chmod dir="${installDir}/packages/jre/bin" includes="*" perm="775"/>       
     152    </target>
     153
     154    <target name="cleanuptarget" depends="install-bundled-java">
    136155    </target>
    137156   
Note: See TracChangeset for help on using the changeset viewer.