76
votes

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

How is that done?

1

1 Answers

117
votes

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

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