[GRADLE-2556] Atributtes eclipse .classpath file generated from eclipse plugin are not ordered Created: 15/Nov/12  Updated: 10/Feb/17  Resolved: 10/Feb/17

Status: Resolved
Project: Gradle
Affects Version/s: 1.2
Fix Version/s: None

Type: Bug
Reporter: Zbigniew Sokolowski Assignee: Unassigned
Resolution: Won't Fix Votes: 0

Attachments: JPEG File screenshot-1.jpg    

 Description   

As you can see in below generated file order of kind and path attributes is mixed. This is not a problem for eclipse. But it is problem for developers trying to troubleshoot. File becomes unreadable.

Thanks,

<classpathentry sourcepath="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/org.eclipse.jetty.orbit/org.apache.taglibs.standard.glassfish/1.2.0.v201112081803/source/f2702e293dd0cd8879c42a2c079bb0bc542d4b52/org.apache.taglibs.standard.glassfish-1.2.0.v201112081803-sources.jar" kind="lib" path="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/org.eclipse.jetty.orbit/org.apache.taglibs.standard.glassfish/1.2.0.v201112081803/orbit/2c4baa72af1d3aae3a1e029d4f8ca07498dabbe0/org.apache.taglibs.standard.glassfish-1.2.0.v201112081803.jar" exported="true"/>
<classpathentry sourcepath="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/org.eclipse.jetty.orbit/org.apache.jasper.glassfish/2.2.2.v201112011158/source/87830aada7aa722d33067bba07a5e0f967875fde/org.apache.jasper.glassfish-2.2.2.v201112011158-sources.jar" kind="lib" path="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/org.eclipse.jetty.orbit/org.apache.jasper.glassfish/2.2.2.v201112011158/orbit/3945afe6a042228a92da320aec3fa1bc1308183b/org.apache.jasper.glassfish-2.2.2.v201112011158.jar" exported="true"/>
<classpathentry sourcepath="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/org.eclipse.jetty.orbit/com.sun.el/2.2.0.v201108011116/source/bfd5972fdc9c7e7d08376f09b36b9b6a9d89ff5/com.sun.el-2.2.0.v201108011116-sources.jar" kind="lib" path="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/org.eclipse.jetty.orbit/com.sun.el/2.2.0.v201108011116/orbit/15f7774c3fa514835a371f47c152317704ea411a/com.sun.el-2.2.0.v201108011116.jar" exported="true"/>
<classpathentry sourcepath="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/org.eclipse.jetty.orbit/javax.el/2.2.0.v201108011116/source/96fe4d05f5cbd5d4efd2aed9dbcbf002f4444e23/javax.el-2.2.0.v201108011116-sources.jar" kind="lib" path="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/org.eclipse.jetty.orbit/javax.el/2.2.0.v201108011116/orbit/ec8944c11833d84b0283a5afbad0fafb264f86a9/javax.el-2.2.0.v201108011116.jar" exported="true"/>
<classpathentry kind="lib" path="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/org.apache.httpcomponents/httpcore/4.1.4/jar/31cc0a151d458c4b99476805ede9c8accafb734c/httpcore-4.1.4.jar" exported="true"/>
<classpathentry kind="lib" path="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/org.apache.httpcomponents/httpclient/4.1.3/jar/16cf5a6b78951f50713d29bfae3230a611dc01f0/httpclient-4.1.3.jar" exported="true"/>
<classpathentry sourcepath="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/org.aspectj/aspectjrt/1.6.8/source/2e399f32ac7388ecbb042017df2ff1bc1ca8c16/aspectjrt-1.6.8-sources.jar" kind="lib" path="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/org.aspectj/aspectjrt/1.6.8/jar/8c234df6a43dd5ba355803122e33caa7ccd11011/aspectjrt-1.6.8.jar" exported="true"/>
<classpathentry sourcepath="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/com.sun.jersey/jersey-server/1.14/source/9476c8d1dfbd4e3120d77af79a40e97ae574fe16/jersey-server-1.14-sources.jar" kind="lib" path="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/com.sun.jersey/jersey-server/1.14/jar/b1a21724c9b708ed54d42d41bb19ff45ae1d49d9/jersey-server-1.14.jar" exported="true"/>
<classpathentry sourcepath="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/com.sun.jersey/jersey-client/1.14/source/11cb853b4cdbf170e58af6ca4bd99f10ec8f4cd3/jersey-client-1.14-sources.jar" kind="lib" path="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/com.sun.jersey/jersey-client/1.14/jar/16771bec451ce2b79f73b7b36ce19120b0418ffc/jersey-client-1.14.jar" exported="true"/>
<classpathentry sourcepath="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/junit/junit/4.10/source/6c98d6766e72d5575f96c9479d1c1d3b865c6e25/junit-4.10-sources.jar" kind="lib" path="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/junit/junit/4.10/jar/e4f1766ce7404a08f45d859fb9c226fc9e41a861/junit-4.10.jar" exported="true"/>
<classpathentry sourcepath="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/org.mockito/mockito-all/1.9.5/source/b8086d4e4daa361fc746abea62f77a2ae55d3ed9/mockito-all-1.9.5-sources.jar" kind="lib" path="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/org.mockito/mockito-all/1.9.5/jar/79a8984096fc6591c1e3690e07d41be506356fa5/mockito-all-1.9.5.jar" exported="true"/>
<classpathentry kind="lib" path="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/commons-codec/commons-codec/1.4/jar/4216af16d38465bbab0f3dff8efa14204f7a399a/commons-codec-1.4.jar" exported="true"/>
<classpathentry kind="lib" path="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/aopalliance/aopalliance/1.0/jar/235ba8b489512805ac13a8f9ea77a1ca5ebe3e8/aopalliance-1.0.jar" exported="true"/>
<classpathentry kind="lib" path="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/asm/asm/3.1/jar/c157def142714c544bdea2e6144645702adf7097/asm-3.1.jar" exported="true"/>
<classpathentry sourcepath="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/org.sonatype.sisu.inject/cglib/2.2.1-v20090111/source/65030c30094de36e3fddbc22442d47cbf547741f/cglib-2.2.1-v20090111-sources.jar" kind="lib" path="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/org.sonatype.sisu.inject/cglib/2.2.1-v20090111/jar/7ce5e983fd0e6c78346f4c9cbfa39d83049dda2/cglib-2.2.1-v20090111.jar" exported="true"/>
<classpathentry kind="lib" path="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/stax/stax-api/1.0.1/jar/49c100caf72d658aca8e58bd74a4ba90fa2b0d70/stax-api-1.0.1.jar" exported="true"/>
<classpathentry kind="lib" path="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/org.codehaus.jettison/jettison/1.1/bundle/1a01a2a1218fcf9faa2cc2a6ced025bdea687262/jettison-1.1.jar" exported="true"/>
<classpathentry kind="lib" path="C:/Users/cwpl-zsokolow/.gradle/caches/artifacts-14/filestore/javax.xml.bind/jaxb-api/2.2.2/jar/aeb3021ca93dde265796d82015beecdcff95bf09/jaxb-api-2.2.2.jar" exported="true"/>



 Comments   
Comment by Zbigniew Sokolowski [ 15/Nov/12 ]

one more look on the problem and I've found that if a jar has a version with sources then sourcepath attribute is first on the list
it makes file hard to read, it would be convenient if source path would be located after path

Comment by Szczepan Faber [ 16/Nov/12 ]

Thanks for reporting! Feel free to submit a pull request

Comment by Zbigniew Sokolowski [ 16/Nov/12 ]

Thank you very much Szczepan!, but what is a pull request?

Comment by Zbigniew Sokolowski [ 20/Nov/12 ]

what does it mean "pull request" ?

Comment by Szczepan Faber [ 21/Nov/12 ]

See https://github.com/gradle/gradle/blob/master/README.md

Good luck!

Comment by Zbigniew Sokolowski [ 21/Nov/12 ]

I'm not familiar with github but I can't see pull back button, probably because I have only read-only access?
I attached the screenshot. Many thanks!

Comment by Szczepan Faber [ 21/Nov/12 ]

Hey Zbigniew

Please read the available documentation on github and git and I bet that everything becomes clear

Cheers!

Comment by Benjamin Muschko [ 15/Nov/16 ]

As announced on the Gradle blog we are planning to completely migrate issues from JIRA to GitHub.

We intend to prioritize issues that are actionable and impactful while working more closely with the community. Many of our JIRA issues are inactionable or irrelevant. We would like to request your help to ensure we can appropriately prioritize JIRA issues you’ve contributed to.

Please confirm that you still advocate for your JIRA issue before December 10th, 2016 by:

  • Checking that your issues contain requisite context, impact, behaviors, and examples as described in our published guidelines.
  • Leave a comment on the JIRA issue or open a new GitHub issue confirming that the above is complete.

We look forward to collaborating with you more closely on GitHub. Thank you for your contribution to Gradle!

Comment by Benjamin Muschko [ 10/Feb/17 ]

Thanks again for reporting this issue. We haven't heard back from you after our inquiry from November 15th. We are closing this issue now. Please create an issue on GitHub if you still feel passionate about getting it resolved.

Generated at Wed Jun 30 12:25:09 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.