There is a build on https://bndtools.ci.cloudbees.com/job/pkriens.newBuilder/lastSuccessfulBuild/artifact/build/generated/p2/ that I’d like to get some feedback on. It is a complete rewrite of the builder so it needs to be thoroughly tested. Key difference is that now the order is defined by bnd and not Eclipse. That is, all bnd projects are forced to be build in bnd order. (Non bnd projects are kept in the same order and are build after all bnd projects are build.) The Future Builder is more aggressively trying NOT to build so
be aware.
If you put build logging on (bndtools Eclipse preferences) then you can see a complete decision tree in the Error log why a project is decided to be build or not.
My feeling is that large builds are significantly faster. However, before we can integrate this in the main build I need to get some feedback that it actually works for all existing workspaces.
Kind regards,
Peter Kriens
--
You received this message because you are subscribed to the Google Groups "bndtools-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Ferry Huberts
On 11 feb. 2015, at 18:09, Dave <dhum...@gmail.com> wrote:
If you put build logging on (bndtools Eclipse preferences) then you can see a complete decision tree in the Error log why a project is decided to be build or not.
What does the log output mean exactly? If I make a code change say to xxx.integration project I see something like:
The reason that you see no build is that Eclipse calls the builder multiple times. First time there is a delta that triggers a build but then (since I change the generated directory) it calls me again with that change which I ignore. I do not think I can tell Eclipse to not call me for certain directories.xxx.integration no buildxxx.integration 4 files were buildIf I make a change the project but there is a compile error I see:xxx.integration no buildIf I make a change to the impl project I see:xxx no buildxxx 1 file was buildI take this to mean:* both no build and was/were build: it actually built the project
I do not recognize those messages. Can you send them? Do you have non bnd projects?* no build (only): project is in the dependency chain, but did not try/could not complete the build* <no message>: project not on dependency chain, did not build
I hope this is clear now :-)The “no build" message is what is confusing.
Still need to do more testing to see if things are faster, but it seems like it would be.Thanks,Dave--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-user...@googlegroups.com.
On 11 feb. 2015, at 18:34, Dave <dhum...@gmail.com> wrote:I have Ant tasks that must be run to build some resources. At some point I would like to integrate those more so into bnd build, but until then with the older (current) build I can run the Ant task, refresh the project containing the Ant built resources and bnd will build the bundle with the newly built resources.However, it seems like the "future" builder works differently. For example, I have some class files that are enhanced by DataNucleus through an Ant target. The enhanced class files go in an enhance-bin folder. When I refresh the project (so Eclipse knows about the updated resources), bnd does not build the bundle (I don't see any messages in the error log like no analysis is done). I do have "-classpath: enhance-bin" in the bnd file so the bin folder should be picked up. If I delete the bundle, a new bundle will be created with the enhanced class files. Maybe, this is just an event that needs to be handled?Also, I notice the builder analyzes projects before any Ant target is run from Eclipse. I wouldn't think this would be necessary. Is there a reason for this?Thanks,Dave
On 12 feb. 2015, at 14:11, Dave <dhum...@gmail.com> wrote:We are actually using "Include-Resource" to include non Java class files for that bundle. How does that header compare with -includeresource? Are they basically the same thing? What happens if both are set?
On 06/02/15 19:46, BJ Hargrave wrote:
On Feb 6, 2015, at 13:37 , Ferry Huberts <mail...@hupie.com> wrote:How do you express this in the bnd project's bnd.bnd file? In the -buildpath?
I can have a bnd project that depends on a non-bnd project
I don't have it personally, but you can express this in Eclipse's project settings.
You'd then also need to express this in the offline build ofcourse.
It's possible.
I'm not saying how, just that that it's possible.
And from what I remember is that your OSGi build has/had it too; cnf supposedly contained code that needs/needed to be built before other projects.
(and visa-versa)This should be covered by putting the bnd projects earlier in the build order than non-bnd projects.
yes.
However, both situations can be present _at_the_same_time_.
There might even be projects that both depend on one or more bnd projects _and_ are dependencies for one or more bnd projects.
On 12 feb. 2015, at 14:11, Dave <dhum...@gmail.com> wrote:
We are actually using "Include-Resource" to include non Java class files for that bundle. How does that header compare with -includeresource? Are they basically the same thing? What happens if both are set?
On Thursday, February 12, 2015 at 3:48:28 AM UTC-5, Peter Kriens wrote:
You received this message because you are subscribed to the Google Groups "bndtools-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-dev...@googlegroups.com.
Peter and I have completed the work and have integrated the new builder and new classpath container implementation (thanks Carter!) into the master branch. So the futurebuilder branch and build are now obsolete.
-- Ferry Huberts
-- Ferry Huberts
I've tried it a bit, not extensive by far, works so far.
One quite annoying thing is that code completion no longer shows the parameter names but generic arg0, arg1, etc names.
That - to me - is loss of usability/friendlyness.
-- Ferry Huberts
Hi Ferry,
That sounds like a lack of proper source attachment - do you see the same thing happening with version=project and version=latest? Also, are the affected projects including the source in the Jar file, and if not does that make a difference?
-- Ferry Huberts