How can I set environment variables for external tools?

I know that I can set environment variables for build configurations in Edit Configurations -> Defaults -> Applications, but I've set up some external tools I run before building some of my Flash Apps, and those environment variables don't seem to affect those tools.  Is there a place I can set up environment variables for external tools?

Ideally, I'd like to set env vars globally for an entire project, rather than having to set them separately for build configs and external tools, but I'll take what I can get.

3 comments
Comment actions Permalink

I'm afraid env vars can't be configured for external tools yet (vote for IDEA-115487). The only way is to configure envs globally for the OS.

0
Comment actions Permalink

Nothing is impossible:

As a workaround you can just use `env` as a `program`, which allows you to pass command and fresh environment variables as arguments.

4
Comment actions Permalink

| As a workaround you can just use `env` as a `program`, which allows you to pass command and fresh environment variables as arguments.

Good suggestion, but be aware that this only works for Unix-like systems.

0

Please sign in to leave a comment.