Is there any programatic access to project files, outside of intellij? Basically, i'd like to write some ANT tasks to manipulate the project files (adding libraries, etc...). We need to do these things because users checkout a base project file, and then it needs to be changed based on environment variables such as CATALINA_HOME and so forth.
I'd like to not have to directly manipulate the XML, but would rather have a model to work with, and then serialize the .ipr, .iws, and .iml files to disk when i was done with them.
Anyone have any suggestions?