akhikhl / wuff

Gradle plugin for automating assembly of OSGi/Eclipse bundles and applications
MIT License
152 stars 51 forks source link

Problem with PluginUtils #16

Closed r02b closed 10 years ago

r02b commented 10 years ago

Hi Andrey,

I'm hoping you could help me with another problem.

I finally got to compiling (one of) my main project, which is a proper plugin. I'm using the ide-bundle plugin. Gradle/wuff finds my plugin.xml file, however I get the following error:

What went wrong: Execution failed for task ':createOsgiManifest'.

No such property: @class for class: java.lang.String Possible solutions: class

The stack trace led me to PluginUtils.groovy, line 134: def classes = pluginConfig.extension.'*'.findAll({ it.'@class' }).'@class' + pluginConfig.extension.'*'.findAll({ it.'@contributorClass' }).'@contributorClass'

I'm a newbie to Gradle and Groovy, so I wanted to make sure this is me doing something wrong, and not a wuff bug.

As usual, your input will be greatly appreciated.

Just for the record, here's the original trace:

akhikhl commented 10 years ago

Lets fix the problem :smile: First questions:

  1. Which version of gradle you use?
  2. Can you provide the relevant "plugin.xml" file?
r02b commented 10 years ago

So, this is where I start to feel like I've jumped the gun... realizing I can't provide you with the plugin.xml file, I went over the information provided while using the --info tag. That caused the printout of the file (a parsed version of it), and through that I was able to find that there was a bit of unrelated text that got stuck in there, which caused the error. It's all fine now :)

Thanks again! (and yes, like the previous issue, it's just a matter of error notification, nothing else)

akhikhl commented 10 years ago

I'm happy the problem is solved :smile: