1 | <?xml version="1.0"?>
|
---|
2 | <!--
|
---|
3 | This 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"/>
|
---|
86 | <unzip src="${antinstaller.jar}" dest="${installDir}">
|
---|
87 | <patternset>
|
---|
88 | <include name="common-src/**/*"/>
|
---|
89 | <include name="runtime-src/**/*"/>
|
---|
90 | <include name="build-src/**/*"/>
|
---|
91 | <include name="packages/**/*"/>
|
---|
92 | </patternset>
|
---|
93 | </unzip>
|
---|
94 |
|
---|
95 | </target>
|
---|
96 |
|
---|
97 | <!-- Start menu shortcuts -->
|
---|
98 | <target name="install-start-menu-shortcuts">
|
---|
99 |
|
---|
100 | <mkdir dir="${win32.personal.programs_menu}\Greenstone-@version@\Documentation"/>
|
---|
101 |
|
---|
102 | <shortcut
|
---|
103 | file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone2 Server.lnk"
|
---|
104 | execute="${installDir}\server.exe"
|
---|
105 | workingDirectory="${installDir}"
|
---|
106 | iconFile="${installDir}\images\icon.ico"
|
---|
107 | iconIndex="0" />
|
---|
108 |
|
---|
109 | <shortcut
|
---|
110 | file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone Librarian Interface (GLI).lnk"
|
---|
111 | execute="${installDir}\gli\gli.bat"
|
---|
112 | workingDirectory="${installDir}\gli"
|
---|
113 | iconFile="${installDir}\images\icon.ico"
|
---|
114 | iconIndex="0" />
|
---|
115 |
|
---|
116 | <shortcut
|
---|
117 | file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone Editor for Metadata Sets (GEMS).lnk"
|
---|
118 | execute="${installDir}\gli\gems4gs3.bat"
|
---|
119 | workingDirectory="${installDir}\gli"
|
---|
120 | iconFile="${installDir}\images\icon.ico"
|
---|
121 | iconIndex="0" />
|
---|
122 |
|
---|
123 | <shortcut
|
---|
124 | file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEen.lnk"
|
---|
125 | execute="${installDir}\READMEen.txt" />
|
---|
126 | <shortcut
|
---|
127 | file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEes.lnk"
|
---|
128 | execute="${installDir}\READMEes.txt" />
|
---|
129 | <shortcut
|
---|
130 | file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEar.lnk"
|
---|
131 | execute="${installDir}\READMEar.txt" />
|
---|
132 | <shortcut
|
---|
133 | file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEfr.lnk"
|
---|
134 | execute="${installDir}\READMEfr.txt" />
|
---|
135 | <shortcut
|
---|
136 | file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEru.lnk"
|
---|
137 | execute="${installDir}\READMEru.txt" />
|
---|
138 | </target>
|
---|
139 |
|
---|
140 |
|
---|
141 | <target name="cleanuptarget"></target>
|
---|
142 |
|
---|
143 |
|
---|
144 | </project>
|
---|