Category Hierarchy

我正在和bazel一起构建我的java项目。我想在构建/运行时使用环境变量。根据documentation的说法,--action_env=APP_ENV=Development应该可以工作。

所以我做了bazel run myproject:app --action_env=APP_ENV=Development

System.getenv("APP_ENV");为空

在我的intellij IDE中,我有以下内容。--action_env=APP_ENV=Development--action_env APP_ENV=Development都不起作用

?

?

我是不是搞错了?

转载请注明出处:http://www.biaocun.net/article/20230526/1444510.html