Tell me how to set classpath in ant?
Submitted by: AdministratorPATH- and CLASSPATH-type references can be specified using both ":" and ";" as separator characters. Ant converts the separator to the correct character of the current operating system.
<classpath>
<pathelement path="${classpath}"/>
<pathelement location="lib/helper.jar"/>
</classpath>
The location attribute specifies a single file or directory relative to the project's base directory (or an absolute filename)
The path attribute accepts colon- or semicolon-separated lists of locations. The path attribute is intended to be used with predefined paths - in any other case; multiple elements with location attributes should be preferred.
The <classpath> tag supports path and location attributes of its own:
<classpath path="${classpath}"/>
Submitted by: Administrator
<classpath>
<pathelement path="${classpath}"/>
<pathelement location="lib/helper.jar"/>
</classpath>
The location attribute specifies a single file or directory relative to the project's base directory (or an absolute filename)
The path attribute accepts colon- or semicolon-separated lists of locations. The path attribute is intended to be used with predefined paths - in any other case; multiple elements with location attributes should be preferred.
The <classpath> tag supports path and location attributes of its own:
<classpath path="${classpath}"/>
Submitted by: Administrator
Read Online Java ANT Job Interview Questions And Answers
Top Java ANT Questions
☺ | Tell me how to set classpath in ant? |
☺ | How to write your own ant task? |
☺ | Do you know how to debug my ant script? |
☺ | How to use ant to run a Java application? |
☺ | Tell me how to use Runtime in ant? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |