does anyone knows how to set additional environment variables for an ant script from within intellij-idea/rubymine? The part of the ant script which uses the environment variable looks as below:
<property environment="env"/>
<fail unless="env.IDEA_HOME" message="IDEA_HOME must be set."/>
What I've tried so far:
- Passing an environment variable on startup to intellij
- Settings -> Path Variables
- Ant Build -> Properties
- Ant Build -> Execution -> Ant command line
Best Answer
You can set variables as additional command line parameters. Here is a screenshot.
And then my output:
You see
dir.idea
is set to what we passed to ant.