On 31/07/13 18:25, Raymond Auge wrote: > Hello all, > > I was wondering if anyone ever created a tool that would "review" a > project source, and based on a single initially supplied version, apply > package versionning to the sources (including detection of > consumers/providers). > > Our project has tens of thousands of classes and I'm trying to bootstrap > initial versionning. > > Note that I fully realize that such tools are likely to make wrong > assumptions particularly where it's unclear about "internal" > implementation details (private packages). >
I'm not really sure what you're asking, but if you had no version before than the initial version will be 1.0.0. Otherwise you'd need to compare the previous released version of the bundle with the bundle that is built from the source tree. bnd can do that for you, it has a diff command that shows the diff and suggests a new version. bndtools can also do that for you automatically.... You can use the release tooling of bnd/bndtools to set up all versions. If you install our latest stable build from https://bndtools.ci.cloudbees.com/job/bndtools.master/lastSuccessfulBuild/artifact/build/generated/p2/ then you can enable baselining (a work in progress) to manage all versions. The baselining will account for provider/consumer types and many more cases. Enabling baselining is done by adding '-baseline: *' to the bnd file. -- Ferry Huberts _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
