How we can set compile target using ant?
Answer / 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 |
How we can set compile target using ant?
Can you define build tool?
What is history of ant?
What is dependency? How it is used into ant?
What is built-in properties? And how many built-in properties?
How can I use ant to run a java application?
Can you explain ant functionality?
What is different between ant and make?
How many types of build tool you know?
What is dependency? How it is used into ant? What is its use?
Explain how to import .jar files?
Explain how to use clean in ant script?