How do I convert a relative path in Ant to an absolute path?

I would like to convert a relative path to an absolute path.

How is that done?

20637 次浏览

The location attribute on the property task will convert relative paths to absolute.

<property name="absolute.path" location="${relative.path}"/>