Gradle和Ant集成的很好,可以直接使用
defaultTasks 'all'
import org.apache.tools.ant.taskdefs.condition.Os
task all {
if (Os.isFamily(Os.FAMILY_WINDOWS))
println "*** WINDOWS "
}
import org.apache.tools.ant.taskdefs.condition.Os
task all {
if (Os.isFamily(Os.FAMILY_WINDOWS))
println "*** WINDOWS "
}