Something which makes me rage right now, and which would probably make you not to switch from eclipse is this:
“Artifacts” (generating jar files…)
Generally they work perfectly. They’re much too complicated, but they work. The problem is: What if you’ve got 2 main functions in one project and want to have two seperate Artifacts for that purpose. That means you’ve got two different MANIFEST.MF files… which IDEA supports in theory. (Guy having this problem and solving it…)
Well… actually you only need to create two of those MANIFEST files and then make each Artifact use the right one… This works in theory, and this is how my Artifact manifest properties look like:
What the artifacts do, or should do, is take the list of files and archieves and search for MANIFEST.MF files there. If it finds multiple manifest files, it should take the one which is the first on the list (therefore there are arrows). Unfortunately this doesn’t work…
It only works, when I name the folder “META-INF”, but how should I place two manifest files in there then, which both need to have the name MANIFEST.MF? I’ve tried creating two manifests like this: “server/META-INF/MANIFEST.MF” and “client/META-INF/MANIFEST.MF” and linking them, but this didn’t work again.
The “IntelliJ IDEA 12.0 Web Help” tells me how that Dialog should look like:
http://www.jetbrains.com/idea/webhelp/output-layout-tab.html#manifestFile
Everything is okey there: Option “Manifest File:”, “Main Class”, “Class Path” etc… but whats up with “Create Manifest” and “Use Existing manifest”?
(I should note here, that the “Manifest File” Text field is not modifiable…)
I have checked it: IntelliJ IDEA 12.0.4 …
Either I am completely blind, stupid, or I think there is something wrong…
It would be awesome if anyone could tell me how to fix this problem. Or at least point me to the position where I find the button “Use Existing Manifest” 