ANT Interview Questions and Answers
Question: How to set Classpath in Ant script?Answer: The following is the code snippet to set the classpath in ant:<path id=”build.classpath”> <fileset dir=”${build.lib}” includes=”**/*.jar/> <fileset dir=”${build.class”}/> </path> <target….> <javac….> <classpath field=”build.classpath”/> </javac> </target> <target….> <javac….> <classpath field=”build.classpath”/> </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?