[GRADLE-1056] eclipse plugin duplicates src/main/java entry in .classpath Created: 27/Jul/10 Updated: 04/Jan/13 Resolved: 11/Dec/11 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 0.9 |
Fix Version/s: | 1.0-milestone-7 |
Type: | Bug | ||
Reporter: | Philip Crotwell | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 4 |
Attachments: | dupSourceInEclipse.tgz | ||||||||
Issue Links: |
|
Description |
The fix for Eclipse complains with: |
Comments |
Comment by Hans Dockter [ 28/Jul/10 ] |
I can't reproduce this problem. Could you provide a test case? |
Comment by Hans Dockter [ 29/Jul/10 ] |
I can reproduce this problem now under windows. It is related to the file separator. This is fixed now in trunk. |
Comment by Philip Crotwell [ 05/Aug/10 ] |
I am still seeing this and will attach my test case shortly. The behavior is not consistent however, and removing the .classpath before running gradle eclipse seems to make it work correctly, although this could just be coincidence. Here is an example. Note that in the first instance, the .classpath was already there in both subprojects, and after running gradle eclipse there are 2 entries for src/main/java in the .classpath for TauP, although only one for seisFile. TauP depends on seisFile, so perhaps that is related. But then, after removing all the .classpath files and rerunning gradle eclipse, the TauP/.classpath only has one entry for src/main/java. Running it over and over again has so far not reproduced the duplication problem. However, if I manually edit the TauP/.classpath and add the duplication with this line: thanks crotwell$ gradle eclipse ; grep src/main/java */.classpath BUILD SUCCESSFUL Total time: 5.366 secs BUILD SUCCESSFUL Total time: 3.745 secs |
Comment by Philip Crotwell [ 05/Aug/10 ] |
Test case for duplication of src/main/java. > cd dupSourceInEclipse BUILD SUCCESSFUL Total time: 3.986 secs |
Comment by Hans Dockter [ 06/Aug/10 ] |
Thanks a lot for the test case. Which version of Gradle are you using? On what OS are you? Yes. Gradle is merging existing .classpath entries (see the user's guide of rc1). But the plugin is supposed to deal with equal entries. Which works for me when using your test case (e.g. adding a manual entry in TauP/.classpath). I don't get duplicates then. |
Comment by Philip Crotwell [ 06/Aug/10 ] |
Sorry about the version, I should have included that. It seems to still be happening with gradle 0.9-rc1. das-admins-macbook-pro-15:~/dupSourceInEclipse crotwell$ cd TauP ------------------------------------------------------------ Gradle buildtime: Wednesday, 4 August 2010 8:04:33 AM EST das-admins-macbook-pro-15:~/dupSourceInEclipse/TauP crotwell$ grep src/main/java .classpath BUILD SUCCESSFUL Total time: 3.936 secs |
Comment by Raul Piaggio [ 03/Jan/11 ] |
We love Gradle and we rely heavily on the eclipseClasspath functionality, but we have been unable to move past 0.9-preview3 because of this issue. Thank you. |