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ディレクトリがありますが、ビルダーでこのディレクトリに依存関係をコピーするにはどうすればよいですか?
を使用して、プロジェクトの依存関係を表すタスクを取得できますproject.compile.dependencies。を使用して、ファイルタスクからパスを取得できます#to_s。したがって、次のようなことができるはずです。
project.compile.dependencies
#to_s
cp project.compile.dependencies.collect { |t| t.to_s }, project.path_to('lib')