Problems building a p2 site

2 views
Skip to first unread message

Niklaus Giger

unread,
Dec 29, 2011, 8:46:58 AM12/29/11
to build...@googlegroups.com
Hi

I tried to create a simple P2 site using:
buildr (1.4.6 java)
buildr4osgi (0.9.6)

With the attache buildfile I only get an error when calling build package
> ** Execute
> /opt/elexis-buildr/elexis-base/p2_site.test/target/demo.libraries.feature-
> 1.0-sources.zip Exception while invoking prerequisites of task <Rake::Task
> demo.libraries:package => [demo.libraries:build,
> /opt/elexis-buildr/elexis-base/p2_site.test/target/demo.libraries-1.0.zip,
> /opt/elexis-buildr/elexis-base/p2_site.test/target/demo.libraries-1.0-p2.z
> ip]> Buildr aborted!
> NoMethodError : undefined method `+' for nil:NilClass
> /home/niklaus/.rvm/gems/jruby-1.6.3/gems/buildr4osgi-0.9.6/lib/buildr4osgi/
> eclipse/feature.rb:398:in `package_as_SDK_feature'
<...>

I could not trace the problem, even if I tried to read the spec-examples.

Best regards


--
Niklaus Giger

buildfile

Antoine Toulme

unread,
Jan 5, 2012, 1:31:30 PM1/5/12
to build...@googlegroups.com
The easiest way is to stick a debugger statement in the buildr4osgi code. I suspect something is missing in the feature.xml or in the feature declaration.

I also see your feature has no plugins declared ? Please feel free to fork and fix buildr4osgi if you find something blatantly wrong.

Niklaus Giger

unread,
Jan 7, 2012, 10:09:09 AM1/7/12
to build...@googlegroups.com, Antoine Toulme
Hi Antoine

I think I made a mistake with my buildfile.

I started a small project with a few examples of the problems I faced. A
working example for a p2site can be found under

https://github.com/ngiger/buildr-examples/blob/master/p2site/buildfile
(also attached)

Thanks for your help

Best regards

Niklaus

buildfile
Reply all
Reply to author
Forward
0 new messages