ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Reilly" <peter.kitt.rei...@gmail.com>
Subject Re: ANT javac tager option issue
Date Fri, 19 Dec 2008 17:08:20 GMT
You need source="1.4" as well.

Peter

On Fri, Dec 19, 2008 at 4:18 PM, Eric Wood <EWood@llbean.com> wrote:
> 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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message