Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » File reference of a modular target in project profile?
File reference of a modular target in project profile? [message #1755903] Thu, 09 March 2017 08:50 Go to next message
Malte Brunnlieb is currently offline Malte BrunnliebFriend
Messages: 27
Registered: February 2011
Junior Member
Hi,

I was defining a modular target for the target environment to compile against within my Oomph project profile. I was wondering, that I have to define it again for SWTBot tests running with maven. While I do not yet know, whether it is even possible to reference a *.target file for a target-platform-configuration in maven to be used also by SWTBot.
But is it possible to reference a *.target file coming with project repository to be enabled by Oomph?

Best Regards,
Malte
Re: File reference of a modular target in project profile? [message #1755912 is a reply to message #1755903] Thu, 09 March 2017 09:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
I'm having a hard time figuring out what exactly you are asking. There is a Target Definition task that can activate a *.target from the repository (by name). What we do for Oomph for our Maven builds is generate a .target file during Targlet resolution and commit for use by the Maven/Tycho build. You can look the annotations used in Oomph's own setup for generating a .target.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: File reference of a modular target in project profile? [message #1755926 is a reply to message #1755912] Thu, 09 March 2017 10:35 Go to previous messageGo to next message
Malte Brunnlieb is currently offline Malte BrunnliebFriend
Messages: 27
Registered: February 2011
Junior Member
Ok, it was meant the other way around. First defining the *.target file and committing it to a repository.
Afterwards pointing at it with Oomph. But you are right. Your solution sounds more convincing. I will have a look at the Oomph repository.
Can you provide any pointer out of mind? Otherwise, I will search by myself Smile
Re: File reference of a modular target in project profile? [message #1755933 is a reply to message #1755926] Thu, 09 March 2017 11:31 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
In any setup editor you can use the "Show all resources" toolbar button. All editors will have loaded the full index, and that includes all products and projects in the catalog. With Ctrl-F you can search for things in the editor. If you search for Oomph.setup, make it case sensitive, you'll find Oomph's setup. You'll see the targlet has these annotations:
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:base="http://www.eclipse.org/oomph/base/1.0">
  <base:Annotation
      source="http:/www.eclipse.org/oomph/targlets/PomArtifactUpdater">
    <detail
        key="skipArtifactIDs">
      <value>false</value>
    </detail>
    <detail
        key="skipVersions">
      <value>false</value>
    </detail>
  </base:Annotation>
  <base:Annotation
      source="http:/www.eclipse.org/oomph/targlets/PomModulesUpdater">
    <detail
        key="location">
      <value>${git.clone.oomph.location/releng/org.eclipse.oomph.parent/plugins/pom.xml}</value>
    </detail>
    <detail
        key="moduleRoots">
      <value>${git.clone.oomph.location/plugins}</value>
    </detail>
  </base:Annotation>
  <base:Annotation
      source="http:/www.eclipse.org/oomph/targlets/PomModulesUpdater">
    <detail
        key="location">
      <value>${git.clone.oomph.location/releng/org.eclipse.oomph.parent/features/pom.xml}</value>
    </detail>
    <detail
        key="moduleRoots">
      <value>${git.clone.oomph.location/features}</value>
    </detail>
  </base:Annotation>
  <base:Annotation
      source="http:/www.eclipse.org/oomph/targlets/TargetDefinitionGenerator">
    <detail
        key="location">
      <value>${git.clone.oomph.location/releng/org.eclipse.oomph.releng/org.eclipse.oomph.releng.target}</value>
    </detail>
    <detail
        key="extraUnits">
      <value>org.eclipse.equinox.executable.feature.group</value>
    </detail>
    <detail
        key="singleLocation">
      <value>true</value>
    </detail>
    <detail
        key="includeAllPlatforms">
      <value>false</value>
    </detail>
    <detail
        key="includeSource">
      <value>true</value>
    </detail>
  </base:Annotation>
</xmi:XMI>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: File reference of a modular target in project profile? [message #1755951 is a reply to message #1755933] Thu, 09 March 2017 13:44 Go to previous message
Malte Brunnlieb is currently offline Malte BrunnliebFriend
Messages: 27
Registered: February 2011
Junior Member
Thanks a lot!
We will investigate that further.
Previous Topic:Setting Enum of String Variable
Next Topic:Understanding of Triggers
Goto Forum:
  


Current Time: Sun Dec 08 07:36:45 GMT 2024

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

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

Back to the top