Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

ANT%20Interview%20Questions%20and%20Answers

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:

©2024 WithoutBook