ANT Interview Questions and Answers
Question: Explain how to compile using Ant script?Answer: <target name="compile" depends="-init"><mkdir dir="${build.dir}/classes" /> <javac destdir="${build.dir}/classes" includeantruntime="false" debug="true" optimize="true" verbose="false" deprecation="false" source="1.5" target="1.5"> <classpath refid="classpath.base" /> <src path="${src.dir}/main/java" /> </javac> </target> |
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Is it helpful? Yes No
Most helpful rated by users:
- What is ANT?
- Explain ANT functionality.
- Explain using ANT and give an small example.
- How to set Classpath in Ant script?
- How to set property file in Ant script?