如何在Mac上使用/启动gradle守护进程? [英] How to use/start the gradle daemon on a Mac?

查看:637
本文介绍了如何在Mac上使用/启动gradle守护进程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我在Mac上执行gradle命令时,我都会收到一条消息:

 这个版本可能会更快,请考虑使用Gradle守护进程:https://docs.gradle.org/2.10/userguide/gradle_daemon.html

我已经用消息中给出的网页中提到的org.gradle.daemon = true行创建了一个gradle.properties文件。然而,无论我做什么,我仍然继续得到这个信息。



如果我执行命令

  gradle --daemon 

然后它会成功执行,但下一个我做了一些事情,我得到的消息可能会更快,并且构建和启动守护进程一样慢。



我的安装目录是no / Users / username就像在gradle_daemon.html中一样,因为我正在掉一个Udacity课程( https:// www.udacity.com/course/viewer#!/c-ud867/ ),他们建议将它安装到/ usr / local / gradle中。



我真的得到了gradle dameon的工作,并摆脱那可能是更快的消息?



(使用Gradle版本2.10)

解决方案

页面没有说gradle必须安装在 / Users / username 中的任何地方。它说这个目录是你的主目录,并且这是 .gradle / gradle.properties 文件必须位于的位置。安装gradle的地方是不相关的。


Every time I execute a gradle command on Mac I get a message saying:

"This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.10/userguide/gradle_daemon.html"

I've created a gradle.properties file with the line org.gradle.daemon=true as mentioned in the web page given in the message. However no matter what I do, I still continue to get that message.

If I execute the command

gradle --daemon

then it executes successfully, but still next time I do something I get that message about it could be faster and builds are just as slow as before I started the daemon.

My installation directory is no /Users/username as in gradle_daemon.html as I'm falling a Udacity course (https://www.udacity.com/course/viewer#!/c-ud867/) and they recommend installing it to /usr/local/gradle

How can I actually get the gradle dameon to work and get rid of that could be faster message?

(Using Gradle version 2.10)

解决方案

The page doesn't say anywhere that gradle must be installed in /Users/username. It says that this directory is your home directory, and that's where the .gradle/gradle.properties file must be located. The place where gradle is installed is irrelevant.

这篇关于如何在Mac上使用/启动gradle守护进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆