Ignore:
Timestamp:
2014-12-03T10:05:05+13:00 (8 years ago)
Author:
Jeremy Symon
Message:

Added property to set the encoding to UTF-8 when building. This is required for building under environments where the system language is set to ASCII - javac will crash if it encounters unicode characters otherwise

File:
1 edited

Legend:

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

    r29438 r29515  
    523523  <property name="compile.deprecation" value="true"/>
    524524  <property name="compile.optimize"    value="true"/>
     525  <property name="compile.encoding"    value="UTF8"/>
    525526  <property name="compile.includeantruntime" value="false"/> <!-- to get rid of annoying 'ant' warning -->
    526527
     
    12111212      debug="${compile.debug}"
    12121213      deprecation="${compile.deprecation}"
    1213       optimize="${compile.optimize}">
     1214      optimize="${compile.optimize}"
     1215      encoding="${compile.encoding}">
    12141216      <classpath><path refid="compile.classpath"/></classpath>
    12151217    </javac>
     
    19091911      debug="${compile.debug}"
    19101912      deprecation="${compile.deprecation}"
    1911       optimize="${compile.optimize}">
     1913      optimize="${compile.optimize}"
     1914      encoding="${compile.encoding}">
    19121915      <classpath refid="compile.classpath"/>
    19131916      <include name="org/greenstone/gsdl3/${axis.servicesname}${axis.sitename}.java" />
     
    19541957           debug="${compile.debug}"
    19551958           deprecation="${compile.deprecation}"
    1956            optimize="${compile.optimize}">
     1959           optimize="${compile.optimize}"
     1960           encoding="${compile.encoding}">
    19571961      <classpath>
    19581962            <path refid="compile.classpath"/>
     
    19661970         debug="${compile.debug}"
    19671971         deprecation="${compile.deprecation}"
    1968          optimize="${compile.optimize}">
     1972         optimize="${compile.optimize}"
     1973         encoding="${compile.encoding}">
    19691974        <classpath>
    19701975              <path refid="compile.classpath"/>
     
    31773182                    debug="${compile.debug}"
    31783183                    deprecation="${compile.deprecation}"
    3179                     optimize="${compile.optimize}">
     3184                    optimize="${compile.optimize}"
     3185                    encoding="${compile.encoding}">
    31803186                    <classpath>
    31813187                        <fileset dir="${basedir}/ext/testing/lib/java">
Note: See TracChangeset for help on using the changeset viewer.