How do I prevent the two warnings below from generating an error that stops the build process ?
-compile:
[javac] Compiling 77 source files to /Users/andev/W
This is set in the ${sdk.dir}/tools/ant/build.xml
file. At the beginning of the file are many property
settings, e.g.
Also at the beginning of this file is a comment
At the beginning of the file is a list of properties that can be overridden by adding them to your ant.properties (properties are immutable, so their first definition sticks and is never changed).
So, in order to override any property in general and source value and target value in particular, you can put these properties into the ant.properties file in your project directory
java.source=1.6
java.target=1.6
This overrides the default settings in ${sdk.dir}/tools/ant/build.xml
and thus prevents the warnings.