开发者

how to copy dependencies to a directory in buildr?

开发者 https://www.devze.com 2023-02-25 10:57 出处:网络
I have ./lib directory in my project, how can i copy dependencie开发者_如何学Cs to this directory in buildr?You can get the tasks representing the dependencies for a project using project.compile.depe

I have ./lib directory in my project, how can i copy dependencie开发者_如何学Cs to this directory in buildr?


You can get the tasks representing the dependencies for a project using project.compile.dependencies. You can get the path from a file task using #to_s. So you should be able to do something like this:

cp project.compile.dependencies.collect { |t| t.to_s }, project.path_to('lib') 
0

精彩评论

暂无评论...
验证码 换一张
取 消