[GRADLE-633] Findbug Ant task doesn't work - "unexpected token: class" Created: 11/Sep/09 Updated: 04/Jan/13 Resolved: 13/Sep/09 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | ||
Reporter: | Tomek Kaczanowski | Assignee: | Hans Dockter |
Resolution: | Won't Fix | Votes: | 0 |
Attachments: | findbugs.zip |
Description |
if you include such snippet in build.gradle: findbugs(home: '/home/tomek/bin/findbugs', output:'xml') { sourcePath(path: 'src/main/java') class(location: 'build/libs/findbugs-unspecified.jar') } } it will fail with the following message:
looks like "class" is treated as reserved keyword and can't be included in the build script like this This makes impossible to use Findbugs from build.gradle via its Ant task (class parameter is required by Findbugs) Attached project illustrates this behaviour. – |
Comments |
Comment by Adam Murdoch [ 11/Sep/09 ] |
You can quote the class method: findbugs(...) {
"class"(location: ...)
}
|
Comment by Hans Dockter [ 13/Sep/09 ] |
We can't really do anything about that. But that's a good issue for the faq/cookbook. |