Skip to Content

<jdtClassPathVariable>

Scope: JDT projects

Description

The jdtClassPathVariable type allows you to define class path variables. The definition of class path variables is necessary if you want to resolve a JDT project with a class path variable entry.

A class path variable can be added to a project's class path. It can be used to define the location of a JAR file or a directory that isn't part of the workspace.

Arguments

The jdtClassPathVariable type provides the following arguments:

Argument Description Required
name The name of the class path variable as specified in the eclipse preferences. yes if file is not set
path The path to the folder or the jar file. yes if file is not set
file A properties file which consists classpath variables where the key is the name and the path is the value. no

Usage examples

<ant4eclipse:jdtClassPathVariable name="ECLIPSE_HOME" path="/usr/eclipse34" />
<ant4eclipse:jdtClassPathVariable name="MY_VAR" path="/my/path" />
<ant4eclipse:jdtClassPathVariable name="MY_VAR_2" path="/my/path/myjar.jar" />