I am trying to migrate a quite large Eclipse RCP application to buildr
(the code lives at http://elexis.hg.sourceforge.net/hgweb/elexis/elexis-base).
First I ran into a problem that I could not run osgi:install:dependencies,
because a rm in ~/.m2 failed. Applying the following patch fixed this problem:
--- a/lib/buildr4osgi/osgi/project_extension.rb
+++ b/lib/buildr4osgi/osgi/project_extension.rb
@@ -185,7 +185,7 @@ module OSGi
if local
artifact = Buildr::artifact(bundle.to_s)
installed = Buildr.repositories.locate(artifact)
- rm_r installed
+ rm_rf installed
mkpath File.dirname(installed)
Buildr::artifact(bundle.to_s).from(bundle.file).install
info "Installed #{installed}"
diff --git a/spec/osgi/packaging_spec.rb b/spec/osgi/packaging_spec.rb
index fd90391..2670737 100644
Then I was unable to run "rake spec" (or only ruby or jruby) as I got the
following error:
rake spec:ruby
(in /home/src/buildr4osgi)
Running test suite using Ruby ...
ruby -S rake spec
(in /home/src/buildr4osgi)
Compiling Java libraries ...
ruby1.8 /home/src/buildr4osgi/_buildr --buildfile buildr.buildfile compile
ruby1.8: No such file or directory -- /home/src/buildr4osgi/_buildr (LoadError)
rake aborted!
Command failed with status (1): [ruby1.8 /home/src/buildr4osgi/_buildr --
bu...]
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [ruby -S rake spec...]
(See full trace by running task with --trace)
Best regards
--
Niklaus Giger
Thanks for your quick replay.
Best regards
Niklaus
--
Niklaus Giger
Wieshoschet 6
CH-8753 Mollis
+41 (0)55 612 20 54 P
+41 (0)55 618 64 68 G
The link on the Web-page http://oss.intalio.com/buildr4osgi/ points to
http://jira.intalio.org/jira/secure/BrowseProject.jspa?id=10020
which does not work for me.
Can you give me the correct link? Then I will report both bugs (with patches).
Thanks in advance.
Niklaus