How to set classpath in ant script?



How to set classpath in ant script?..

Answer / Birjesh Kumar

"To set the classpath in Ant, use the property 'classpath' and add the paths of the classes or jars separated by a semicolon (; on Windows or : on Unix). For example:n<property name="classpath" value="/path/to/your/jar1.jar:/path/to/your/jar2.jar"/>"n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Ant Interview Questions

How many ways we can set properties into build ant file?

1 Answers  


How many types of build tool you know?

1 Answers  


Explain the concepts of ant?

1 Answers  


Explain how to use pmd validation in ant script?

1 Answers  


Can you explain ant functionality?

1 Answers  


What is ivy? What are the key features of 2.5.0?

1 Answers  


List some basic functions performed by ant.

1 Answers  


Explain how to modify properties in ant?

1 Answers  


How we can echo message in ant?

1 Answers  


What is ant?

1 Answers  


How we can set path path and classpath into an ant build file?

1 Answers  


Explain ant functionality?

1 Answers  


Categories