I have some old Java source code that raises an error in ant.
[javac] Enumeration enum = props.propertyNames();
[javac] ^
[javac] (use -source 1.4 or lower to use 'enum' as an identifier)
How can I teach ANT to use -source 1.4?
The
Javactask hassourceandtargetproperties to specify JVM version…http://ant.apache.org/manual/Tasks/javac.html
as in something like the following in your
build.xml…