I am continuing working on my http://github.com/ngiger/buildr4osgi-
playground.git.
In a project were I am working at, there are a lot of weird naming
conventions, which are not yet handled correctly by buildr4osgi.
Problem is: project com.example.lib defines a Bundle-SymbolicName
we.dont.respect.conventions. The project can be built without any problem, but
the projects trying to use it complain with "Package com.example.lib does
exist".
The commit 1a945d6706059a6ef5ca056f21d1c3e8662c1986 exhibits the following
behaviour:
> jruby -S buildr osgi:clean:dependencies osgi:resolve:dependencies \
> osgi:install:dependencies
<..>
> jruby -S buildr clean compile
>
> (in /buildr4osgi-playground, development)
> Cleaning com.example.mail.buildr4osgi
> Compiling com.example.mail.buildr4osgi
> Compiling com.example.mail.buildr4osgi:com.example.lib into
> /buildr4osgi-playground/com.example.lib/bin/main/classes Packaging
> com.example.lib-1.0.0.jar
> Compiling com.example.mail.buildr4osgi:com.example.mail into
> /buildr4osgi-playground/com.example.mail/bin/main/classes
> /buildr4osgi-playground/com.example.mail/src/com/example/mail/View.java:16
> : package com.example.lib does not exist import com.example.lib.SmallLib;
>
> ^
>
> /buildr4osgi-playground/com.example.mail/src/com/example/mail/View.java:24:
> cannot find symbol symbol : class SmallLib
> location: class com.example.mail.View
>
> SmallLib dummy = new SmallLib(new String(ID));
> ^
>
> /buildr4osgi-playground/com.example.mail/src/com/example/mail/View.java:24:
> cannot find symbol symbol : class SmallLib
> location: class com.example.mail.View
>
> SmallLib dummy = new SmallLib(new String(ID));
>
> ^
>
> Note:
> /buildr4osgi-playground/com.example.mail/src/com/example/mail/NavigationVi
> ew.java uses unchecked or unsafe operations. Note: Recompile with
> -Xlint:unchecked for details.
> 3 errors
> Buildr aborted!
> RuntimeError : Failed to compile, see errors above
>
> (See full trace by running task with --trace)
I did not file a bug as
http://forge.intalio.org/jira/secure/BrowseProject.jspa?id=10020
gives "Service Temporarily Unavailable". (Link is still wrong on buildr4osgi
homepage).
Best regards
Niklaus
Am Sonntag 31 Oktober 2010, um 20:28:17 schrieb Antoine Toulme:
> Make sure the project is part of dependencies.yml. What you resolve is
> reused at compiling time. So it's probably a bug in the resolution.
>
> I restarted jira on intalio.org. It should be up in minutes.
>
created http://forge.intalio.org/browse/BOSGI-44
and attached the dependencies.yml (also below).
Best regards
Niklaus Giger
Am Sonntag 31 Oktober 2010, um 21:36:14 schrieb Antoine Toulme:
> Thanks for filing a bug. We won't have time to work on it before some time,
> so if you feel like it, try creating a spec to reproduce it with a small
> example.
I will try. But when I run "rake -T" in my buildr4osgi checkout I don't see
any test/spec-tasks.
> rake -T
>
> (in /opt/src/buildr4osgi)
> Buildr uses RSpec. You can install it by running rake setup
> Buildr uses the SDoc RDoc generator/theme. You can install it by running
> rake doc:setup Buildr uses the mojombo-jekyll to generate the Web site.
> You can install it by running rake doc:setup rake all-in-one #
> Create JRuby all-in-one distribution
> rake buildr.pdf # Generate Buildr documentation as buildr.pdf
> rake clobber # Clean up all temporary directories used for running
> tests, creating documentation, packaging, etc. rake clobber_package #
> Remove package products / Remove package products / Remove package
> products / Remove package products rake clobber_rdoc # Remove rdoc
> products
> rake compile # Compile Java libraries used by Buildr
> rake dependency # Look for new dependencies, check transitive
> dependencies rake gem # Build the gem file
> buildr4osgi-0.9.6.gem / Build the gem file buildr4osgi-0.9.6-java.gem /
> Build the gem file buildr4osgi-0.9.... rake install # Install
> Buildr from source
> rake license # Check that source files contain the Apache license
> rake package # Build all the packages / Build all the packages /
> Build all the packages / Build all the packages rake rdoc #
> Build the rdoc HTML Files
> rake repackage # Force a rebuild of the package files / Force a
> rebuild of the package files / Force a rebuild of the package files /
> Force a r... rake rerdoc # Force a rebuild of the RDOC files
> rake setup # If you're building from sources, run this task
> first to setup the necessary dependencies. rake site # Build a
> copy of the Web site in the ./_site rake snapshot # Upload
> snapshot packages over to people.apache.org rake uninstall #
> Uninstall previous rake install
Can you give me a hint?
Best regards
Niklaus
>
> Thanks,
>
> Antoine
>
> 2010/10/31 Niklaus Giger <niklau...@member.fsf.org>
>
> > Thanks for your prompt response:
> >
> > Am Sonntag 31 Oktober 2010, um 20:28:17 schrieb Antoine Toulme:
> > > Make sure the project is part of dependencies.yml. What you resolve is
> > > reused at compiling time. So it's probably a bug in the resolution.
> > >
> > > I restarted jira on intalio.org. It should be up in minutes.
> >
> > created http://forge.intalio.org/browse/BOSGI-44
> > and attached the dependencies.yml (also below).
> >
> > Best regards
> >
> > Niklaus Giger
--
Niklaus Giger
Wieshoschet 6
CH-8753 Mollis
+41 (0)55 612 20 54 P
+41 (0)55 618 64 68 G
jruby -S rake setup
(in /opt/buildr4osgi)
Buildr uses the mojombo-jekyll to generate the Web site. You can install it by
running rake doc:setup
Buildr uses RSpec. You can install it by running rake setup
Also gems like classifier throw the following error:
/usr/lib/jruby/bin/jruby extconf.rb
WARNING: JRuby does not support native extensions or the `mkmf' library.
Check http://kenai.com/projects/jruby/pages/Home for alternatives.
extconf.rb:2: undefined method `create_makefile' for main:Object
(NoMethodError)
Would other platforms (Windows/MacOSX) be easier?
Best regards
Niklaus
Now I am able to
cd /path/to/buildr4osgi/spec/osgi
spec1.9.1 *.rb
This however gives me 9 failures as seen in the attached spec.log. Is this the
expected output?
Anyway I have now the tools to write a small spec for my problem,
Best regards
Niklaus Giger