ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Wood" <EW...@llbean.com>
Subject ANT javac tager option issue
Date Fri, 19 Dec 2008 16:18:02 GMT
My java is a 1.5 compiler, but I running the javac using a target="1.4
and the output keeps giving me JAVA 1.5 compiler errors:
 
 
 
    [javac]
/ClearCase_Storage/viewroot/Ecommerce/ecomm_commerce_suite/build_ECOMM_1
5.0_Integration/vob/ecomm_commerce_suite/AppServer/WebSphereCommerceServ
erExtensionsLogic/src/com/ibm/wcsx/llbean/common/utilities/FieldErrorDat
aBean.java:87: warning: as of release 1.5, 'enum' is a keyword, and may
not be used as an identifier
    [javac] (try -source 1.5 to use 'enum' as a keyword)
    [javac]     Enumeration enum = getExceptionData().keys();
    [javac]                     ^
    [javac]
/ClearCase_Storage/viewroot/Ecommerce/ecomm_commerce_suite/build_ECOMM_1
5.0_Integration/vob/ecomm_commerce_suite/AppServer/WebSphereCommerceServ
erExtensionsLogic/src/com/ibm/wcsx/llbean/common/utilities/FieldErrorDat
aBean.java:88: warning: as of release 1.5, 'enum' is a keyword, and may
not be used as an identifier
    [javac] (try -source 1.5 to use 'enum' as a keyword)
    [javac]     while (enum.hasMoreElements()) {

 
Here is my javac task:
      <javac srcdir="${dir.java.src}"
             deprecation="off"
             debug="on"
             destdir="${dir.java.bin}"
             optimize="on"
             target="1.4"
             fork="true"
             nowarn="on"
             memoryMaximumSize="724M">
               <patternset refid="compile.patternset" />
               <classpath refid="classpath.build" />
      </javac>

Am I not using this perpoerly. Nay help would be greatly appreciated.
 
Eric

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message