Changeset 15381

Show
Ignore:
Timestamp:
09.05.2008 15:37:51 (11 years ago)
Author:
oranfry
Message:

installer now has the ability to add start menu shortcuts

Location:
release-kits/wirk3/installer
Files:
130 added
1 removed
2 modified

Legend:

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

    r15356 r15381  
    3535        <comment name="choose-components"/> 
    3636 
    37         <target target="install-core-components"    defaultValue="true" force="true" displayText="" /> 
    38         <target target="install-tomcat"             defaultValue="true" displayText="" /> 
     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="" /> 
    3940        <target target="install-ant"                    defaultValue="true" displayText="" /> 
    40         <target target="install-source-code"        defaultValue="false" displayText="" /> 
     41        <target target="install-source-code"            defaultValue="false" displayText="" /> 
    4142 
    4243    </page> 
  • release-kits/wirk3/installer/build.xml

    r15356 r15381  
    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"/>  
    1719 
    1820    <!-- create a local installDir String --> 
     
    2426     
    2527    <target name="install-core-components"> 
     28        <!-- load windows properties --> 
     29        <winprops/> 
    2630 
    2731        <!-- create the installation directory --> 
     
    110114        <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="@gsdl3home@" replacement="${installDir.local}\web" /> 
    111115 
    112         <!-- get the found JRE_HOME --> 
    113         <exec executable="search4j.exe" outputproperty="backup.jre.home"><arg line="-m @java.min.version@"/></exec> 
    114                  
    115         <!-- in the gs3-setup.sh file, set ANT_HOME and put it in PATH, and set the fallback JRE_HOME --> 
    116         <!--<echo>In the gs3-setup.sh file, set ANT_HOME and put it in PATH</echo> 
    117         <concat destfile="${installDir}/machine.bat" append="yes"> 
    118 set ANT_HOME=${installDir}\packages\ant 
    119 set PATH=%ANT_HOME%\bin;%PATH% 
    120 set BACKUP_JAVA_HOME=${backup.jre.home} 
    121 </concat>--> 
    122          
    123  
    124116        <!-- delete unneeded files -->       
    125117        <delete dir="${installDir}/resources/icons"/> 
     
    158150    </target> 
    159151     
     152    <target name="install-start-menu-shortcuts"> 
    160153 
     154        <mkdir dir="${win32.personal.programs_menu}\Greenstone-@version@"/> 
     155         
     156        <shortcut 
     157            file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone3 Server.lnk" 
     158            execute="${installDir}/gs3-server.bat" 
     159            workingDirectory="${installDir}" 
     160            iconFile="${installDir}/gli/gli.ico" 
     161            iconIndex="0" /> 
     162             
     163    </target> 
     164     
    161165</project>