Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3
-
None
-
None
-
Patch
Description
Currently, the ordering of items on the generated .classpath is controlled by the JVM's HashSet ordering.
One effect of this is that the project-07 and project-33 tests are currently commented out, because it's impossible to write an expected/.classpath file that works everywhere.
More generally, it's bad that the classpath ordering can vary between platforms and JVM orderings.
Therefore, I think it would be a good idea to sort the classpath. This would be done by invoking Collections.sort in AbstractIdeSupportMojo.doDependencyResolution. IdeDependency already implements Comparable, on the basis of groupId+artifactId+type. Classifier should be added to the properties considered in compareTo.
Patch attached as described above.
Attachments
Attachments
Issue Links
- is related to
-
MECLIPSE-152 Write .classpath with ordered dependencies [incl. Patch]
- Closed