平台提供的 Ant 任务

平台提供一些有用的 Ant 任务和属性,它们可与工作区交互作用。它们可以与在平台内运行的构建文件配合使用。

eclipse.refreshLocal

此任务是 IResource.refreshLocal() 方法的包装器。示例:

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

eclipse.incrementalBuild

此任务是 IProject.build()IWorkspace.build() 方法的包装器。示例:

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

eclipse.convertPath

将文件系统路径转换为资源路径,反之亦然。将结果值指定给指定属性。示例:

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

Copyright IBM Corporation and others 2000, 2003.