在eclipse中导入gradle项目时出现问题

时间:2017-08-04 08:00:01

标签: java eclipse gradle import

我在eclipse中导入gradle项目时遇到导入问题。在我的build.gradle文件中,下面是环境变量的条目。

buildscript {
    // Usually, the ext in gradle build script is used to define constants.
    ext {
        springBootVersion = "1.3.3.RELEASE"
        ENV = System.getenv()
        platformJar = ENV["skyfall_sdk"]
        generatedDocumentation = file('src/docs/asciidoc/generated')
    }

如何在eclipse中设置环境变量以提供" skyfall_sdk"的值,以便导入成功?

1 个答案:

答案 0 :(得分:1)

For setting an environment variable in Eclipse, follow this :

In the menu "Run" -> "Run Configuration" -> Then click on your compilator and in the new window, you can select "Environment".

enter image description here

Then you select "New..." and make a variable for "skyfall_sdk".