IML File Format??

I have a few plugins under my belt and am wondering how to solve a new problem.

I have developed a complex IVY build system using ANT.  Everything can be done from the command line except, of course, for code editing and debugging.  That is where IntelliJ comes in.  I need a fast way to configure an IntelliJ project with proper source code and dependencies (retrieved via IVY).  I have just tried the latest IvyIdea that won honorable mention in the past plugin contest, but I didn't get very far.  I use ANT properties inside my IVY settings file which apparently this plugin can't handle.  However, even if it did handle my properties, I believe it still will only solve the dependencies problem.  It won't help to configure an IntelliJ project from scratch.

I was wondering if it would be easy to generate an IML file from my ANT/IVY build system since it knows all the information necessary to provide to IntelliJ?  This would also give me the ability for greater customization.  So my questions are:

1. Would generating an IML from ANT be a good idea to solve this problem?
2. Where can I find the syntax/grammar for the IML format?
3. Can I use the plugin API somehow to help in generating this IML format so that I won't have to maintain my IML format as it changes as IntelliJ upgrades to newer versions?

1 comment
Comment actions Permalink

Hello Shawn,

A more appropriate solution is probably to support importing projects from
Ivy in a similar way as it's done for Maven and Eclipse, but it's far more
effort to implement comparing to generating .iml files.

We don't provide any documenation on the format, and our OpenAPI isn't designed
to be used from an external tool, but the good news is that the basic format
of the .iml file (roots and dependencies) has remained stable for a long
time.

I have a few plugins under my belt and am wondering how to solve a new
problem.

I have developed a complex IVY build system using ANT. Everything can
be done from the command line except, of course, for code editing and
debugging. That is where IntelliJ comes in. I need a fast way to
configure an IntelliJ project with proper source code and dependencies
(retrieved via IVY).
I have just tried the latest IvyIdea that won honorable mention in
the past plugin contest, but I didn't get very far. I use ANT
properties inside my IVY settings file which apparently this plugin
can't handle. However, even if it did handle my properties, I believe
it still will only solve the d
ependencies problem. It won't help to configure an IntelliJ project
from scratch.
I was wondering if it would be easy to generate an IML file from my
ANT/IVY build system since it knows all the information necessary to
provide to IntelliJ? This would also give me the ability for greater
customization. So my questions are:

1. Would generating an IML from ANT be a good idea to solve this
problem?

2. Where can I find the syntax/grammar for the IML format?

3. Can I use the plugin API somehow to help in generating this IML
format so that I won't have to maintain my IML format as it changes as
IntelliJ upgrades to newer versions?

---
Original message URL:
http://www.jetbrains.net/devnet/message/5239110#5239110

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.