mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Move test fixtures to samples/
This commit is contained in:
17
samples/groovy/build.gradle
Normal file
17
samples/groovy/build.gradle
Normal 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}"
|
||||
}
|
||||
}
|
||||
2
samples/groovy/script.groovy
Executable file
2
samples/groovy/script.groovy
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env groovy
|
||||
println "Groovy!"
|
||||
Reference in New Issue
Block a user