sirthias/parboiled — pull request #57 by DaGenix (2013-02-28 04:19:39+00:00)
Title: Small infrastructure patches

Hi,

I wrote a few patches to to update .gitigore for eclipse projects, update the build to include required plugins (sbt-pgp), and to use the sbt-osgi plugin to generate osgi bundles. All 3 patches are pretty straightforward. The patch to generate osgi bundle information results in the publish-local command publishing the bundles to a bundle/ directory in ~/.ivy2. I think this is OK, but, I'm not an expert OSGI or publishing to ivy repos, so, someone who knows that better should doublecheck that.

I tested the first patch just by checking that the eclipse files were ignored by git status and the second just by confirming that sbt loads. I tested the 3rd patch by loading the three main modules into an OSGI container and verifying that classes in the org.parboiled package were accessible. Since both the parboiled-core and parboiled-java modules both have classes in the org.parboiled package, I implemented parboiled-java as an OSGI fragment package so that anyone using that package can see classes from both packages. I don't believe there is any other way to accomplish that other than by using a Fragment package, but, as I said, I'm not an OSGI expert.

All patches are my work and license them under the parboiled license.

-Palmer Cox