• 5
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

I have a problem with Gradle script on Ubuntu 16.04. It looks like my .bashrc is not loaded when I'm invoking script from Android Studio.

My script:

task myTask {
doLast {
    exec {
        workingDir project.rootProject.rootDir
        commandLine 'll' // alias provided from my .bashrc
    }
}

When I'm starting it with ./gradlew myTask everything works, but when starting from gui I'm getting

A problem occurred starting process 'command 'll''

What am I doing wrong?

Try that :

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