Ignore:
Timestamp:
2010-10-26T15:12:23+13:00 (14 years ago)
Author:
sjm84
Message:

The uninstaller has been modified so that it no longer will delete files or folders in the top-level directory that do not belong to Greenstone

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/release-kits/shared/core/ant-scripts/shared.xml

    r22490 r23210  
    8686        <typedef name="rsr" classname="org.greenstone.anttasks.RegexSearchReplace" classpathref="project.classpath"/>
    8787        <typedef name="dcff" classname="org.greenstone.anttasks.DeleteChunkFromFile" classpathref="project.classpath"/>
     88        <typedef name="pstf" classname="org.greenstone.anttasks.PatternSetToFile" classpathref="project.classpath"/>
    8889        <typedef name="rsplit" classname="org.greenstone.anttasks.SplitResource" classpathref="project.classpath"/>
    8990        <typedef name="get-property-value" classname="org.greenstone.anttasks.GetPropertyValue" classpathref="project.classpath"/>
     
    238239        <!-- create working build directory -->
    239240        <mkdir dir="compiled/uninstaller/build/resources" />
    240 
     241        <mkdir dir="compiled/uninstall"/>
     242       
    241243        <!-- copile to build -->
    242244        <javac
     
    252254        <!-- jar it all up -->
    253255        <jar
    254             destfile="compiled/uninst.jar"
     256            destfile="compiled/uninstall/uninst.jar"
    255257            manifest="${rk.home}/shared/core/uninstaller/manifest.mf"
    256258            basedir="compiled/uninstaller/build" />
     
    260262
    261263        <!-- put the associated script in place -->
    262         <copy file="${rk.home}/shared/core/uninstaller/Uninstall.${os.script.format}" todir="compiled"/>
     264        <copy file="${rk.home}/shared/core/uninstaller/Uninstall.${os.script.format}" todir="compiled/uninstall"/>
    263265
    264266    </target>
     
    377379    <!-- target to archive and compress a given component -->
    378380    <target name="create-component">
    379       <mkdir dir="components"/>
     381        <mkdir dir="components"/>
    380382     
    381       <zip destfile="components/${component}.comp" compress="false">
    382         <zipfileset dir="compiled">
    383           <patternset refid="greenstone${version.major}.${component}.component"/>
    384         </zipfileset>
    385       </zip>
     383        <pstf dir="compiled" outfile="compiled/uninstall/${component}.uninstall">
     384            <patternset refid="greenstone${version.major}.${component}.component"/>
     385        </pstf>
     386     
     387        <zip destfile="components/${component}.comp" compress="false">
     388            <zipfileset dir="compiled">
     389                <patternset refid="greenstone${version.major}.${component}.component"/>
     390            </zipfileset>
     391        </zip>
    386392   
    387       <!-- windows -->
    388       <if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
     393        <!-- windows -->
     394        <if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
    389395        <exec executable="${rk.home}/shared/windows/7za/7za.exe" dir="components"><arg line="a -t7z -mx=9 ${component}.lzma ${component}.comp"/></exec>
    390396       
Note: See TracChangeset for help on using the changeset viewer.