Changeset 35628 for main/trunk


Ignore:
Timestamp:
2021-10-17T14:15:57+13:00 (3 years ago)
Author:
davidb
Message:

Changed to more carefully set/check VisualStudioVersion. When not set, the way it was previously written it defaulted to passing on the literal characters '${env...}' which produced an nmake error

File:
1 edited

Legend:

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

    r35620 r35628  
    11<?xml version="1.0"?>
    22<!-- ======================================================================
    3      March 2005                                                   
    4 
    53     Greenstone3 build and install script
    64                 
    7      kjdon                                                               
     5     kjdon, anu, davidb
    86     ====================================================================== -->
    97<project name="greenstone3" default="usage" basedir=".">
     
    133131  </if>
    134132
     133
     134  <if>
     135    <bool><isset property="env.VisualStudioVersion"/></bool>
     136    <property name="visualstudio.version" value="${env.VisualStudioVersion}"/>
     137    <else>
     138      <!-- possible that earlier versions of VS don't set this, so default to VS13 to trigger iconv-PRE-VS14.zip -->
     139      <property name="visualstudio.version" value="13.0"/>
     140    </else>
     141  </if>
     142 
    135143  <!-- Check for whether tomcat is to allow symlinks or not. This should always be false
    136144       for Windows. And ideally also for any other OS with a case insensitive filesystem, but
     
    37453753      <arg value="/f"/>
    37463754      <arg value="win32.mak"/>
    3747       <arg value="VISUAL_STUDIO_VERSION=${env.VisualStudioVersion}"/>     
     3755      <arg value="VISUAL_STUDIO_VERSION=${visualstudio.version}"/>     
    37483756      <arg value="GSDLHOME=${gs2build.home}"/>
    37493757      <arg value="ENABLE_JNI=${gs2.windows.enablejni}"/>
Note: See TracChangeset for help on using the changeset viewer.