Ant tasks provided by the platform

The platform provides some useful Ant tasks and properties that interact with the workspace. They can be used with buildfiles that are set to build within the same JRE as the workspace.

eclipse.refreshLocal

This task is a wrapper to the IResource.refreshLocal() method. Example:

<eclipse.refreshLocal resource="MyProject/MyFolder" depth="infinite"/>

eclipse.incrementalBuild

This task is a wrapper to IProject.build() and IWorkspace.build() methods. Examples:

<eclipse.incrementalBuild/>
<eclipse.incrementalBuild project="MyProject"/>

eclipse.convertPath

Converts a file system path to a resource path and vice-versa. The resulting value is assigned to the given property. Examples:

<eclipse.convertPath fileSystemPath="${basedir}" property="myPath"/>
<eclipse.convertPath resourcePath="MyProject/MyFile" property="myPath"/>

Legal notices.