Weitere ähnliche Inhalte
Ähnlich wie gradle2.4のルールベースモデルコンフィギュレーション (20)
Mehr von Shinya Mochida (20)
gradle2.4のルールベースモデルコンフィギュレーション
- 25. ルールクラス(続き)
@Mutate //モデルへの変更操作・taskを生やしていく
void create(CollectionBuilder<Task> tasks, LtsHaskellConf haskell) {
haskell.versions.each {v ->
ts.create(“create${v}Dir”).doLast {
Files.createDir(Paths.get(c.dir, v))}
ts.create(“sandbox${v}”, Exec) {
workingDir = “${haskell.dir}/$v”; dependsOn “create${it}Dir”
commandLine ‘cabal’, ‘sandbox’, ‘init’
}
haskell.cabal.inject(“sandbox${v}”) {pre, cbl ->
ts.create(“install${cbl}”, Exec) {