Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How we can set compile target using ant?



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

Post New Answer

More Apache Ant Interview Questions

How we can set compile target using ant?

1 Answers  


Can you define build tool?

1 Answers  


What is history of ant?

1 Answers  


What is dependency? How it is used into ant?

1 Answers  


What is built-in properties? And how many built-in properties?

1 Answers  


How can I use ant to run a java application?

1 Answers  


Can you explain ant functionality?

1 Answers  


What is different between ant and make?

1 Answers  


How many types of build tool you know?

1 Answers  


What is dependency? How it is used into ant? What is its use?

1 Answers  


Explain how to import .jar files?

1 Answers  


Explain how to use clean in ant script?

1 Answers  


Categories