Details
-
Type:
Bug
-
Status:
Open
-
Resolution: Unresolved
-
Affects Version/s: 1.0-rc-3
-
Fix Version/s: None
Description
I'm in the following situation. I have a configuration property in gradle.properties that lets me choose whether to pick up dependencies from a remote Maven repository or from the local filesystem. Whenever I switch from one setting to the other and I run "gradlew eclipse", while the .classpath is correctly updated (removing the JARs that are not in the dependencies any more and adding the JARs that are now in the depencencies), the .settings/org.eclipse.wst.common.component file is updated so that only the new JARs are added, but those that are not in the dependencies any more are kept.
The net result in my use case is that I have all the JARs in the Web App Libraries container twice (both coming from the local filesystem and from the remote Maven repository), while I should have them just once, coming from the local filesystem or from the remote Maven repository depending on the property value I mentioned before.
Apart from my particular use case, my feeling is that if I remove a dependency from my project and I run "gradlew eclipse", that dependency will still be kept in the .settings/org.eclipse.wst.common.component file, unless I do a "gradlew cleanEclipseWtpComponent" before.
So, is there a reason for this different update strategy between .classpath and .settings/org.eclipse.wst.common.component files?
I don't think that there is a reason for it. I consider it as a bug (do you mind submitting a pull request?
.
I assume that running 'cleanWtpComponent' is a reasonable workaround for the time being?