我有一个Rakefile,可以根据全局变量$build_type(可以是:debug或者:release结果放在不同的目录中)以两种方式编译项目:
task :build => [:some_other_tasks] doend我希望创建一个任务,用两个配置依次编译项目,如下所示:
task :build_all do [ :debug, :release ].each do |t| $build_type = t # call task :build with all the tasks it depends on (?) endend有没有办法像调用方法一样调用任务?或者我怎么能做到类似的事情?
相似问题