[14982] | 1 | <?xml version="1.0"?>
|
---|
| 2 | <!--
|
---|
| 3 | This is the build.xml run by AntInstaller for the installer
|
---|
| 4 | -->
|
---|
| 5 |
|
---|
[15205] | 6 | <project name="Installation">
|
---|
[14982] | 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 |
|
---|
[15142] | 18 | <condition property="bundled.java.exists">
|
---|
| 19 | <available file="../@java.extracted@/bin/java"/>
|
---|
| 20 | </condition>
|
---|
| 21 |
|
---|
| 22 |
|
---|
[15205] | 23 | <target name="install-core-components" depends="">
|
---|
[14982] | 24 |
|
---|
| 25 | <echo>basedir: ${basedir}</echo>
|
---|
| 26 | <echo>installDir: ${installDir}</echo>
|
---|
| 27 | <echo>antinstaller.jar: ${antinstaller.jar}</echo>
|
---|
[15980] | 28 |
|
---|
| 29 | <!-- create the installation directory -->
|
---|
| 30 | <echo message="Creating Installation directory"/>
|
---|
[14982] | 31 | <mkdir dir="${installDir}"/>
|
---|
| 32 |
|
---|
| 33 |
|
---|
[15980] | 34 | <!-- install files -->
|
---|
| 35 | <echo message="Installing GLI (gli)"/>
|
---|
| 36 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="gli/**/*"/></patternset></unzip>
|
---|
| 37 | <echo/>
|
---|
| 38 |
|
---|
[14982] | 39 | <echo message="Installing Executable Binaries (bin)"/>
|
---|
| 40 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="bin/**/*"/></patternset></unzip>
|
---|
| 41 | <echo/>
|
---|
| 42 |
|
---|
[15980] | 43 | <echo message="Installing CGI Binaries (cgi-bin)"/>
|
---|
| 44 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="cgi-bin/**/*"/></patternset></unzip>
|
---|
[14982] | 45 | <echo/>
|
---|
| 46 |
|
---|
[15980] | 47 | <echo message="Installing Config Folder (etc)"/>
|
---|
| 48 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="etc/**/*"/></patternset></unzip>
|
---|
[14982] | 49 | <echo/>
|
---|
| 50 |
|
---|
[15980] | 51 | <echo message="Installing mappings (mappings)"/>
|
---|
| 52 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="mappings/**/*"/></patternset></unzip>
|
---|
[14982] | 53 | <echo/>
|
---|
| 54 |
|
---|
[15980] | 55 | <echo message="Installing Packages (packages)"/>
|
---|
| 56 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="packages/**/*"/></patternset></unzip>
|
---|
[14982] | 57 | <echo/>
|
---|
| 58 |
|
---|
[15980] | 59 | <echo message="Installing Images (images)"/>
|
---|
| 60 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="images/**/*"/></patternset></unzip>
|
---|
[14982] | 61 | <echo/>
|
---|
| 62 |
|
---|
[15980] | 63 | <echo message="Installing Perl Libraries (perllib)"/>
|
---|
| 64 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="perllib/**/*"/></patternset></unzip>
|
---|
[14982] | 65 | <echo/>
|
---|
| 66 |
|
---|
[15980] | 67 | <echo message="Installing Indexers (indexers)"/>
|
---|
| 68 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="indexers/**/*"/></patternset></unzip>
|
---|
[14982] | 69 | <echo/>
|
---|
| 70 |
|
---|
[15980] | 71 | <echo message="Installing Macros (macros)"/>
|
---|
| 72 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="macros/**/*"/></patternset></unzip>
|
---|
| 73 | <echo/>
|
---|
| 74 |
|
---|
| 75 | <echo message="Installing Collect Folder (collect)"/>
|
---|
| 76 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="collect/**/*"/></patternset></unzip>
|
---|
| 77 | <echo/>
|
---|
| 78 |
|
---|
[14982] | 79 | <echo message="Installing Top Level Files"/>
|
---|
| 80 | <unzip src="${antinstaller.jar}" dest="${installDir}">
|
---|
| 81 | <patternset>
|
---|
[15980] | 82 | <include name="config.sub"/>
|
---|
| 83 | <include name="configure.in"/>
|
---|
| 84 | <include name="install-sh"/>
|
---|
| 85 | <include name="setup.bash"/>
|
---|
| 86 | <include name="config.h.in"/>
|
---|
| 87 | <include name="configtest.pl"/>
|
---|
| 88 | <include name="WIN32cfg.h"/>
|
---|
| 89 | <include name="acconfig.h"/>
|
---|
| 90 | <include name="COPYING"/>
|
---|
| 91 | <include name="config.guess"/>
|
---|
| 92 | <include name="Install.txt"/>
|
---|
| 93 | <include name="configure"/>
|
---|
| 94 | <include name="win32.mak"/>
|
---|
| 95 | <include name="setup.csh"/>
|
---|
| 96 | <include name="Install.sh"/>
|
---|
| 97 | <include name="Makefile.in"/>
|
---|
| 98 | <include name="micotest.cpp"/>
|
---|
| 99 | <include name="aclocal.m4"/>
|
---|
[14982] | 100 | </patternset>
|
---|
| 101 | </unzip>
|
---|
| 102 | <echo/>
|
---|
| 103 |
|
---|
| 104 | <echo message="Setting Binaries to Executable"/>
|
---|
[15980] | 105 | <chmod dir="${installDir}" includes="*.sh,*.bash" perm="775"/>
|
---|
| 106 | <chmod dir="${installDir}/bin/linux" includes="*" perm="775"/>
|
---|
| 107 | <chmod dir="${installDir}/cgi-bin" includes="*" perm="775"/>
|
---|
| 108 | <chmod dir="${installDir}/bin/script" includes="**/*" perm="775"/>
|
---|
[14982] | 109 | <chmod dir="${installDir}/gli" includes="*.sh" perm="775"/>
|
---|
| 110 | <echo/>
|
---|
| 111 |
|
---|
| 112 | <!-- delete unneeded files -->
|
---|
[15142] | 113 | <echo message="Deleting some extraneous files"/>
|
---|
[14982] | 114 | <delete dir="${installDir}/resources/icons"/>
|
---|
| 115 | <delete file="${installDir}/resources/*.png"/>
|
---|
| 116 |
|
---|
[15142] | 117 | <echo message="Finished"/>
|
---|
| 118 |
|
---|
[14982] | 119 | </target>
|
---|
| 120 |
|
---|
| 121 | <!-- Source -->
|
---|
[15205] | 122 | <target name="install-source-code" depends="">
|
---|
[14982] | 123 | <echo message="Installing Source Code (src)"/>
|
---|
| 124 | <mkdir dir="${installDir}/src"/>
|
---|
[15980] | 125 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="src/**/*"/></patternset></unzip>
|
---|
[14982] | 126 | </target>
|
---|
| 127 |
|
---|
[15205] | 128 | <target name="install-java">
|
---|
[15142] | 129 | <echo message="Installing bundled java"/>
|
---|
| 130 | <copy todir="${installDir}/packages/jre">
|
---|
| 131 | <fileset dir="../@java.extracted@"/>
|
---|
| 132 | </copy>
|
---|
| 133 | <chmod dir="${installDir}/packages/jre/bin" includes="*" perm="775"/>
|
---|
[14982] | 134 | </target>
|
---|
[15142] | 135 |
|
---|
[15205] | 136 | <target name="cleanuptarget">
|
---|
| 137 | </target>
|
---|
[14982] | 138 |
|
---|
| 139 |
|
---|
| 140 | </project>
|
---|