[GRADLE-2894] 'resource' method on WtpComponent overwrites default wb-resource instead of adding Created: 22/Sep/13 Updated: 10/Mar/15 Resolved: 10/Mar/15 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | None |
Fix Version/s: | 2.4-rc-1 |
Type: | Bug | ||
Reporter: | Gradle Forums | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 1 |
Description |
Tested on Gradle 1.5 and Gradle 1.7 Consider this code block in a script: eclipse { According to documentation, a wb-resource element with sourcePath 'profiles/development/src/main/webapp' and deployPath 'foobar' should be added to the org.eclipse.wst.common.component. Instead the result is this: ... To get the documentation behavior one has to restate the default: eclipse { Either this is a bug, or the documentation is wrong. Note that this project is a child project in a multiproject build. |
Comments |
Comment by Gradle Forums [ 22/Sep/13 ] |
I think what the documentation tries to convey is that multiple calls to `resource` are additive, not that the defaults are kept. |
Comment by Gradle Forums [ 22/Sep/13 ] |
Please update the documentation since it was not clear at all to me (and I guess a lot of other users too). |