Exams Attended

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

ANT Interview Questions and Answers

Ques. How to set Classpath in Ant script?
Ans. 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:

©2021 WithoutBook