How to set Classpath in Ant script?

devquora
devquora

Posted On: Feb 22, 2018

 

 

Use below code snippet to set Classpath in Ant script


<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>

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Apache Ant Interview Questions

    What is Apache Ant?

     Apache Ant is a Java library and command-line tool for automating software build processes.It drives the processes or..