Answer

Try that :

task myTask {
    doLast {
        exec {
            workingDir project.rootProject.rootDir
            commandLine 'bash', '-c', '-i', 'll' // alias provided from my .bashrc
        }
    }
}
  • 1
Reply Report

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags

Related Questions