Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » setup for project using Bndtools and a Bnd Workspace
setup for project using Bndtools and a Bnd Workspace [message #1798561] Tue, 20 November 2018 13:04 Go to next message
M.Wirth Mising name is currently offline M.Wirth Mising nameFriend
Messages: 5
Registered: July 2009
Junior Member
We are using oomph-setups for many projects and it is working very well.
With every project using a Bnd Workspace the project import (exactly the first compile) is very slow. If this first compile is canceled in the progress view the second compilation wich starts automatically is as fast as usual.

Enclosed a very simple snippet from the setup:

<?xml version="1.0" encoding="UTF-8"?>
<setup:Project
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:git="http://www.eclipse.org/oomph/setup/git/1.0"
    xmlns:projects="http://www.eclipse.org/oomph/setup/projects/1.0"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    xsi:schemaLocation="http://www.eclipse.org/oomph/setup/git/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Git.ecore http://www.eclipse.org/oomph/setup/projects/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Projects.ecore"
    name="jaxrs-with-osgiR7-and-bndtools"
    label="jaxrs-with-osgiR7-and-bndtools">
  <setupTask
      xsi:type="git:GitCloneTask"
      id="git.clone.jaxrs-with-osgiR7-and-bndtools"
      remoteURI="git@****:rnd/jaxrs-with-osgiR7-and-bndtools.git"
      pushURI="">
    <description>cloning jaxrs-with-osgiR7-and-bndtools</description>
  </setupTask>
  <setupTask
      xsi:type="projects:ProjectsImportTask"
      id="import.jaxrs-with-osgiR7-and-bndtools">
    <sourceLocator
        rootFolder="${git.clone.jaxrs-with-osgiR7-and-bndtools.location}"/>
  </setupTask>
  <stream name="master"
      label="master"/>
</setup:Project>



Does anyone have the same problem and even a solution?
Re: setup for project using Bndtools and a Bnd Workspace [message #1798582 is a reply to message #1798561] Tue, 20 November 2018 16:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Oomph setup task performer disables auto build while the setup tasks are performing and re-enables it again (if it was enabled), after its done. So I assume the build is kicking in afterwards, but at this point, it's just the workspace doing normal build. I don't know why the first such build would be very slow...

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: setup for project using Bndtools and a Bnd Workspace [message #1798588 is a reply to message #1798582] Tue, 20 November 2018 16:36 Go to previous messageGo to next message
M.Wirth Mising name is currently offline M.Wirth Mising nameFriend
Messages: 5
Registered: July 2009
Junior Member
I found this: https://github.com/bndtools/bndtools/issues/1881
I will test it.
Re: setup for project using Bndtools and a Bnd Workspace [message #1798592 is a reply to message #1798588] Tue, 20 November 2018 16:58 Go to previous messageGo to next message
M.Wirth Mising name is currently offline M.Wirth Mising nameFriend
Messages: 5
Registered: July 2009
Junior Member
solution which works for me:

1. clone repo
2. import project cnf
3. build project cnf
4. import other project
5. build other project
...

Re: setup for project using Bndtools and a Bnd Workspace [message #1798596 is a reply to message #1798592] Tue, 20 November 2018 20:15 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Note that Oomph has a Projects Build task, so I think you could automate this to import these cnf project(s) first, run a Projects Build task to build those projects, and then import the other project(s). You can see examples in other project setups. E.g, sometime setups need to build some projects first in order to launch some builder task (e.g., a Model Workflow Engine process).

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: setup for project using Bndtools and a Bnd Workspace [message #1798614 is a reply to message #1798596] Wed, 21 November 2018 08:00 Go to previous message
M.Wirth Mising name is currently offline M.Wirth Mising nameFriend
Messages: 5
Registered: July 2009
Junior Member
Hello Ed,

thanks for your hints. This is what I do now. Import cnf-project, build, import other projects.

Regards,
Michael
Previous Topic:How to enable Apply Configuration to a custom configuration setup
Next Topic:How do I develop/debug an oomph setup Task
Goto Forum:
  


Current Time: Thu Apr 18 08:24:22 GMT 2024

Powered by FUDForum. Page generated in 0.03013 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top