如何将Ant中的相对路径转换为绝对路径?


75

我想将相对路径转换为绝对路径。

怎么做?

Answers:


115

属性任务上的location属性会将相对路径转换为绝对路径。

<property name="absolute.path" location="${relative.path}"/>
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.