Changeset 4085


Ignore:
Timestamp:
Jan 17, 2008, 12:08:40 PM (15 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #899: Specify "source" and "target" options in <javac> tasks in our ant buildfile

Also added an option for the 'encoding' attribute

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r4049 r4085  
    8383  <property name="javac.arg" value="-Xlint:unchecked"
    8484    description="Extra arguments sent to Java compiler" />
     85  <property name="javac.source" value="1.5"
     86    description="Default value for the 'source' attribute when compiling java code" />
     87  <property name="javac.target" value="1.5"
     88    description="Default value for the 'target' attribute when compiling java code" />
     89  <property name="javac.encoding" value="ISO-8859-1"
     90    description="Default value for the 'encoding' attribute when compiling java code" />
    8591  <property name="src" location="src" description="Location of source files" />
    8692  <property name="build" location="build" description="Location of compiled files" />
     
    439445      srcdir="${info.src}"
    440446      destdir="${info.build}"
    441       encoding="ISO-8859-1"
     447      encoding="${javac.encoding}"
    442448      debug="true"
    443449      deprecation="true"
     450      source="${javac.source}"
     451      target="${javac.target}"
    444452      >
    445453      <compilerarg value="${javac.arg}" />
     
    472480      destdir="${core.build}"
    473481      classpathref="core.classpath"
    474       encoding="ISO-8859-1"
     482      encoding="${javac.encoding}"
    475483      debug="true"
    476484      deprecation="true"
     485      source="${javac.source}"
     486      target="${javac.target}"
    477487      >
    478488      <compilerarg value="${javac.arg}" />
     
    631641      destdir="${coreplugins.build}"
    632642      classpathref="coreplugins.classpath"
    633       encoding="ISO-8859-1"
     643      encoding="${javac.encoding}"
    634644      debug="true"
    635645      deprecation="true"
     646      source="${javac.source}"
     647      target="${javac.target}"
    636648      >
    637649      <compilerarg value="${javac.arg}" />
     
    676688      destdir="${examples.plugins.build}"
    677689      classpathref="examples.plugins.classpath"
    678       encoding="ISO-8859-1"
     690      encoding="${javac.encoding}"
    679691      debug="true"
    680692      deprecation="true"
     693      source="${javac.source}"
     694      target="${javac.target}"
    681695      >
    682696      <compilerarg value="${javac.arg}" />
     
    746760      destdir="${examples.webservices.build}"
    747761      classpathref="examples.webservices.classpath"
    748       encoding="ISO-8859-1"
     762      encoding="${javac.encoding}"
    749763      debug="true"
    750764      deprecation="true"
     765      source="${javac.source}"
     766      target="${javac.target}"
    751767      >
    752768      <compilerarg value="${javac.arg}" />
     
    808824      destdir="${test.build}"
    809825      classpathref="test.classpath"
    810       encoding="ISO-8859-1"
     826      encoding="${javac.encoding}"
    811827      debug="true"
    812828      deprecation="true"
     829      source="${javac.source}"
     830      target="${javac.target}"
    813831      >
    814832      <compilerarg value="${javac.arg}" />
     
    870888      destdir="${web.build}"
    871889      classpathref="web.classpath"
    872       encoding="ISO-8859-1"
     890      encoding="${javac.encoding}"
    873891      debug="true"
    874892      deprecation="true"
     893      source="${javac.source}"
     894      target="${javac.target}"
    875895      >
    876896      <compilerarg value="${javac.arg}" />
     
    937957      memorymaximumsize="512m"
    938958      fork="true"
     959      source="${javac.source}"
     960      target="${javac.target}"
    939961      >
    940962    </javac>
     
    10081030      destdir="${webservices.build}/server"
    10091031      classpathref="webservices.server.classpath"
    1010       encoding="ISO-8859-1"
     1032      encoding="${javac.encoding}"
    10111033      debug="true"
    10121034      deprecation="true"
     1035      source="${javac.source}"
     1036      target="${javac.target}"
    10131037      >
    10141038      <src path="${webservices.src}/server" />
     
    10371061      destdir="${webservices.build}/client"
    10381062      classpathref="webservices.client.classpath"
    1039       encoding="ISO-8859-1"
     1063      encoding="${javac.encoding}"
    10401064      debug="true"
    10411065      deprecation="true"
     1066      source="${javac.source}"
     1067      target="${javac.target}"
    10421068      >
    10431069      <src path="${webservices.src}/client/java" />
     
    11231149      destdir="${installprg.build}"
    11241150      classpathref="installprg.classpath"
    1125       encoding="ISO-8859-1"
     1151      encoding="${javac.encoding}"
    11261152      debug="true"
    11271153      deprecation="true"
     1154      source="${javac.source}"
     1155      target="${javac.target}"
    11281156      >
    11291157      <compilerarg value="${javac.arg}" />
     
    11661194      destdir="${jobagent.build}"
    11671195      classpathref="jobagent.classpath"
    1168       encoding="ISO-8859-1"
     1196      encoding="${javac.encoding}"
    11691197      debug="true"
    11701198      deprecation="true"
     1199      source="${javac.source}"
     1200      target="${javac.target}"
    11711201      >
    11721202      <compilerarg value="${javac.arg}" />
     
    12091239      destdir="${migrate.build}"
    12101240      classpathref="migrate.classpath"
    1211       encoding="ISO-8859-1"
     1241      encoding="${javac.encoding}"
    12121242      debug="true"
    12131243      deprecation="true"
     1244      source="${javac.source}"
     1245      target="${javac.target}"
    12141246      >
    12151247      <compilerarg value="${javac.arg}" />
     
    12711303      linksource="false"
    12721304      breakiterator="yes"
    1273       encoding="iso-8859-1"
     1305      encoding="${javac.encoding}"
    12741306      overview="${javadoc.src}/overview.html"
    12751307      >
Note: See TracChangeset for help on using the changeset viewer.