问题
My development environment is running in JDK1.6, and I need to compile some classes so they are compatible with a client running JDK1.5. How would I do this with the 'javac' ant target?
回答1:
Command line : javac -target 1.5 sourcefiles
Ant: < javac srcdir="${src} destdir="${build}" target="1.5" />
回答2:
<javac source="1.5"... />
来源:https://stackoverflow.com/questions/169044/how-to-compile-classes-to-jdk1-5-when-ant-is-running-in-jdk1-6