There is anyway to send a variable, like enviromen...
# scripting
s
There is anyway to send a variable, like enviroment, from IntelliJ plugin to the script definition? like, "is running on IntelliJ" and some config that the user can set on the Plugin settings. Ex: API Token from a private repository that with this the script definition will to retrieve the dependency sources
p
s
What I meant by "running on IntelliJ", I mean when the IntelliJ resolves my custom script definition with my own IntelliJ Plugin and loads all its configuration (ScriptCompilationConfiguration) and run it to Resolve all the dependencies, Compiler arguments, etc
I want to know if there is any API at the Scripting on IntelliJ, any extension point that I can customize the way that the definition will run, with some custom Enviroment for example
p
I see. In this case I have no idea… Why not try to crosspost in #intellij-plugins ?
n
when i did that in the past.. i basically looked at what
File(".").absoluteFile
is.. as it runs in the same folder as idea maybe you could also see from some system property but afaik .. no easy flag or the like that gets passed to your code