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 GLI (gli)"/>
|
---|
40 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="gli/**/*"/></patternset></unzip>
|
---|
41 | <echo/>
|
---|
42 |
|
---|
43 | <echo message="Installing Executable Binaries (bin)"/>
|
---|
44 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="bin/**/*"/></patternset></unzip>
|
---|
45 | <echo/>
|
---|
46 |
|
---|
47 | <echo message="Installing CGI Binaries (cgi-bin)"/>
|
---|
48 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="cgi-bin/**/*"/></patternset></unzip>
|
---|
49 | <echo/>
|
---|
50 |
|
---|
51 | <echo message="Installing Config Folder (etc)"/>
|
---|
52 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="etc/**/*"/></patternset></unzip>
|
---|
53 | <echo/>
|
---|
54 |
|
---|
55 | <echo message="Installing mappings (mappings)"/>
|
---|
56 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="mappings/**/*"/></patternset></unzip>
|
---|
57 | <echo/>
|
---|
58 |
|
---|
59 |
|
---|
60 | <echo message="Installing Images (images)"/>
|
---|
61 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="images/**/*"/></patternset></unzip>
|
---|
62 | <echo/>
|
---|
63 |
|
---|
64 | <echo message="Installing Perl Libraries (perllib)"/>
|
---|
65 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="perllib/**/*"/></patternset></unzip>
|
---|
66 | <echo/>
|
---|
67 |
|
---|
68 | <echo message="Installing Indexers (indexers)"/>
|
---|
69 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="indexers/**/*"/></patternset></unzip>
|
---|
70 | <echo/>
|
---|
71 |
|
---|
72 | <echo message="Installing Macros (macros)"/>
|
---|
73 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="macros/**/*"/></patternset></unzip>
|
---|
74 | <echo/>
|
---|
75 |
|
---|
76 | <echo message="Installing Collect Folder (collect)"/>
|
---|
77 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="collect/**/*"/></patternset></unzip>
|
---|
78 | <echo/>
|
---|
79 |
|
---|
80 | <echo message="Installing Top Level Files"/>
|
---|
81 | <unzip src="${antinstaller.jar}" dest="${installDir}">
|
---|
82 | <patternset>
|
---|
83 | <include name="COPYING"/>
|
---|
84 | <include name="READMEar.txt"/>
|
---|
85 | <include name="READMEes.txt"/>
|
---|
86 | <include name="READMEen.txt"/>
|
---|
87 | <include name="READMEfr.txt"/>
|
---|
88 | <include name="READMEru.txt"/>
|
---|
89 | <include name="setup.bat"/>
|
---|
90 | <include name="server.exe"/>
|
---|
91 | </patternset>
|
---|
92 | </unzip>
|
---|
93 | <echo/>
|
---|
94 |
|
---|
95 | <!-- delete unneeded files -->
|
---|
96 | <echo message="Deleting some extraneous files"/>
|
---|
97 | <delete dir="${installDir}/resources/icons"/>
|
---|
98 | <delete file="${installDir}/resources/*.png"/>
|
---|
99 |
|
---|
100 | <echo message="Finished"/>
|
---|
101 |
|
---|
102 | </target>
|
---|
103 |
|
---|
104 | <!-- Source -->
|
---|
105 | <target name="install-source-code" depends="">
|
---|
106 |
|
---|
107 | <echo message="Installing Source Code (src)"/>
|
---|
108 | <echo message="Installing Packages (packages)"/>
|
---|
109 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="packages/**/*"/></patternset></unzip>
|
---|
110 | <echo/>
|
---|
111 |
|
---|
112 | <mkdir dir="${installDir}/src"/>
|
---|
113 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="src/**/*"/></patternset></unzip>
|
---|
114 |
|
---|
115 | </target>
|
---|
116 |
|
---|
117 | <!-- Start menu shortcuts -->
|
---|
118 | <target name="install-start-menu-shortcuts">
|
---|
119 |
|
---|
120 | <mkdir dir="${win32.personal.programs_menu}\Greenstone-@version@\Documentation"/>
|
---|
121 |
|
---|
122 | <shortcut
|
---|
123 | file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone2 Server.lnk"
|
---|
124 | execute="${installDir}\bin\windows\server.exe"
|
---|
125 | workingDirectory="${installDir}"
|
---|
126 | iconFile="${installDir}\images\icon.ico"
|
---|
127 | iconIndex="0" />
|
---|
128 |
|
---|
129 | <shortcut
|
---|
130 | file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone Librarian Interface (GLI).lnk"
|
---|
131 | execute="${installDir}\gli\gli.bat"
|
---|
132 | workingDirectory="${installDir}\gli"
|
---|
133 | iconFile="${installDir}\images\icon.ico"
|
---|
134 | iconIndex="0" />
|
---|
135 |
|
---|
136 | <shortcut
|
---|
137 | file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone Editor for Metadata Sets (GEMS).lnk"
|
---|
138 | execute="${installDir}\gli\gems4gs3.bat"
|
---|
139 | workingDirectory="${installDir}\gli"
|
---|
140 | iconFile="${installDir}\images\icon.ico"
|
---|
141 | iconIndex="0" />
|
---|
142 |
|
---|
143 | <shortcut
|
---|
144 | file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEen.lnk"
|
---|
145 | execute="${installDir}\READMEen.txt" />
|
---|
146 | <shortcut
|
---|
147 | file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEes.lnk"
|
---|
148 | execute="${installDir}\READMEes.txt" />
|
---|
149 | <shortcut
|
---|
150 | file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEar.lnk"
|
---|
151 | execute="${installDir}\READMEar.txt" />
|
---|
152 | <shortcut
|
---|
153 | file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEfr.lnk"
|
---|
154 | execute="${installDir}\READMEfr.txt" />
|
---|
155 | <shortcut
|
---|
156 | file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEru.lnk"
|
---|
157 | execute="${installDir}\READMEru.txt" />
|
---|
158 | </target>
|
---|
159 |
|
---|
160 |
|
---|
161 | <target name="cleanuptarget"></target>
|
---|
162 |
|
---|
163 |
|
---|
164 | </project>
|
---|