ANT Interview Questions and Answers
Question: Explain how to use clean in Ant script?Answer: <target name="clean" depends="-clean" /><target name="-clean"> <delete dir="${build.dir}/*" /> <delete dir="${build.dir}/classes" /> <delete dir="${build.dir}/test-classes" /> <delete dir="${build.dir}/release" /> <delete file="${build.dir}/*.jar" /> <delete file="${build.dir}/VERSION.txt" /> </target> |
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?