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
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
SrSouza
04/25/2021, 11:56 AM
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
pgreze
04/25/2021, 12:44 PM
I see. In this case I have no idea… Why not try to crosspost in #intellij-plugins ?
n
Nikky
05/06/2021, 7:23 PM
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