The ResolvePathTask
turns a relative path into an absolute path, with
respect to specified directory or the project basedir (if no dir attribute
specified).
This task is useful for turning a user-defined relative path into an absolute path in cases where buildfiles will be called in different directories. Without this task, buildfiles lower in the directory tree would mis-interpret the user-defined relative paths.
Table B.37: Attributes
Name | Type | Description | Default | Required |
---|---|---|---|---|
file | String | The file or directory path to resolve. | n/a | Yes |
dir | File | The base directory to use when resolving "file". | project.basedir | No |
propertyName | String | The name of the property to set with resolved (absolute) path. | n/a | Yes |
level | String | Control the level at which status messages are reported. One of
error , warning ,
info , verbose ,
debug . | verbose | No |