Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的项目中有 ./lib 目录,如何将依赖项复制到 buildr 中的该目录?
您可以使用project.compile.dependencies. 您可以使用#to_s. 所以你应该能够做这样的事情:
project.compile.dependencies
#to_s
cp project.compile.dependencies.collect { |t| t.to_s }, project.path_to('lib')