Answer Posted / Pankaj Kumar Verma
"To set the compile target in Ant, you need to define a property for the desired version of the Java compiler and use that property when compiling your source files. Here's an example: Add the following lines to your build.xml file:nn<property name="java.version" value="1.8"></property>nnAnd update the compile task as follows:nn<javac srcdir="src" destdir="bin" target="${java.version}" />"n
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category