Skip to content
Praat provider for Gradle
Groovy
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
src
.gitattributes
.gitignore
.travis.yml
CHANGELOG.md
LICENSE.md
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

Build Status Download License: GPL v3

Gradle Praat Wrapper Plugin

A low-level Gradle plugin that provides Praat v6.0.30 as a custom dependency

Usage

See https://plugins.gradle.org/plugin/org.m2ci.msp.praat-wrapper

Praat task

Applying this plugin creates a praat task that downloads and extracts the Praat binary for the current OS into $buildDir/praat. This path is also provided as the praat.binary property. It can then be used in other tasks.

Note that the downloaded Praat package is cached by Gradle as a dependency.

Example

$ cat > build.gradle << EOF

plugins {
    id "org.m2ci.msp.praat-wrapper" version "0.5.2"
}

task runPraatScript(type: Exec) {
    dependsOn praat
    commandLine praat.binary, '--run', 'script.praat'
    doFirst {
        file('script.praat').text = "echo This is Praat 'praatVersion\$' running via Gradle $gradle.gradleVersion"
    }
}

EOF
$ gradle -q runPraatScript
This is Praat 6.0.30 running via Gradle 5.5.1
You can’t perform that action at this time.