Selena - Linking to Eclipse project messes up the output path in .classpath

I am using Selena build #6913. I have linked to my eclipse project and set the output in intellij to "Use module compile output path". I set the output path to something specific so that the project will compile to the same location as eclipse and then intellij changes the .classpath file's output entry to be incorrect.

Example:

1. Eclipse .classpath entry before Intellij changes:
2. In Intellij, link the module to eclipse and set the module compile output path to "[module location]\target\eclipse" 3. Intellij changes the .classpath entry to: ]]>
4. Now eclipse builds to the "[module location]\bin" directory.

If I change the .classpath back to its original entry, intellij will change the .classpath file again to point the output entry to the bin directory. Is there something else I need to do to get this to work correctly?

Message was edited by:
melody

2 comments

Hello melody,

Thanks for the feedback, this is now fixed (http://www.jetbrains.net/jira/browse/IDEADEV-16369).
A copy of the resolution note:


IDEA does not try to import/export compiler output paths to/from Eclipse,
for the following reasons:

1. There is no way to squeeze both production and test output paths into
a single Eclipse setting
2. In IDEA you can use any directory for compiler output, in Eclipse the
output directory must be under the project root
3. Sharing the same output directory is not safe anyway: Eclipse gets
very confused when it finds .class files generated by javac (not Eclipse
compiler) in its output directory.

What IDEA did wrong was overwriting Eclipse output path setting with the
default value. This is now fixed.

So if you still want to do that, you need to input the same path manually
in IDEA and in Eclipse.

Best regards,

Vladislav Kaznacheev
Project Manager, IntelliJ IDEA
http://www.jetbrains.com
"Develop with Pleasure!"

I have linked to my eclipse project and set the output in intellij to
"Use module compile output path". I set the output path to something
specific so that the project will compile to the same location as
eclipse and then intellij changes the .classpath file's output entry
to be incorrect.

Example:

1. Eclipse .classpath entry before Intellij changes:

<classpathentry kind="output" path="target/eclipse"/>

2. In Intellij, link the module to eclipse and set the module compile
output path to "[module location]\target\eclipse"

3. Intellij changes the .classpath entry to: <classpathentry
kind="output" path="bin" />

4. Now eclipse builds to the "[module location]\bin" directory.

If I change the .classpath back to its original entry, intellij will
change the .classpath file again to point the output entry to the bin
directory. Is there something else I need to do to get this to work
correctly?



0

Thanks for the very fast response!

0

Please sign in to leave a comment.