ANT%20Interview%20Questions%20and%20Answers
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> |
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?