Sublime Forum

New Build System for My Project Using Gradle Throws error?

#1

want to have a custom build system but am really not able to make one. I have Gradle 1.2 installed and even the GRADLE_HOME is set correctly now I have the following commend in the build system file

{ "cmd": "gradle"], "working_dir": "${project_path:${folder}}", }

And the error I get is as follows(when I try to build my project)

[Errno 2] No such file or directory [cmd: [u'gradle', u'build.gradle']] [dir: /home/roger/Project/Visage/HelloWorld/src/main/visage/visage/javafx] [path: $project] [Finished]

Actually my Project Base directory is HelloWorld and I have my build.gradle there itself. Please help me to write the correct build system or give the correct commands to avoid error and execute successfully. I am currently using UBUNTU 12.04. My Project Has a package structure Like (HelloWorld/src/main/visage/visage/My File). I need to execute gradle command for building and running on the HelloWorld folder.

0 Likes

#2

Is that the entirely of the .sublime-build file?

The ‘path’ component in the error is wrong, it should look something like:

[path: /usr/bin:/bin:/usr/sbin:/sbin]
0 Likes

#3

@jps Yeah I know but still its showing the same error. I would highly appreciate if you or anyone could figure it out for me because I am struggling heavily with this. I have a Project structure that is something like

HelloWorld/src/main/visage/visage/javafx

And inside JavaFX folder I have my project file. But I need to run my gradle command in the HelloWorld folder since my build.gradle is there. I am not able to specify the path correctly where the gradle command is called on the mentioned folder.

@jps if you can figure this out for me.I am using Linux system. Thanks in advance.

0 Likes