Hi All - I posted this to the TeamCity forum by mistake....
I need to run a batch file on project startup which will setup some environment variables that are needed in order to run the projects various ant build scripts. I need these enviroment variables to be available to my ant scripts which I run inside of IDEA.
Currently I have a batch file that runs the scripts and then runs IDEA but this only works for one project and I can't have another script in another project which does the same thing because only 1 instance of IDEA can run at once.
This is my current script located in "D:\P4Dev\myproject\dir\setup.bat"
call ixmk env
call "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 7.0\bin\idea.exe"
What I would like is on project startup I would like it to run just
call ixmk env
which would be in a file "D:\P4Dev\myproject\dir\setup.bat"
Or if I could just run them each separately would be fine as long as I can run them from the directory "D:\P4Dev\myproject\dir"
I know that I could add the environment variable to the ant properties within IDEA, but there are alot of properties and a lot of build files.
What if I was to write a project plugin that would set the project variables, just like if they were set in the ant properties panel.
How could I set ant build file properties for all ant projects like when you select build file properties and add a property to a single build file, I would want to set them once in my project plugin and then propogate them to all ant build file properties?
Any help is appreciated.