diff options
author | Garrett Smith <g@rre.tt> | 2016-05-02 16:03:01 -0500 |
---|---|---|
committer | Garrett Smith <g@rre.tt> | 2016-05-02 16:03:01 -0500 |
commit | da0e2c22959c976420b60def760b348aa200d6e2 (patch) | |
tree | f3d2952e2485d2820c0a735724bc893d8da95fab /test/mock_pkg_resource.erl | |
parent | c9cc58d2b885249da3ad7f738f922a83bfb302d1 (diff) |
Option to format compiler sources
By default rebar3 displays compiler sources as absolute paths in their
original location, which is under the build dir.
This change introduces an option 'compiler_source_format' to format
sources in two alternative ways:
relative
absolute
When either 'relative' or 'absolute' are specified, the file is
resolved to its original location when it is a link. When 'relative'
is specified, the path is displayed relative to the current working
directory. When 'absolute' is specified, the path is absolute.
The default value is 'unchaged' which leaves the compiler source
unchanged.
This is arguably too flexible as I suspect most people would opt for
'relative' all the time - it's the most compact representation of the
file and is sufficient to find the source given cwd. The change
however is meant to introduce the change gradually, preserving
existing behavior and giving users a choice for formats.
In time perhaps the default can be changed to 'relative' - but still
allowing users to revert to the other two options ('absolutel' and
'unchanged') as needed.
Diffstat (limited to 'test/mock_pkg_resource.erl')
0 files changed, 0 insertions, 0 deletions