fix samples after renaming script

This commit is contained in:
Brandon Keepers
2015-04-17 14:37:40 +12:00
parent 8a42f76f03
commit ef49fe417f
2 changed files with 17 additions and 0 deletions

17
samples/Groovy/build.gvy Normal file
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}"
}
}