ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <flo...@mindspring.com>
Subject Re: Using Ant with older Java versions
Date Wed, 25 Oct 2006 19:04:42 GMT
Wayne:

This is just a warning...the compilation should have happened.  If you 
don't want to see the warning, try using <javac ... nowarn="true" />





Wayne Cannon wrote:
> I'm attempting to convert a Java 1.3project to Ant that has an 
> attribute named "enum" (Java 1.3 did not have an Enum class) -- 
> "Enumeration enum;".  I have source and target attributes set to 
> "1.3", but still get the following error message:
>
> warning: as of release 1.5, 'enum' is a keyword, and may not be used 
> as an identifier
> (try -source 1.5 to use 'enum' as a keyword)
>
> What do I need to do to tell Ant and/or javac to not apply this Java 
> 1.5 constraint?
>
>    <javac
>        classpath="${build.classpath}"
>        srcdir="${src.dir}"
>        destdir="${bin.dir}"
>        debug="${build.debug}"    -------   "yes"
>        source="1.3"
>        target="1.3"
>        ... >
>        ...
>    </javac>
>
> --Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

-- 
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim


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


Mime
View raw message