Ignore:
Timestamp:
2021-10-19T13:32:17+13:00 (3 years ago)
Author:
davidb
Message:

Further changes after testing. The previous change to this file did include the ant.jar and ant-launcher.jar files, this was insufficient to allow greenstone.jar to auto run as java -jar greenstone.jar. This is because greenstone.jar could not access the class files within ant.jar and ant-launcher.jar. Using <zipgroupfileset> element means to contents of the specified jar files are inlcuded in the jar file being generated

File:
1 edited

Legend:

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

    r35629 r35636  
    206206               an instantiated object instance of FileSet.  In the case of 'antlLib' in the ant-istaller taskdef, this is
    207207               exactly what triggered by specifying this attribute is specified.  The workaround is to create the
    208                fileset explicitly below: done through <fileset>, this form can have multiple values in it.
     208               fileset explicitly below: done through <zipgroupfileset>, this form can have multiple values in it
     209               and has the additional property of unzipping/unjarring the specificed jar files
    209210          -->
    210211
    211           <fileset dir="${rk.home}/shared/core/ant-installer/lib">
    212             <include name="ant.jar" />
    213             <include name="ant-launcher.jar" />
    214           </fileset>
    215          
    216           <fileset dir="installer/classes" includes="**/*" />
    217           <fileset dir="components" includes="*.lzma"/>
     212          <zipgroupfileset dir="${ant.home}/lib" includes="ant.jar,ant-launcher.jar" excludes="META-INF/*.SF"/>
     213
     214          <zipfileset dir="installer/classes" includes="**/*" />
     215          <zipfileset dir="components" includes="*.lzma"/>
    218216         
    219217        </installer>
     
    246244              See longer note on the topic in the target before this one
    247245          -->
    248          
    249           <fileset dir="${ant.home}/lib">
    250             <include name="ant.jar" />
    251             <include name="ant-launcher.jar" />
    252           </fileset>
    253 
    254           <fileset dir="installer/classes" includes="**/*" />
     246          <zipgroupfileset dir="${ant.home}/lib" includes="ant.jar,ant-launcher.jar" excludes="META-INF/*.SF"/>
     247
     248          <zipfileset dir="installer/classes" includes="**/*" />
    255249        </installer>
    256250       
Note: See TracChangeset for help on using the changeset viewer.