Online Interview Questions

Prepare interviews on Anything, AnyWhere

PHPSCOTS,Blogger, Developer Views: 6891
Apache Ant Interview questions

Apache Ant Interview questions and answers

1. What is Apache Ant?

Apache Ant is a Java library and command-line tool for automating software build processes.It drives the processes or instructions described in build files as targets and extension points dependent upon each other.The main known usage of Ant is the build of Java applications. Ant supplies a number of built-in tasks allowing to compile, assemble, test and run Java applications. Ant can also be used effectively to build non Java applications, for instance C or C++ applications. More generally, Ant can be used to pilot any type of process which can be described in terms of targets and tasks.


2. In which language Apache Ant is written?

Ant is written in Java.

3. What is minimum version of Java is required to run Apache Ant 1.9.x?

Java 1.5 is required for Apache Ant 1.9.x.

4. List some basic functions performed by Ant.

Ant tool is used for:-

  • Compiling Java code into bytecode
  • Placing this bytecode in a package
  • Deployment to production systems
  • Document creation and release notes preparation.

5. How to set Classpath in Ant script?

Use below code snippet to set Classpath in Ant script

<path id="build.classpath">
<fileset dir="${build.lib}" includes="**/*.jar"/>
<fileset dir="${build.class"}/>

<classpath field="build.classpath"/>

<classpath field="build.classpath"/>