akhikhl / wuff

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

build succeeds, even if createOsgiManifest Task failed #104

Open ArnoSchmidmeier opened 8 years ago

ArnoSchmidmeier commented 8 years ago

In our build, the createOsgiManifest tasks fails, because the underlying bnd fails, and the build simply continues. and present at the end build successfull

Here is a relevant stacktrace-sample

:de.db.bbz.sbp.logging:createOsgiManifest java.lang.IllegalArgumentException: Invalid syntax for version: 1.0.0.371.201602252121 at aQute.bnd.version.Version.(Version.java:46) at aQute.bnd.osgi.Analyzer.augmentExports(Analyzer.java:1711) at aQute.bnd.osgi.Analyzer.analyze(Analyzer.java:229) at aQute.bnd.osgi.Analyzer.calcManifest(Analyzer.java:618) at org.gradle.api.internal.plugins.osgi.DefaultOsgiManifest.getEffectiveManifest(DefaultOsgiManifest.java:70) at org.gradle.api.internal.plugins.osgi.DefaultOsgiManifest_Decorated.getEffectiveManifest(Unknown Source) at org.gradle.api.internal.plugins.osgi.DefaultOsgiManifest.getEffectiveManifest(DefaultOsgiManifest.java:35) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) at groovy.lang.MetaBeanProperty.getProperty(MetaBeanProperty.java:62) at org.gradle.api.internal.BeanDynamicObject$MetaClassAdapter.getProperty(BeanDynamicObject.java:166) at org.gradle.api.internal.BeanDynamicObject.getProperty(BeanDynamicObject.java:109) at org.gradle.api.internal.CompositeDynamicObject.getProperty(CompositeDynamicObject.java:81) at org.gradle.api.internal.plugins.osgi.DefaultOsgiManifest_Decorated.getProperty(Unknown Source) at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:50) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:296) at org.akhikhl.wuff.OsgiBundleConfigurer.createManifest(OsgiBundleConfigurer.groovy:380) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)

The effect has been observed on Windows 10 , gradle -v is


Gradle 2.9

Build time: 2015-11-17 07:02:17 UTC Build number: none Revision: b463d7980c40d44c4657dc80025275b84a29e31f

Groovy: 2.4.4 Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013 JVM: 1.8.0_60 (Oracle Corporation 25.60-b23) OS: Windows 10 10.0 amd64

kind regards Arno

P.S: Thanks for the helpfull tool wuff