Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Reference a target file as platform configuration
Reference a target file as platform configuration [message #1755904] Thu, 09 March 2017 08:53 Go to next message
Malte Brunnlieb is currently offline Malte BrunnliebFriend
Messages: 27
Registered: February 2011
Junior Member
Hi,

is it possible to reference an eclipse platform *.target file in a SWTBot maven run?
I was hoping so to have reproducable results on the console as well as within eclipse.

Best Regards,
Malte
Re: Reference a target file as platform configuration [message #1755907 is a reply to message #1755904] Thu, 09 March 2017 09:04 Go to previous message
Malte Brunnlieb is currently offline Malte BrunnliebFriend
Messages: 27
Registered: February 2011
Junior Member
I already tried this: https://wiki.eclipse.org/Tycho/Reference_Card#Target_file_providing_the_context_of_the_build

But no luck. I have to define everything again to make it work.
This is my working configuration for SWTBot tests, but it is completely redundant and even less restrictive as specified in my *.target file I am using within eclipse:

  <build>
    <plugins>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>target-platform-configuration</artifactId>
        <configuration>
          <dependency-resolution>
            <extraRequirements>
              <requirement>
                <type>p2-installable-unit</type>
                <id>org.eclipse.m2e.feature.feature.group</id>
                <versionRange>[1.6.0,1.7.0)</versionRange>
              </requirement>
              <requirement>
                <type>p2-installable-unit</type>
                <id>myproduct.feature.feature.group</id>
                <versionRange>0.0.0</versionRange>
              </requirement>
            </extraRequirements>
          </dependency-resolution>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-surefire-plugin</artifactId>
        <version>${tycho.version}</version>
        <configuration>
          <useUIHarness>true</useUIHarness>
          <useUIThread>false</useUIThread>
          <product>org.eclipse.sdk.ide</product>
          <application>org.eclipse.ui.ide.workbench</application>
          <dependencies>
            <dependency>
              <type>p2-installable-unit</type>
              <artifactId>org.eclipse.sdk.feature.group</artifactId>
            </dependency>
          </dependencies>
        </configuration>
      </plugin>
    </plugins>
  </build>
Previous Topic:How to enable checkbox?
Next Topic:SWTBotTreeItem.getTooltipText
Goto Forum:
  


Current Time: Wed Nov 14 21:48:48 GMT 2018

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

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

Back to the top