Is there a way to tell gradle to not touch eclipse .classpath? Especially since there is nothing that needs to change. Here is a sample .classpath:
<?xml version="1.0" encoding="UTF-8"?> <classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="conf"/>
<classpathentry kind="src" path="docs"/>
<classpathentry kind="src" output="testclasses" path="test"/>
<classpathentry kind="con" path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?project=test1&ivyXmlPath=ivy.xml&confs=*"/>
<classpathentry kind="con" path="org.springsource.ide.eclipse.gradle.classpathcontainer"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="classes"/> </classpath>
After I run gradle->Refresh Dependencies in eclipse it turns into:
<?xml version="1.0" encoding="UTF-8"?> <classpath>
<classpathentry kind="src" path="conf"/>
<classpathentry kind="src" path="docs"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" output="testclasses" path="test"/>
<classpathentry kind="con" path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?project=test1&ivyXmlPath=ivy.xml&confs=*"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.springsource.ide.eclipse.gradle.classpathcontainer"/>
<classpathentry kind="output" path="classes"/> </classpath>
Notice that the only difference is the order of src directories: original: src, conf, docs, test after: conf, docs, src, test
Since I like the original ordering, I always end up reverting the changes.
Is there a way to avoid having to do that?
Many thanks, Branko