Changeset 35317 for main/trunk


Ignore:
Timestamp:
2021-08-21T16:46:31+12:00 (3 years ago)
Author:
davidb
Message:

Updated the version of ant minimum to be 1.8.2. This is to be able to use the 'force=true' attribute in the file <copy> task; also changed some chmod permissions from 644 to 664. This is to make the process of running Greenstone3 as a service (e.g. user=www-data, group=www-data) simplier. If setting things up this way it will also probably help to put the user that is compiling up and installing greenstone in the www-data group also

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/build.xml

    r35312 r35317  
    1313      <echo>os.version: ${os.version}</echo>
    1414  -->
    15  
    16   <antversion property="ant.version.running" />
    17   <fail message="Minimum of Ant v1.7.1 required to operate Greenstone3 (detected version ${ant.version.running})">
    18     <condition>
    19       <not><antversion atleast="1.7.1" /></not>
     15
     16  <!-- Need to be using ant v1.8.2+ to support the 'force="true"' attribute in the file <copy> flag -->
     17  <antversion property="ant.version.running" /> 
     18  <fail message="Minimum of Ant v1.8.2 required to operate Greenstone3 (detected version ${ant.version.running})">
     19    <condition>     
     20      <not><antversion atleast="1.8.2" /></not>
    2021    </condition>
    2122  </fail>
     
    17601761    <filter token="disable.collection.building" value="${disable.collection.building}"/>
    17611762    <copy file="${basedir}/resources/cgi/gsdl3site.cfg.in" tofile="${web.writablehome}/WEB-INF/cgi/gsdl3site.cfg" filtering="true" overwrite="true"/>
    1762     <copy file="${basedir}/resources/web/global.properties.in" tofile="${web.writableclasses}/global.properties" filtering="true" overwrite="true"/>
    1763     <copy file="${basedir}/resources/web/log4j.properties.in" tofile="${web.writableclasses}/log4j.properties" filtering="true" overwrite="true"/>
     1763    <copy file="${basedir}/resources/web/global.properties.in" tofile="${web.writableclasses}/global.properties" filtering="true" overwrite="true" force="true"/>
     1764    <copy file="${basedir}/resources/web/log4j.properties.in" tofile="${web.writableclasses}/log4j.properties" filtering="true" overwrite="true" force="true"/>
    17641765    <if>
    17651766      <bool><istrue value="${gsdl3home.isreadonly}"/></bool>
     
    17671768      <rsr verbosity="1" file="${web.writableclasses}/global.properties" pattern="^#gsdl3\.(writable{1})?home" replacement="gsdl3.$1home" />
    17681769    </if>
    1769     <chmod file="${web.writableclasses}/global.properties" perm="644"/>
    1770     <chmod file="${web.writableclasses}/log4j.properties" perm="644"/>
    1771 
    1772     <copy file="${basedir}/resources/iiif/cantaloupe.properties.in" tofile="${basedir}/cantaloupe.properties" filtering="true" overwrite="true"/>
    1773     <chmod file="${basedir}/cantaloupe.properties" perm="644"/>
     1770    <chmod file="${web.writableclasses}/global.properties" perm="664"/>
     1771    <chmod file="${web.writableclasses}/log4j.properties" perm="664"/>
     1772
     1773    <copy file="${basedir}/resources/iiif/cantaloupe.properties.in" tofile="${basedir}/cantaloupe.properties" filtering="true" overwrite="true" force="true"/>
     1774    <chmod file="${basedir}/cantaloupe.properties" perm="664"/>
    17741775  </target>
    17751776
     
    24382439    </exec>
    24392440
    2440     <copy file="${basedir}/ext/solr/solr-tomcat-context.xml.in" tofile="${packages.home}/tomcat/conf/Catalina/localhost/solr.xml" overwrite="true">
     2441    <copy file="${basedir}/ext/solr/solr-tomcat-context.xml.in" tofile="${packages.home}/tomcat/conf/Catalina/localhost/solr.xml" overwrite="true" force="true">
    24412442      <filterset>
    24422443    <filter token="solr.context" value="${solr.context}"/>
     
    24512452        <copy file="${basedir}/resources/tomcat/greenstone3.xml.in" tofile="${basedir}/resources/tomcat/${greenstone.context}.xml.in" overwrite="true"/>
    24522453    </if>
    2453     <copy file="${basedir}/resources/tomcat/${greenstone.context}.xml.in" tofile="${packages.home}/tomcat/conf/Catalina/localhost/${greenstone.context}.xml" overwrite="true">
     2454    <copy file="${basedir}/resources/tomcat/${greenstone.context}.xml.in" tofile="${packages.home}/tomcat/conf/Catalina/localhost/${greenstone.context}.xml" overwrite="true" force="true">
    24542455      <filterset>
    24552456        <filter token="gsdl3webhome" value="${web.home}"/>
Note: See TracChangeset for help on using the changeset viewer.