Gradle — execute multiple commands from task

前端 未结 4 2080
-上瘾入骨i
-上瘾入骨i 2020-12-30 21:14

I have 2 separate apps (in one project) that require 2 separate builds (sencha cmd). I have been asked to create a gradle script that will do the builds for both apps.

4条回答
  •  猫巷女王i
    2020-12-30 21:29

    It's impossible to configure (run) multiple commands for the task of type Exec. commandLine it's just a setter - the last one wins. If you need to run multiple commands the best idea is to implement multiple tasks as @RaGe suggested in the comment or to write a custom task and use groovy's native mechanisms - execute method.

提交回复
热议问题