Groovy构建器 Gant

fmms 12年前

Gant是一个基于Ant的构建工具,它采用Groovy脚本代替XML来编写构建逻辑。 Gant完全依赖于Ant task来做真正的事情,所以你如果用Ant实现构建,但不喜欢用XML构建文件,Gant是一个不错的选择。
medium.png

includeTargets << gant.targets.Clean  cleanPattern << [ '**/*~' ,  '**/*.bak' ]  cleanDirectory << 'build'    target ( stuff : 'A target to do some stuff.' ) {    println ( 'Stuff' )    depends ( clean )    echo ( message : 'A default message from Ant.' )    otherStuff ( )  }    target ( otherStuff : 'A target to do some other stuff' ) {    println ( 'OtherStuff' )    echo ( message : 'Another message from Ant.' )    clean ( )  }    setDefaultTarget ( stuff )

项目主页:http://www.open-open.com/lib/view/home/1332649831483