Changeset 16087
- Timestamp:
- 2008-06-20T16:01:32+12:00 (16 years ago)
- Location:
- release-kits/wirk2
- Files:
-
- 6 added
- 9 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
release-kits/wirk2/ant-scripts/build.xml
r15095 r16087 3 3 <!-- 4 4 .......................................................... 5 September 20076 Greenstone3 'release maker' script5 June 2008 6 Wirk2 (Windows Release Kit for Greenstone2) 7 7 Oran Fry 8 8 .......................................................... 9 9 --> 10 10 11 <project name="wirk 3-build" default="wirk3">11 <project name="wirk2-build" default="wirk2"> 12 12 13 13 <import file="init.xml"/> 14 15 14 <import file="compile.xml"/> 16 15 <import file="create-distribution.xml"/> 17 16 <import file="create-installer.xml"/> 18 < import file="wrap.xml"/>17 <!--<import file="wrap.xml"/>--> 19 18 20 <target name="wirk3" depends="init"> 21 <echo>Local Basedir: ${basedir.local}</echo> 22 19 <target name="wirk2" depends="init"> 23 20 <addressedcall target="compile"/> 24 21 <addressedcall target="create-distribution"/> 25 22 <addressedcall target="create-installer"/> 26 < addressedcall target="wrap"/>23 <!--<addressedcall target="wrap"/>--> 27 24 </target> 28 25 -
release-kits/wirk2/ant-scripts/compile.xml
r15053 r16087 1 1 <?xml version="1.0" encoding="utf-8" ?> 2 3 <!-- 4 .......................................................... 5 September 2007 6 Greenstone3 'release maker' script 7 Oran Fry 8 .......................................................... 9 --> 10 11 <project name="wirk3-compile" default="compile"> 2 <project name="wirk2-compile" default="compile"> 12 3 13 4 14 5 <target name="compile"> 15 6 16 <addressedcall target="checkout-greenstone3" /> 17 <addressedcall target="set-version-number-property" /> 18 <addressedcall target="dist-prepare-windows" /> 19 <addressedcall target="dist-build-windows" /> 20 <addressedcall target="prepare-documentation" /> 21 7 <addressedcall target="checkout-gsdl-indexers-gli" /> 8 <addressedcall target="set-version-numbers" /> 9 <addressedcall target="unzip-packages" /> 10 <addressedcall target="get-winbin" /> 11 <addressedcall target="insert-perl" /> 12 <addressedcall target="compile-c-code" /> 13 <addressedcall target="build-demo-collection" /> 14 22 15 </target> 23 16 24 25 <!-- 26 27 second level targets 28 29 --> 30 31 <target name="checkout-greenstone3"> 17 <target name="checkout-gsdl-indexers-gli"> 32 18 <if><bool><istrue value="${execute}"/></bool> 33 19 <svn> 34 <checkout url="${svn.root}/greenstone3/${branch.path}" destPath="greenstone3" revision="${branch.revision}"/> 20 <checkout url="${svn.root}/gsdl/${branch.path}" destPath="${basedir}/gsdl"/> 21 <checkout url="${svn.root}/indexers/${branch.path}" destPath="${basedir}/gsdl/indexers"/> 22 <checkout url="${svn.root}/gli/${branch.path}" destPath="${basedir}/gsdl/gli"/> 35 23 </svn> 36 24 </if> 37 25 </target> 38 26 39 <target name="set-version-number -property">27 <target name="set-version-numbers"> 40 28 <if><bool><istrue value="${execute}"/></bool> 41 <rsr file="greenstone3/resources/java/global.properties.in" pattern="(.*)@gsdl3version@(.*)" replacement="$1${version}$2" /> 29 <rsr file="${basedir}/gsdl/src/lib/gsdlconf.h" pattern="(#define GSDL_VERSION ).*" replacement="$1"${version}"" /> 30 <rsr file="${basedir}/gsdl/Install.sh" pattern="(echo "Version: ).*(" .*)" replacement="$1${version}$2" /> 31 <rsr file="${basedir}/gsdl/etc/VERSION" pattern="(gsdl version: ).*" replacement="$1${version}" /> 42 32 </if> 43 33 </target> 44 34 45 <target name=" dist-prepare-windows">35 <target name="unzip-packages"> 46 36 <if><bool><istrue value="${execute}"/></bool> 47 <ant dir="greenstone3" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" target="prepare-windows" inheritAll="false"> 48 <property name="app.version" value="${version}"/> 49 <property name="branch.path" value="${branch.path}"/> 50 <property name="branch.revision" value="${branch.revision}"/> 51 </ant> 52 37 <unzip src="${basedir}/gsdl/packages/windows/crypt/crypt.zip" dest="${basedir}/gsdl/packages/windows/crypt"/> 38 <unzip src="${basedir}/gsdl/packages/windows/expat/expat.zip" dest="${basedir}/gsdl/packages/windows/expat"/> 39 <unzip src="${basedir}/gsdl/packages/windows/gdbm/gdbm.zip" dest="${basedir}/gsdl/packages/windows/gdbm"/> 40 <unzip src="${basedir}/gsdl/packages/windows/stlport/stlport.zip" dest="${basedir}/gsdl/packages/windows/stlport"/> 53 41 </if> 54 42 </target> 55 <target name="tweak-configure-scripts">56 <addressedcall target="mgpp-add-static" />57 <addressedcall target="mg-add-static" />58 <addressedcall target="gs2buildextra-add-static" />59 </target>60 43 61 <target name=" dist-build-windows">44 <target name="get-winbin"> 62 45 <if><bool><istrue value="${execute}"/></bool> 63 <ant dir="greenstone3" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" target="build-windows" inheritAll="false"> 64 <property name="app.version" value="${version}"/> 65 <property name="branch.path" value="${branch.path}"/> 66 <property name="branch.revision" value="${branch.revision}"/> 67 </ant> 68 </if> 69 </target> 70 71 <target name="prepare-documentation"> 72 <if><bool><istrue value="${execute}"/></bool> 73 74 <mkdir dir="greenstone3/gsdl-manuals"/> 75 <svn> 76 <checkout url="${svn.root}/documentation/${branch.path}/manuals" destPath="greenstone3/gsdl-manuals/manuals" revision="${branch.revision}"/> 77 <checkout url="${svn.root}/documentation/${branch.path}/shared" destPath="greenstone3/gsdl-manuals/shared" revision="${branch.revision}"/> 78 </svn> 79 <javac srcdir="greenstone3/gsdl-manuals/shared" destdir="greenstone3/gsdl-manuals/shared" debug="on"><include name="*.java"/></javac> 80 <unzip src="greenstone3/gsdl-manuals/shared/fop.zip" dest="greenstone3/gsdl-manuals/shared"/> 81 82 <echo>Define Classpath</echo> 83 <path id="documentation.compile.classpath"> 84 <fileset dir="greenstone3/gsdl-manuals"> 85 <include name="**/*.jar"/> 86 </fileset> 87 <pathelement path="greenstone3/gsdl-manuals/shared"/> 88 <pathelement path="greenstone3/gsdl-manuals/manuals"/> 89 <pathelement path="greenstone3/gli/classes"/> 90 </path> 91 92 <echo>Apply XSLT</echo> 93 <java classname="org.apache.xalan.xslt.Process" classpathref="documentation.compile.classpath" fork="true"> 94 <jvmarg value="-DGSDLHOME=${basedir}/greenstone" /> 95 <arg value="-IN"/><arg file="greenstone3/gli/help/en/help.xml" /> 96 <arg value="-XSL"/><arg file="greenstone3/gsdl-manuals/manuals/processing/gen-gli-help-to-manual-chapter.xsl" /> 97 <arg value="-OUT"/><arg file="greenstone3/gsdl-manuals/manuals/xml-source/en/help-en.xml" /> 98 99 </java> 100 101 <echo>Run generate-pdf.bat</echo> 102 <exec dir="${basedir}\greenstone3/gsdl-manuals/manuals" executable="cmd"> 103 <arg value="/C" /> 104 <arg file="${basedir}/greenstone3/gsdl-manuals/manuals/generate-pdf.bat" /> 105 <arg value="u" /> 106 <arg value="en" /> 107 </exec> 46 47 <if> 48 <bool><not><available file="${basedir}/gsdl/bin/windows"/></not></bool> 49 <svn><export srcUrl="${svn.root}/other-projects/trunk/winbin/bin" destPath="${basedir}/gsdl/bin/windows" revision="${branch.revision}"/></svn> 50 </if> 108 51 109 52 </if> 110 53 </target> 111 54 55 <target name="insert-perl"> 56 <if><bool><istrue value="${execute}"/></bool> 57 <mkdir dir="${basedir}/gsdl/bin/windows"/> 58 <delete dir="${basedir}/gsdl/bin/windows/perl"/> 59 <unzip src="${wirk2.home}/resources/perl.zip" dest="${basedir}/gsdl/bin/windows"/> 60 </if> 61 </target> 112 62 63 <target name="compile-c-code"> 64 <if><bool><istrue value="${execute}"/></bool> 65 <copy file="${wirk2.home}/compile/compile.bat" todir="${basedir}/gsdl" overwrite="true"/> 66 <exec dir="${basedir}/gsdl" executable="${basedir}/gsdl/compile.bat"/> 67 68 <move file="${basedir}/gsdl/server.exe" todir="${basedir}/gsdl/bin/windows"/> 69 <move todir="${basedir}/gsdl/bin/windows"> 70 <fileset dir="${basedir}/gsdl/cgi-bin" includes="library.exe,oaiserver.exe"/> 71 </move> 113 72 73 </if> 74 </target> 75 76 <target name="build-demo-collection"> 77 <if><bool><istrue value="${execute}"/></bool> 78 <!-- the envs on these execs simulate the environment when you run setup.bat --> 79 <exec dir="${basedir}/gsdl" executable="${basedir}/gsdl/bin/windows/perl/bin/perl.exe"> 80 <arg line="bin\script\import.pl --removeold demo"/> 81 <env key="GSDLHOME" value="${basedir}/gsdl"/> 82 <env key="GSDLCOLLECTDIR" value="${basedir}/gsdl/collect"/> 83 <env key="GSDLOS" value="windows"/> 84 <env key="PATH" value="${basedir}\gsdl\bin\windows\perl\bin;${basedir}\gsdl\bin\windows;${basedir}\gsdl\bin\script"/> 85 </exec> 86 <exec dir="${basedir}/gsdl" executable="${basedir}/gsdl/bin/windows/perl/bin/perl.exe"> 87 <arg line="bin\script\buildcol.pl --removeold demo"/> 88 <env key="GSDLHOME" value="${basedir}/gsdl"/> 89 <env key="GSDLCOLLECTDIR" value="${basedir}/gsdl/collect"/> 90 <env key="GSDLOS" value="windows"/> 91 <env key="PATH" value="${basedir}\gsdl\bin\windows\perl\bin;${basedir}\gsdl\bin\windows;${basedir}\gsdl\bin\script"/> 92 </exec> 93 94 <delete dir="${basedir}/gsdl/collect/demo/index"/> 95 <move file="${basedir}/gsdl/collect/demo/building" tofile="${basedir}/gsdl/collect/demo/index"/> 96 </if> 97 </target> 98 114 99 </project> -
release-kits/wirk2/ant-scripts/create-distribution.xml
r15812 r16087 1 1 <?xml version="1.0" encoding="utf-8" ?> 2 3 <!--4 ..........................................................5 September 20076 Greenstone3 'release maker' script7 Oran Fry8 ..........................................................9 -->10 11 2 <project name="wirk3-create-distribution" default="create-distribution"> 12 13 3 14 4 <target name="create-distribution"> 15 5 <!-- create distribution --> 16 <addressedcall target="export-greenstone3" /> 17 <addressedcall target="dist-set-version-number-property" /> 18 <addressedcall target="create-distributions-1" /> 19 <addressedcall target="create-distributions-2" /> 20 <addressedcall target="create-distributions-3" /> 21 <addressedcall target="copy-over-build-xml" /> 22 <addressedcall target="insert-user-manual"/> 23 <addressedcall target="insert-compiled-binaries"/> 24 <addressedcall target="rename-build-xml-for-transit"/> 6 <addressedcall target="export-gsdl-gli-indexers" /> 7 <addressedcall target="dist-set-version" /> 8 <addressedcall target="drop-in-binaries" /> 9 <addressedcall target="drop-in-demo-collection" /> 10 <addressedcall target="compile-gli" /> 11 <!--<addressedcall target="create-gli-client-zip" />--> 12 <addressedcall target="tweak-files" /> 25 13 </target> 26 14 27 28 29 <!-- 30 31 second level targets 32 33 --> 34 35 <target name="export-greenstone3"> 15 <target name="export-gsdl-gli-indexers"> 36 16 <if><bool><istrue value="${execute}"/></bool> 37 <mkdir dir="distribution"/> 38 <delete dir="distribution/greenstone3"/> 17 18 <mkdir dir="distributions"/> 19 <delete dir="distributions/web"/> 39 20 <svn> 40 <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distribution/greenstone3" revision="${branch.revision}"/> 21 <export srcurl="${svn.root}/gsdl/${branch.path}" destPath="distributions/web"/> 22 <export srcurl="${svn.root}/gli/${branch.path}" destPath="distributions/web/gli"/> 23 <export srcurl="${svn.root}/indexers/${branch.path}" destPath="distributions/web/indexers"/> 41 24 </svn> 25 42 26 </if> 43 27 </target> 44 28 45 <target name="dist-set-version -number-property">29 <target name="dist-set-version"> 46 30 <if><bool><istrue value="${execute}"/></bool> 47 <rsr file="distribution/greenstone3/resources/java/global.properties.in" pattern="(.*)@gsdl3version@(.*)" replacement="$1${version}$2" /> 31 32 <echo level="info">Setting version in src/lib/gsdlconf.h</echo> 33 <rsr file="${basedir}/distributions/web/src/lib/gsdlconf.h" pattern="(#define GSDL_VERSION) ".*"" replacement="$1 "${version}"" /> 34 35 <echo level="info">Setting version in etc/VERSION</echo> 36 <rsr file="${basedir}/distributions/web/etc/VERSION" pattern="(gsdl version: ).*" replacement="$1${version}" /> 37 38 </if> 39 </target> 40 41 <target name="drop-in-binaries"> 42 <if><bool><istrue value="${execute}"/></bool> 43 <echo level="info">Dropping compiled binaries into distribution</echo> 44 <delete dir="${basedir}/distributions/web/bin/windows" /> 45 <copy todir="${basedir}/distributions/web/bin/windows"> 46 <fileset dir="${basedir}/gsdl/bin/windows" includes="**/*"/> 47 </copy> 48 48 </if> 49 49 </target> 50 50 51 <target name=" create-distributions-1">51 <target name="drop-in-demo-collection"> 52 52 <if><bool><istrue value="${execute}"/></bool> 53 <ant antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-1" inheritAll="false"> 54 <property name="app.version" value="${version}"/> 55 <property name="branch.path" value="${branch.path}"/> 56 </ant> 53 <echo level="info">Dropping rebuilt demo collection into distribution</echo> 54 <delete dir="${basedir}/distributions/web/collect/demo" /> 55 <copy todir="${basedir}/distributions/web/collect/demo"> 56 <fileset dir="${basedir}/gsdl/collect/demo" includes="**/*"/> 57 </copy> 58 </if> 59 </target> 60 61 <target name="compile-gli"> 62 <if><bool><istrue value="${execute}"/></bool> 63 64 <echo>Compiling gli...</echo> 65 <exec dir="${basedir}/distributions/web/gli" executable="${basedir}/distributions/web/gli/makegli.bat"/> 66 67 <echo>Creating jar...</echo> 68 <exec dir="${basedir}/distributions/web/gli" executable="${basedir}/distributions/web/gli/makejar.bat"/> 69 70 <echo>Cleaning up intermediate files...</echo> 71 <delete dir="${basedir}/distributions/web/gli/jar"/> 72 <delete dir="${basedir}/distributions/web/gli/classes/org"/> 73 74 <echo>Putting gli server jar in a better place</echo> 75 <move file="${basedir}/distributions/web/gli/GLIServer.jar" todir="${basedir}/distributions/web/bin/java" /> 76 57 77 </if> 58 78 </target> 59 79 60 <target name=" create-distributions-2">80 <target name="tweak-files"> 61 81 <if><bool><istrue value="${execute}"/></bool> 62 <ant antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-2" inheritAll="false">63 <property name="app.version" value="${version}"/>64 <property name="branch.path" value="${branch.path}"/>65 <property name="branch.revision" value="${branch.revision}"/>66 </ant>67 </if>68 </target>69 82 70 <target name="create-distributions-3"> 71 <if><bool><istrue value="${execute}"/></bool> 72 <ant antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-3" inheritall="false"> 73 <property name="app.version" value="${version}"/> 74 <property name="branch.path" value="${branch.path}"/> 75 </ant> 76 </if> 77 </target> 83 <echo level="info">Putting the COPYING file into distribution</echo> 84 <copy file="${wirk2.home}/resources/COPYING" tofile="${basedir}/distributions/web/COPYING" /> 78 85 79 <target name="copy-over-build-xml"> 80 <if><bool><istrue value="${execute}"/></bool> 81 <move file="distribution/greenstone3/modified-build.xml" tofile="distribution/greenstone3/build.xml"/> 82 </if> 83 </target> 86 <echo level="info">Removing signed gatherer</echo> 87 <delete file="${basedir}/distributions/web/bin/java/SignedGatherer.jar" /> 84 88 85 <target name="insert-user-manual"> 86 <if><bool><istrue value="${execute}"/></bool> 87 <copy file="greenstone3/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distribution/greenstone3/docs/manual/gs2_user_en.pdf"/> 88 </if> 89 </target> 90 91 <target name="insert-compiled-binaries"> 92 <if><bool><istrue value="${execute}"/></bool> 89 <echo level="info">Removing some unneeded stuff</echo> 90 <delete file="${basedir}/distributions/web/gli/.greenstonestore" /> 91 <delete file="${basedir}/distributions/web/gli/gli4gs3.sh" /> 92 <delete dir="${basedir}/distributions/web/bin/linux" /> 93 <delete><fileset dir="${basedir}/distributions/web" includes="*.bash,*.sh,*.csh,install-sh,configure,configure.in,config.sub,config.guess,config.h.in,configtest.pl,Makefile.in,aclocal.m4,acconfig.h,micotest.cpp,win32.mak,WIN32cfg.h,Install.txt"/></delete> 94 <delete><fileset dir="${basedir}/distributions/web/gli" includes="*.sh,*4gs3.bat"/></delete> 93 95 94 <delete dir="distribution/greenstone3/lib/jni"/>95 <copy todir="distribution/greenstone3/lib/jni"><fileset dir="greenstone3/lib/jni"/></copy>96 97 <delete dir="distribution/greenstone3/gs2build/bin/windows"/>98 <copy todir="distribution/greenstone3/gs2build/bin/windows"><fileset dir="greenstone3/gs2build/bin/windows"/></copy>99 100 <delete dir="distribution/greenstone3/gs2build/bin/java"/>101 <copy todir="distribution/greenstone3/gs2build/bin/java"><fileset dir="greenstone3/gs2build/bin/java"/></copy>102 103 </if>104 </target>105 106 <target name="rename-build-xml-for-transit">107 <if><bool><istrue value="${execute}"/></bool>108 <move file="distribution/greenstone3/build.xml" tofile="distribution/greenstone3/greenstone3-build.xml"/>109 96 </if> 110 97 </target> -
release-kits/wirk2/ant-scripts/create-installer.xml
r16079 r16087 1 1 <?xml version="1.0" encoding="utf-8" ?> 2 3 <!-- 4 .......................................................... 5 September 2007 6 Greenstone3 'release maker' script 7 Oran Fry 8 .......................................................... 9 --> 10 11 <project name="wirk3-create-installer" default="create-installer"> 2 <project name="wirk2-create-installer" default="create-installer"> 12 3 13 4 <target name="create-installer"> … … 20 11 21 12 <mkdir dir="${basedir}/installer"/> 22 <copy todir="${basedir}/installer" file="${wirk 3.home}/installer/antinstall-config.xml"/>23 <copy todir="${basedir}/installer" file="${wirk 3.home}/installer/build.xml"/>13 <copy todir="${basedir}/installer" file="${wirk2.home}/installer/antinstall-config.xml"/> 14 <copy todir="${basedir}/installer" file="${wirk2.home}/installer/build.xml"/> 24 15 <copy todir="${basedir}/installer/resources"> 25 <fileset dir="${wirk 3.home}/installer/resources-windows"/>26 <fileset dir="${wirk 3.home}/installer/resources-greenstone3"/>16 <fileset dir="${wirk2.home}/installer/resources-windows"/> 17 <fileset dir="${wirk2.home}/installer/resources-greenstone2"/> 27 18 </copy> 28 19 … … 54 45 55 46 <installer file="${basedir}/installer/greenstone-${version}-win32.jar" 56 57 58 59 60 antInstallLib="${wirk3.home}/bin/ant-installer/lib"61 antLib="${wirk3.home}/bin/ant-installer/antlib"62 63 64 47 compress="true" 48 extractType="NonExtractor" 49 installConfig="${basedir}/installer/antinstall-config.xml" 50 buildFile="${basedir}/installer/build.xml" 51 antInstallLib="${wirk2.home}/bin/ant-installer/lib" 52 antLib="${wirk2.home}/bin/apache-ant-1.6.5/lib" 53 validateConfig="true" 54 icons="bluecurve"> 55 65 56 <zipfileset dir="${basedir}/installer/resources" prefix="resources"><include name="**/*"/></zipfileset> 66 <zipfileset dir="${wirk3.home}/ant-scripts/tasks/orans"><include name="RegexSearchReplace.class"/></zipfileset> 67 68 <zipfileset dir="${basedir}/distribution/greenstone3" includes="*"/> 69 <zipfileset dir="${basedir}/distribution/greenstone3/bin" prefix="bin"><include name="**/*"/></zipfileset> 70 <zipfileset dir="${basedir}/distribution/greenstone3/docs" prefix="docs"><include name="**/*"/></zipfileset> 71 <zipfileset dir="${basedir}/distribution/greenstone3/gli" prefix="gli"><include name="**/*"/></zipfileset> 72 <zipfileset dir="${basedir}/distribution/greenstone3/gs2build" prefix="gs2build"><include name="**/*"/></zipfileset> 73 <zipfileset dir="${basedir}/distribution/greenstone3/lib" prefix="lib"><include name="**/*"/></zipfileset> 74 <zipfileset dir="${basedir}/distribution/greenstone3/web" prefix="web"><include name="**/*"/></zipfileset> 75 <zipfileset dir="${basedir}/distribution/greenstone3/packages" prefix="packages"><include name="**/*"/></zipfileset> 76 <zipfileset dir="${basedir}/distribution/greenstone3/resources" prefix="resources"><include name="**/*"/></zipfileset> 77 <zipfileset dir="${basedir}/distribution/greenstone3/winutil" prefix="winutil"><include name="**/*"/></zipfileset> 78 <zipfileset dir="${basedir}/distribution/greenstone3/src" prefix="src"><include name="**/*"/></zipfileset> 79 57 <zipfileset dir="${wirk2.home}/ant-scripts/tasks/orans"><include name="RegexSearchReplace.class"/></zipfileset> 58 <zipfileset dir="${basedir}/distributions/web" includes="**/*"/> 59 80 60 </installer> 81 82 61 83 62 </if> -
release-kits/wirk2/ant-scripts/init.xml
r15900 r16087 4 4 .......................................................... 5 5 September 2007 6 Greenstone 3'release maker' script6 Greenstone2 'release maker' script 7 7 Oran Fry 8 8 .......................................................... 9 9 --> 10 10 11 <project name="wirk 3-init">11 <project name="wirk2-init"> 12 12 13 13 <!-- classpath --> 14 14 <path id="project.classpath"> 15 <fileset dir="${wirk 3.home}/ant-scripts/tasks">15 <fileset dir="${wirk2.home}/ant-scripts/tasks"> 16 16 <include name="**/*.jar"/> 17 17 </fileset> 18 <fileset dir="${wirk 3.home}/lib">18 <fileset dir="${wirk2.home}/lib"> 19 19 <include name="*.jar"/> 20 20 </fileset> 21 <pathelement path="${wirk 3.home}/ant-scripts/tasks/orans"/>21 <pathelement path="${wirk2.home}/ant-scripts/tasks/orans"/> 22 22 <!-- antinstaller --> 23 <pathelement path="${wirk 3.home}/bin/ant-installer/lib/ant-installer-ext.jar"/>24 <pathelement path="${wirk 3.home}/bin/ant-installer/lib/ant-installer.jar"/>23 <pathelement path="${wirk2.home}/bin/ant-installer/lib/ant-installer-ext.jar"/> 24 <pathelement path="${wirk2.home}/bin/ant-installer/lib/ant-installer.jar"/> 25 25 </path> 26 26 … … 50 50 <property name="svn.root" value="http://svn.greenstone.org"/><!-- svn root --> 51 51 <property name="java.min.version" value="1.5.0_00"/><!-- the minimum java version we require end users to have --> 52 <property name="java.installer" value="jre-6u3-windows-i586-p-s.exe"/><!-- relative to WIRK 3_HOME/wrapper -->52 <property name="java.installer" value="jre-6u3-windows-i586-p-s.exe"/><!-- relative to WIRK2_HOME/wrapper --> 53 53 54 54 <!-- the version numbers of bundled things (entered manually to save us autodetecting; update as needed) --> … … 70 70 </bool> 71 71 72 <!-- version not set in build.properties, try get from repository --> 73 <setloglevel level="error"/> 74 <try> 75 <get src="${svn.root}/greenstone3/${branch.path}/version.properties" dest="${temp.file}"/> 76 <catch> 77 <echo level="error">Not set in build.properties or repository version.properties</echo> 78 <fail>Version number not set</fail> 79 </catch> 80 </try> 81 <setloglevel level="info"/> 72 <echo level="error">Not set in build.properties</echo> 73 <fail>Version number not set</fail> 82 74 83 <property file="${temp.file}"/>84 85 <if>86 <bool>87 <not><isset property="version"/></not>88 </bool>89 <echo level="error">version.properties exists, but doesn't set version string</echo>90 <fail>Version number not set</fail>91 75 </if> 92 93 <echo level="info">Taken from repository version.properties</echo>94 95 <else>96 <echo level="info">Taken from build.properties</echo>97 </else>98 99 </if>100 76 101 77 <echo level="info">Version number: ${version}</echo> -
release-kits/wirk2/ant-scripts/wrap.xml
r15900 r16087 1 1 <?xml version="1.0" encoding="utf-8" ?> 2 3 <!--4 ..........................................................5 September 20076 Greenstone3 'release maker' script7 Oran Fry8 ..........................................................9 -->10 11 2 <project name="wirk3-wrap" default="wrap"> 12 3 … … 25 16 <!--create a directory to build the wrapped installer in --> 26 17 <mkdir dir="${basedir}/wrapped-installer/build"/> 27 18 28 19 <!-- copy source files --> 29 <copy todir="${basedir}/wrapped-installer/build" file="${wirk 3.home}/wrapper/wrapper.cpp"/>30 <copy todir="${basedir}/wrapped-installer/build" file="${wirk 3.home}/search4j/libsearch4j.cpp"/>31 <copy todir="${basedir}/wrapped-installer/build" file="${wirk 3.home}/search4j/libsearch4j.h"/>20 <copy todir="${basedir}/wrapped-installer/build" file="${wirk2.home}/wrapper/wrapper.cpp"/> 21 <copy todir="${basedir}/wrapped-installer/build" file="${wirk2.home}/search4j/libsearch4j.cpp"/> 22 <copy todir="${basedir}/wrapped-installer/build" file="${wirk2.home}/search4j/libsearch4j.h"/> 32 23 33 24 </if> -
release-kits/wirk2/bin/make.bat
r15092 r16087 1 cl -GX ..\src\wirk 3.cpp -o wirk3.exe2 del wirk 3.obj1 cl -GX ..\src\wirk2.cpp -o wirk2.exe 2 del wirk2.obj -
release-kits/wirk2/installer/antinstall-config.xml
r16079 r16087 7 7 debug="false" 8 8 lookAndFeel="org.tp23.jgoodies.plaf.plastic.PlasticXPLookAndFeel" 9 name="Greenstone 3@version@ Installer"9 name="Greenstone@version@ Installer" 10 10 windowIcon="/resources/icon.png" 11 11 defaultImageResource="/resources/header.png" … … 18 18 19 19 <!-- type="license" shows a license page to click through --> 20 <page type="license" name="license" resource="/ LICENSE.txt" displayText="" />20 <page type="license" name="license" resource="/COPYING" displayText="" /> 21 21 22 22 <!-- install destination page --> … … 35 35 <comment name="choose-components"/> 36 36 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="" /> 40 <target target="install-ant" defaultValue="true" displayText="" /> 41 <target target="install-source-code" defaultValue="false" displayText="" /> 37 <target target="install-core-components" defaultValue="true" force="true" displayText="" /> 38 <target target="install-source-code" defaultValue="false" displayText="" /> 42 39 43 40 </page> 44 41 45 <page type="input" name="tomcat-config" ifProperty="(${install-tomcat}==true)" displayText=""> 46 47 <text property="tomcat.server" defaultValue="localhost" displayText=""/> 48 <text property="tomcat.port" defaultValue="8080" displayText=""/> 49 <text property="tomcat.shutdown.port" defaultValue="8005" displayText=""/> 50 51 </page> 52 53 <page type="progress" name="progress" showTargets="false" target="cleanuptarget" displayText=""> 54 </page> 42 <page type="progress" name="progress" showTargets="false" target="cleanuptarget" displayText=""></page> 55 43 56 44 </installer> -
release-kits/wirk2/installer/build.xml
r15812 r16087 4 4 --> 5 5 6 <project name="Installation" default="" basedir="${basedir}">6 <project name="Installation"> 7 7 8 8 <!-- this is required to pick up the properties generated during the install pages --> … … 15 15 <!-- custom tasks --> 16 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 17 20 < !-- create a local installDir String -->21 <path id="installDir.path">22 <pathelement location="${installDir}"/>23 </path> 24 <property name="installDir.local" refid="installDir.path"/> 25 26 27 <target name="install-core-components">28 < !-- load windows properties -->29 < winprops/>18 <condition property="bundled.java.exists"> 19 <available file="../@java.extracted@/bin/java"/> 20 </condition> 21 22 23 <target name="install-core-components" depends=""> 24 25 <echo>basedir: ${basedir}</echo> 26 <echo>installDir: ${installDir}</echo> 27 <echo>antinstaller.jar: ${antinstaller.jar}</echo> 30 28 31 29 <!-- create the installation directory --> 32 30 <echo message="Creating Installation directory"/> 33 <echo>basedir: ${basedir}</echo>34 <echo>installDir: ${installDir}</echo>35 <echo>antinstaller.jar: ${antinstaller.jar}</echo>36 31 <mkdir dir="${installDir}"/> 37 32 38 <!-- install binaries --> 33 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 39 39 <echo message="Installing Executable Binaries (bin)"/> 40 40 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="bin/**/*"/></patternset></unzip> 41 41 <echo/> 42 42 43 <echo message="Installing Documentation (docs)"/>44 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name=" docs/**/*"/></patternset></unzip>43 <echo message="Installing CGI Binaries (cgi-bin)"/> 44 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="cgi-bin/**/*"/></patternset></unzip> 45 45 <echo/> 46 46 47 <echo message="Installing GLI (gli)"/>48 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name=" gli/**/*"/></patternset></unzip>47 <echo message="Installing Config Folder (etc)"/> 48 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="etc/**/*"/></patternset></unzip> 49 49 <echo/> 50 50 51 <echo message="Installing gs2build (gs2build)"/>52 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name=" gs2build/**/*"/></patternset></unzip>51 <echo message="Installing mappings (mappings)"/> 52 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="mappings/**/*"/></patternset></unzip> 53 53 <echo/> 54 54 55 <echo message="Installing Libraries (lib)"/>56 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name=" lib/**/*"/></patternset></unzip>55 <echo message="Installing Packages (packages)"/> 56 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="packages/**/*"/></patternset></unzip> 57 57 <echo/> 58 58 59 <echo message="Installing Web Content (web)"/>60 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name=" web/**/*"/></patternset></unzip>59 <echo message="Installing Images (images)"/> 60 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="images/**/*"/></patternset></unzip> 61 61 <echo/> 62 62 63 <echo message="Installing Resources (resources)"/>64 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name=" resources/**/*"/></patternset></unzip>63 <echo message="Installing Perl Libraries (perllib)"/> 64 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="perllib/**/*"/></patternset></unzip> 65 65 <echo/> 66 66 67 <echo message="Installing Windows Utility Commands (winutil)"/>68 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name=" winutil/**/*"/></patternset></unzip>67 <echo message="Installing Indexers (indexers)"/> 68 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="indexers/**/*"/></patternset></unzip> 69 69 <echo/> 70 70 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/> 71 78 72 79 <echo message="Installing Top Level Files"/> 73 80 <unzip src="${antinstaller.jar}" dest="${installDir}"> 74 81 <patternset> 75 <include name="greenstone3-build.xml"/> 76 <include name="build.properties"/> 77 <include name="gs3-server.bat"/> 78 <include name="gs3-setup.bat"/> 79 <include name="LICENSE.txt"/> 80 <include name="README.txt"/> 81 <include name="server.jar"/> 82 <include name="COPYING"/> 83 <include name="setup.bat"/> 84 <include name="server.exe"/> 82 85 </patternset> 83 86 </unzip> 84 87 <echo/> 85 86 <!-- rename greenstone3-build.xml back to build.xml -->87 <move file="${installDir}/greenstone3-build.xml" tofile="${installDir}/build.xml" overwrite="true"/>88 89 <!-- change the tomcat ports in build.properties -->90 <echo message="Changing tomcat ports in build.properties"/>91 <rsr file="${installDir}/build.properties" pattern="(tomcat.port[=:]).*" replacement="$1${tomcat.port}" />92 <rsr file="${installDir}/build.properties" pattern="(tomcat.shutdown.port[=:]).*" replacement="$1${tomcat.shutdown.port}" />93 <echo message="Changing tomcat ports in resources/tomcat/server.xml"/>94 <copy file="${installDir}/resources/tomcat/server.xml" tofile="${installDir.local}/packages/tomcat/conf/server.xml" overwrite="true"/>95 96 <!-- set gsdlhome in gs2build setup.bat -->97 <echo message="Setting %GSDLHOME% in gs2build\setup.bat"/>98 <rsr file="${installDir}/gs2build/setup.bat" pattern="@gsdlhome@" replacement="${installDir.local}\gs2build" />99 100 101 <!-- copy the greenstone3.xml file to tomcat -->102 <echo message="Copying greenstone3.xml to tomcat directory"/>103 <copy file="${installDir}/resources/tomcat/greenstone3.xml" tofile="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" overwrite="true"/>104 <rsr file="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" pattern="@gsdl3webhome@" replacement="${installDir.local}\web" />105 106 <!-- set up global properties -->107 <echo message="Setting up global properties"/>108 <copy file="${installDir}/resources/java/global.properties.in" tofile="${installDir}/web/WEB-INF/classes/global.properties" overwrite="true"/>109 <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="@gsdl3home@" replacement="${installDir.local}\web" />110 <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="@tomcat.server@" replacement="${tomcat.server}" />111 <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="@tomcat.port@" replacement="${tomcat.port}" />112 113 <!-- set up log4j properties-->114 <echo message="Setting up log4j properties"/>115 <copy file="${installDir}/resources/java/log4j.properties.in" tofile="${installDir}/web/WEB-INF/classes/log4j.properties" overwrite="true"/>116 <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="@gsdl3home@" replacement="${installDir.local}\web" />117 88 118 89 <!-- delete unneeded files --> 90 <echo message="Deleting some extraneous files"/> 119 91 <delete dir="${installDir}/resources/icons"/> 120 92 <delete file="${installDir}/resources/*.png"/> 93 94 <echo message="Finished"/> 121 95 122 96 </target> 123 97 124 98 <!-- Source --> 125 <target name="install-source-code" >99 <target name="install-source-code" depends=""> 126 100 <echo message="Installing Source Code (src)"/> 127 101 <mkdir dir="${installDir}/src"/> 128 <unzip src="${antinstaller.jar}" dest="${installDir}"> 129 <patternset> 130 <include name="src/**/*"/> 131 </patternset> 132 </unzip> 102 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="src/**/*"/></patternset></unzip> 133 103 </target> 134 104 135 <target name="install-tomcat">136 137 <echo message="Installing Apache Tomcat"/>138 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="packages/tomcat/**/*"/></patternset></unzip>139 140 <!-- change the tomcat ports in tomcats server.xml -->141 <rsr file="${installDir}/packages/tomcat/conf/server.xml" pattern="@server@" replacement="${tomcat.server}" />142 <rsr file="${installDir}/packages/tomcat/conf/server.xml" pattern="@port@" replacement="${tomcat.port}" />143 <rsr file="${installDir}/packages/tomcat/conf/server.xml" pattern="@shutdown-port@" replacement="${tomcat.shutdown.port}" />144 145 </target>146 <target name="install-ant">147 <echo message="Installing Apache Ant"/>148 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="packages/ant/**/*"/></patternset></unzip>149 </target>150 151 105 <target name="cleanuptarget"> 152 106 </target> 153 107 154 <target name="install-start-menu-shortcuts">155 108 156 <mkdir dir="${win32.personal.programs_menu}\Greenstone-@version@\documentation"/>157 158 159 <shortcut160 file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone3 Server.lnk"161 execute="${installDir}\gs3-server.bat"162 workingDirectory="${installDir}"163 iconFile="${installDir}\resources\images\gs3.ico"164 iconIndex="0" />165 166 <shortcut167 file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone Librarian Interface (GLI).lnk"168 execute="${installDir}\gli\gli4gs3.bat"169 workingDirectory="${installDir}\gli"170 iconFile="${installDir}\resources\images\gs3.ico"171 iconIndex="0" />172 173 <shortcut174 file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone Editor for Metadata Sets (GEMS).lnk"175 execute="${installDir}\gli\gems4gs3.bat"176 workingDirectory="${installDir}\gli"177 iconFile="${installDir}\resources\images\gs3.ico"178 iconIndex="0" />179 180 <shortcut181 file="${win32.personal.programs_menu}\Greenstone-@version@\documentation\README.lnk"182 execute="${installDir}\README.txt" />183 184 <shortcut185 file="${win32.personal.programs_menu}\Greenstone-@version@\documentation\Greenstone3 Users' Guide.lnk"186 execute="${installDir}\documentation\manual\manual.pdf" />187 188 <shortcut189 file="${win32.personal.programs_menu}\Greenstone-@version@\documentation\Greenstone2 Users' Guide.lnk"190 execute="${installDir}\documentation\manual\gs2_user_en.pdf" />191 192 193 </target>194 195 109 </project> -
release-kits/wirk2/src/wirk2.cpp
r16079 r16087 37 37 38 38 //set the classpath 39 //WIRK3_HOME + "\\ant-scripts\\tasks\\orangevolt\\roxes-win32forjava-1.1.1.jar;" + WIRK3_HOME + "\\ant-scripts\\tasks\\orangevolt\\orangevolt-ant-tasks-1.3.8.jar;" + 40 classpath = pwd + "\\installer;" + JAVA_HOME + "\\lib\\tools.jar;" + WIRK3_HOME + "\\lib\\serializer.jar;" + WIRK3_HOME + "\\lib\\xalan.jar;" + WIRK3_HOME + "\\lib\\xercesImpl.jar;" + WIRK3_HOME + "\\lib\\xml-apis.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-antlr.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-bcel.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-bsf.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-log4j.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-oro.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-regexp.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-resolver.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-commons-logging.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-commons-net.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-icontract.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-jai.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-javamail.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-jdepend.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-jmf.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-jsch.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-junit.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-launcher.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-netrexx.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-nodeps.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-starteam.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-stylebook.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-swing.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-trax.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-vaj.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-weblogic.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-xalan1.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-xslp.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\xercesImpl.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\xml-apis.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\ai-icons-amaranth.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\ai-icons-bluecurve.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\ai-icons-crystalsvg.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\ai-icons-eclipse.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\ai-icons-krystaline.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\ant-installer-ext.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\ant-installer.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\jgoodies-edited-1_2_2.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\xercesImpl.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\xml-apis.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\classes"; 39 classpath = pwd + "\\installer;" + JAVA_HOME + "\\lib\\tools.jar;" + WIRK2_HOME + "\\lib\\serializer.jar;" + WIRK2_HOME + "\\lib\\xalan.jar;" + WIRK2_HOME + "\\lib\\xercesImpl.jar;" + WIRK2_HOME + "\\lib\\xml-apis.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-antlr.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-bcel.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-bsf.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-log4j.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-oro.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-regexp.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-resolver.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-commons-logging.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-commons-net.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-icontract.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-jai.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-javamail.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-jdepend.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-jmf.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-jsch.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-junit.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-launcher.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-netrexx.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-nodeps.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-starteam.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-stylebook.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-swing.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-trax.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-vaj.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-weblogic.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-xalan1.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-xslp.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\xercesImpl.jar;" + WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\lib\\xml-apis.jar;" + WIRK2_HOME + "\\bin\\ant-installer\\lib\\ai-icons-amaranth.jar;" + WIRK2_HOME + "\\bin\\ant-installer\\lib\\ai-icons-bluecurve.jar;" + WIRK2_HOME + "\\bin\\ant-installer\\lib\\ai-icons-crystalsvg.jar;" + WIRK2_HOME + "\\bin\\ant-installer\\lib\\ai-icons-eclipse.jar;" + WIRK2_HOME + "\\bin\\ant-installer\\lib\\ai-icons-krystaline.jar;" + WIRK2_HOME + "\\bin\\ant-installer\\lib\\ant-installer-ext.jar;" + WIRK2_HOME + "\\bin\\ant-installer\\lib\\ant-installer.jar;" + WIRK2_HOME + "\\bin\\ant-installer\\lib\\jgoodies-edited-1_2_2.jar;" + WIRK2_HOME + "\\bin\\ant-installer\\lib\\xercesImpl.jar;" + WIRK2_HOME + "\\bin\\ant-installer\\lib\\xml-apis.jar;" + WIRK2_HOME + "\\bin\\ant-installer\\classes"; 41 40 putenv( ("CLASSPATH=" + classpath).c_str() ); 42 41 … … 46 45 47 46 //create the command 48 command = WIRK 3_HOME + "\\bin\\apache-ant-1.6.5\\bin\\ant.bat -f " + WIRK3_HOME + "\\ant-scripts\\build.xml -Dwirk3.home=" + WIRK3_HOME;47 command = WIRK2_HOME + "\\bin\\apache-ant-1.6.5\\bin\\ant.bat -f " + WIRK2_HOME + "\\ant-scripts\\build.xml -Dwirk2.home=" + WIRK2_HOME; 49 48 //pass on the arguments 50 49 string a; … … 68 67 } else if ( a.compare("-from") == 0 ) { 69 68 command = command + " -Dresume.from=" + argv[++i]; 70 //from=`echo $2 | sed 's/compile/1/g' | sed 's/create-distributions/2/g' | sed 's/create-installer/3/g' | sed 's/wrap/4/g'`71 //toexec=$toexec$from72 69 } else if ( a.compare("-to") == 0 ) { 73 70 command = command + " -Dresume.to=" + argv[++i]; 74 //to=`echo $2 | sed 's/compile/1/g' | sed 's/create-distributions/2/g' | sed 's/create-installer/3/g' | sed 's/wrap/4/g'`75 //toexec=$toexec$to76 71 } else { 77 72 command = command + " " + a; … … 95 90 << "O-----------------------------------------O" << endl 96 91 << "| |" << endl 97 << "| WiRK 3|" << endl98 << "| Windows Release Kit for Greenstone 3|" << endl92 << "| WiRK2 |" << endl 93 << "| Windows Release Kit for Greenstone2 |" << endl 99 94 << "| |" << endl 100 95 << "O-----------------------------------------O" << endl
Note:
See TracChangeset
for help on using the changeset viewer.