| Priority |
Major |
| Type | Bug |
| State | Fixed |
| Assignee | Anna Kozlova |
| Subsystem | Editor. Editing Text |
| Affected versions |
No affected versions
|
| Fixed in |
No fix versions
|
| Fixed in build |
Next build |
| Build |
7104
|
| Fixed in build |
8190
|
| Severity |
0
|
IDEA-40211 |
IDEA deletes .classpath file if it doesn't have a src entry |
|
|
May I ask you why you need a project without a source root?
<?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="output" path="bin"/> </classpath>
The "con" path is ignored, because it is JDK. The "output" is ignored by design. After import into IDEA and linking .iml to .classpath the .classpath is erased on each next save. Which is really the defect.
If .classpath has at least one user library:
It is not erased.
But user meets very bad side effect. Since IDEA thinks that .classpath is not the part of IDEA project anymore, it rejects all changes in .classpath. So, user may change anything in Eclipse: add new libraries, and even source roots, but on return in IDEA and save all .classpath is removed again.