Hey everyone,

Since updating to 0.4, I've been able to run command line tools from gradle.

I used to have the following gradle build task:

task buildWebApp(type: Exec) {
    executable = Os.isFamily(Os.FAMILY_WINDOWS) ? "grunt.cmd" : "grunt"

    args = ["build"]}

This would pick the appropriate grunt command and run it with the argument 
"build".

This worked without any kind of issue

In Android Studio 0.4, using Gradle 1.9 and it's no longer working. Instead 
I get the following error:

Execution failed for task ':BrowserPages:buildWebApp'. A problem occurred 
starting process 'command 'grunt''

Normally at this point I would debug with gradlew, but running the 
following command, throws no errors:

$ ./gradlew buildWebApp

I've also tried running the full task list to still not find any problems.

The way this is executed is from my main build.gradle file with this 
dependency

copyWebApplication.dependsOn ':BrowserPages:buildWebApp'

Anyone have any ideas?

I've tried to run executable = "node" with arg = ["-v"] and get the same 
error where it can't find node. Node is globally accessible on my terminal, 
so I can only assume that the command is being run in a different 
environment to the terminal. There is the option for setting the 
environment on the task but I can't find any examples of how it should be 
used.

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to