Rename Groovy sample file with a .gradle extension

This commit is contained in:
Paul Chaignon
2014-07-09 23:23:21 +02:00
parent baaa7a5c13
commit c4b876472f
2 changed files with 30059 additions and 30060 deletions

View File

@@ -0,0 +1,17 @@
task echoDirListViaAntBuilder() {
description = 'Uses the built-in AntBuilder instance to echo and list files'
//Docs: http://ant.apache.org/manual/Types/fileset.html
//Echo the Gradle project name via the ant echo plugin
ant.echo(message: project.name)
ant.echo(path)
ant.echo("${projectDir}/samples")
//Gather list of files in a subdirectory
ant.fileScanner{
fileset(dir:"samples")
}.each{
//Print each file to screen with the CWD (projectDir) path removed.
println it.toString() - "${projectDir}"
}
}