[erlang-questions] xref: adding directories dinamically
Tue Apr 15 13:42:10 CEST 2014
I can successfully import the dependencies I need in my node importing them
manually with -pa as following:
erl -pa ebin deps/*/ebin /path/to/release/*/ebin
Then I start xref and add a release without errors.
Whereas when I start a node and try to add the path in this way :
Libs = filelib:wildcard("/path/to/release/*/ebin"),
Deps = filelib:wildcard("deps/*/ebin"),
code:add_pathsa(Libs ++ Deps)
This does not work, despite that file:get_cwd() gives the same result as
when I load the libraries manually including the paths with -pa flag.
After that I also tried to add the directories to xref without success:
[xref:add_directory(xr,D) || D <- Libs ++ Deps].
What do I am missing to provide all the paths that xref needs to start?
I really appreciate any help you can provide,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions