root/release-kits/wirk2/installer/build.xml @ 16774

Revision 16774, 4.4 KB (checked in by oranfry, 12 years ago)

fixes to wirk2

Line 
1<?xml version="1.0"?>
2<!--
3This is the build.xml run by AntInstaller for the installer
4-->
5
6<project name="Installation">
7
8    <!-- this is required to pick up the properties generated during the install pages -->
9    <property file="${basedir}/ant.install.properties"/>
10
11    <path id="project.classpath">
12        <pathelement path="${antinstaller.jar}"/>
13    </path>
14
15    <!-- custom tasks -->
16    <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"/>
19
20    <condition property="bundled.java.exists">
21        <available file="../@java.extracted@/bin/java"/>
22    </condition>
23
24    <!-- load windows properties -->
25    <winprops/>
26
27    <target name="install-core-components" depends="">
28
29        <echo>basedir: ${basedir}</echo>
30        <echo>installDir: ${installDir}</echo>
31        <echo>antinstaller.jar: ${antinstaller.jar}</echo>
32
33        <!-- create the installation directory -->
34        <echo message="Creating Installation directory"/>
35        <mkdir dir="${installDir}"/>
36       
37       
38        <!-- install files -->
39        <echo message="Installing Files"/>
40        <unzip src="${antinstaller.jar}" dest="${installDir}">
41            <patternset>
42
43                <include name="gli/**/*"/>
44                <include name="bin/**/*"/>
45                <include name="cgi-bin/**/*"/>
46                <include name="etc/**/*"/>
47                <include name="mappings/**/*"/>
48                <include name="images/**/*"/>
49                <include name="perllib/**/*"/>
50                <include name="indexers/**/*"/>
51                <include name="macros/**/*"/>
52                <include name="collect/**/*"/>
53
54                <include name="COPYING"/>
55                <include name="READMEar.txt"/>
56                <include name="READMEes.txt"/>
57                <include name="READMEen.txt"/>
58                <include name="READMEfr.txt"/>
59                <include name="READMEru.txt"/>
60                <include name="setup.bat"/>
61                <include name="server.exe"/>
62
63            </patternset>
64        </unzip>
65        <echo/>
66       
67        <!-- delete unneeded files -->     
68        <echo message="Deleting some unneeded files"/>
69        <delete dir="${installDir}/resources/icons"/>
70        <delete file="${installDir}/resources/*.png"/>
71
72        <echo message="Setting GSDLHOME in setup.bat"/>
73        <rsr
74            file="${installDir}/setup.bat"
75            pattern="\*\*GSDLHOME\*\*"
76            replacement="${installDir}"/>
77                   
78        <echo message="Finished"/>
79       
80    </target>
81
82    <!-- Source -->
83    <target name="install-source-code" depends="">
84
85    <echo message="Installing Source Code (src)"/>
86        <echo message="Installing Packages (packages)"/>
87        <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="packages/**/*"/></patternset></unzip>
88        <echo/>
89       
90        <mkdir dir="${installDir}/src"/>
91        <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="src/**/*"/></patternset></unzip>
92       
93    </target>
94   
95    <!-- Start menu shortcuts -->
96    <target name="install-start-menu-shortcuts">
97
98        <mkdir dir="${win32.personal.programs_menu}\Greenstone-@version@\Documentation"/>
99       
100        <shortcut
101            file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone2 Server.lnk"
102            execute="${installDir}\server.exe"
103            workingDirectory="${installDir}"
104            iconFile="${installDir}\images\icon.ico"
105            iconIndex="0" />
106
107        <shortcut
108            file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone Librarian Interface (GLI).lnk"
109            execute="${installDir}\gli\gli.bat"
110            workingDirectory="${installDir}\gli"
111            iconFile="${installDir}\images\icon.ico"
112            iconIndex="0" />
113           
114        <shortcut
115            file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone Editor for Metadata Sets (GEMS).lnk"
116            execute="${installDir}\gli\gems4gs3.bat"
117            workingDirectory="${installDir}\gli"
118            iconFile="${installDir}\images\icon.ico"
119            iconIndex="0" />
120       
121        <shortcut
122            file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEen.lnk"
123            execute="${installDir}\READMEen.txt" />
124        <shortcut
125            file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEes.lnk"
126            execute="${installDir}\READMEes.txt" />
127        <shortcut
128            file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEar.lnk"
129            execute="${installDir}\READMEar.txt" />
130        <shortcut
131            file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEfr.lnk"
132            execute="${installDir}\READMEfr.txt" />
133        <shortcut
134            file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEru.lnk"
135            execute="${installDir}\READMEru.txt" />
136    </target>
137
138
139    <target name="cleanuptarget"></target>
140   
141
142</project>
Note: See TracBrowser for help on using the browser.