Skip to Content

<jdtClassPathLibrary>

Scope: JDT projects

Description

The jdtClassPathLibrary datatype can be used to define class path libraries (aka class path containers).

Note: Registering class path libraries manually should be used as the last resort to define class path libraries.

Arguments

The jdtClassPathLibrary datatype provides the following arguments:

Argument Description Required
name name of the class path library yes

Nested Elements

You can use any file resource collection to define a class path library. Please take a look at ant's documentation for further information about file resource collections.

Example usage

The following example defines a class path library named 'myClassPathLibrary':

<ant4eclipse:jdtClassPathLibrary name="myClassPathLibrary">
  <fileset dir="D:/test" />
</ant4eclipse:jdtClassPathLibrary >

The following examples defines the class path library 'org.eclipse.jdt.junit.JUNIT_CONTAINER/3':

<ant4eclipse:jdtClassPathLibrary name="org.eclipse.jdt.junit.JUNIT_CONTAINER/3">
  <fileset dir="C:/eclipse-3.5/plugins/org.junit_3.8.2.v20090203-1005"/>
</ant4eclipse:jdtClassPathLibrary >