Ignore:
Timestamp:
2009-04-09T10:08:46+12:00 (15 years ago)
Author:
oranfry
Message:

changing the way the release kits make the greenstone2 distribution: instead of starting from a fresh export of greenstone, start from a copy of the compiled working copy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/wirk2/ant-scripts/create-distribution.xml

    r18870 r18929  
    44    <target name="create-distribution">
    55
    6         <antcall target="export-gsdl-gli"><param name="dest" value="distributions/web"/></antcall>
    7         <antcall target="drop-in-docs"><param name="gsdl.basedir" value="distributions/web"/></antcall>
    8         <antcall target="gsdl-set-version-numbers"><param name="gsdl.basedir" value="${basedir}/distributions/web"/></antcall>
    9         <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/web/gli"/></antcall>
     6        <antcall target="copy-compiled-to-dist"/> <!-- from init -->
     7        <antcall target="dist-clean-sourcecode"/> <!-- from rk2-targets -->
     8       
    109        <antcall target="insert-uninstaller"><param name="script-format" value="bat"/></antcall> <!-- from rk2-targets -->
    1110        <antcall target="dist-unzip-packages"/>
    12         <antcall target="drop-in-binaries" />
    13         <antcall target="drop-in-demo-collection" />
    14         <!--Don't need because server.exe takes care of the gsdlhome path now-->
    15         <!--<antcall target="drop-in-misc" />-->
    16         <antcall target="compile-gli" />
     11        <antcall target="copy-server"/>
     12       
    1713        <antcall target="remove-unneeded-files" />
     14        <antcall target="strip-svn-dirs"><param name="dir" value="${basedir}/distributions/web"/></antcall>
    1815        <antcall target="create-needed-empty-files"><param name="gsdl.basedir" value="distributions/web"/></antcall>
    1916
     
    2219    </target>
    2320
    24     <target name="drop-in-binaries">
    25         <echo level="info">Dropping compiled binaries into distribution</echo>
    26         <delete dir="${basedir}/distributions/web/bin/windows" />
    27         <copy todir="${basedir}/distributions/web/bin/windows">
    28             <fileset dir="${basedir}/compiled/bin/windows" includes="**/*"/>
    29         </copy>
    30         <copy todir="distributions/web" file="compiled/bin/windows/server.exe"/>
    31         <copy todir="distributions/web/cgi-bin/library" file="compiled/cgi-bin/library.cgi"/>
    32         <copy todir="distributions/web/cgi-bin/oaiserver" file="compiled/cgi-bin/oaiserver.cgi"/>
    33        
    34         <echo level="info">Dropping LuceneWrapper.jar in place</echo>
    35         <copy file="${basedir}/compiled/bin/java/LuceneWrapper.jar" todir="${basedir}/distributions/web/bin/java" />
    36     </target>
    37 
    38     <target name="drop-in-demo-collection">
    39         <echo level="info">Dropping rebuilt demo collection into distribution</echo>
    40         <delete dir="${basedir}/distributions/web/collect/demo" />
    41         <copy todir="${basedir}/distributions/web/collect/demo">
    42             <fileset dir="${basedir}/compiled/collect/demo" includes="**/*"/>
    43         </copy>
    44     </target>
    45 
    46     <target name="drop-in-misc">
    47         <echo level="info">Putting the default llssite.cfg at the root of the distribution</echo>
    48         <copy todir="${basedir}/distributions/web" file="${wirk2.home}/resources/llssite.cfg" overwrite="true"/>
    49     </target>
    50    
    51     <target name="compile-gli">
    52         <echo>Compiling gli...</echo>
    53         <exec dir="${basedir}/distributions/web/gli" executable="${basedir}/distributions/web/gli/makegli.bat"/>
    54        
    55         <echo>Creating jar...</echo>
    56         <exec dir="${basedir}/distributions/web/gli" executable="${basedir}/distributions/web/gli/makejar.bat"/>
    57        
    58         <echo>Cleaning up intermediate files...</echo>
    59         <delete dir="${basedir}/distributions/web/gli/jar"/>
    60         <delete dir="${basedir}/distributions/web/gli/classes/org"/>
    61        
    62         <echo>Putting gli server jar in a better place</echo>
    63         <move file="${basedir}/distributions/web/gli/GLIServer.jar" todir="${basedir}/distributions/web/bin/java" />
    64     </target>
    65 
    6621    <target name="remove-unneeded-files">
     22        <delete dir="distributions/web/uninstaller"/>
    6723        <delete file="${basedir}/distributions/web/gli/.greenstonestore" />
    6824        <delete dir="${basedir}/distributions/web/bin/linux" />
     
    9147        <delete file="${basedir}/distributions/web/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz"/>
    9248    </target>
     49
     50    <target name="copy-server">
     51        <copy file="distributions/web/bin/windows/server.exe" tofile="distributions/web/server.exe"/>
     52    </target>
    9353   
    9454</project>
Note: See TracChangeset for help on using the changeset viewer.