Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Multiple target platform configuration based on profiles
  • From: Martin Weber <m.weber@xxxxxxxxxxxx>
  • Date: Mon, 21 Jan 2019 19:33:46 +0100
  • Autocrypt: addr=m.weber@xxxxxxxxxxxx; keydata= mQENBFrhv5oBCADGZQ9ZK5t8IPTy8SHg6YN9HanQ/ohPzUxFGJHUBHq+J7LrkSiad7xQPzuL hxNSGHZuskiif9KRlySGv9MwREe6ckMHeISw64h/sWQE2m71iDZS/URvckn98qWWmAk91Nhj wLXx2igZlsZcwko88GLch1D6kQ13j44JsdyH80LbkMvEP5vEzI2+YzXphVd3M5rzB/CvbNhp 9wesqjva5BGR/VPbtdyCVDuaKsEcAW78mZbdyLUyg4+G2z1cGSxoPQztSjgY6rYLlghtiWhB 4+dYZSz/MpH7VUENQApi2ejHujAzB++RqkTJQzw7Mk2DMlqvvDZfeTXY3JQjACZ1GK3XABEB AAG0I01hcnRpbiBXZWJlciA8bS53ZWJlckByYXpvcmNhdC5jb20+iQFUBBMBCAA+FiEEw8mp rVKtiwImhVvyM53yXCHnDYAFAlrhv5wCGwMFCQHhM4AFCwkIBwIGFQoJCAsCBBYCAwECHgEC F4AACgkQM53yXCHnDYBK4Af6AnpmVS1tOXo4O3ij3v3hGyR2FSQoI19Hmb+0o03+Z7lximhx 4quz+J+msqYV627hytCpB0q0GaWBSlEd3Q8d5hrsYrcaaVIYy4j5Tixn1X5TWALt54sKo0+I qqNRz2M22HU2p5QepOY9wpBpaHnFy2Yv7BmiajY9tDKSDxJ26I1gCa+AUiV1ucdHNJYKjVQd fqpKt63906pKGUXDXdCH7mihl5LZQMIJKhr/wY5Rd9i+Z1fMQ6EQhrdvaiIMLw6V56lK3xmG YGrwoiqUkkYwXlQiWmD81Ea3IFuMLTmK9epSVi6FiQa+QB3s5jlrDHmAlf4YFH9rEbUVmnra OKx9WbkBDQRa4b+bAQgAy31EIESuJjg/l1+vu4VlVm0T305I1bNhA0J+8TkeVOx6zm0aOhCR O+oDcR2GtDkIHVD8663ZIFJPrYKVHl2d1tHiRnrpOHkrcdtfOQHhZzRqWvoADouXbeBINlen FgS5Vk3PCdc2qe2OQ3FgWjarUYxR/UZ1Mnd74SjxLyIL3yNDHRoq3S8IyVYEU2s4M0CXSrZA 1onVe4FANL2C30Dk1sk2uMOJSvjnDz5n0Gw+6SCBKT4pCqZRfiEdpbXimqkdf+7FXimbnYSc FL4bnxA8DJTsUoAJzBplGsFsMdTz8SsryDjWg9ydlCoPPBzVRZPTSsjDt8o3RX8fBfij7PCw CQARAQABiQE8BBgBCAAmFiEEw8mprVKtiwImhVvyM53yXCHnDYAFAlrhv5sCGwwFCQHhM4AA CgkQM53yXCHnDYD/fAf+JIZXyrczx5RJCZKoXFnRqWoZQMucp7qDanLQeu0Rve5XvgulLqDg uRUpayDXXCNfcp0AYjHC70BnOceqckiB3HEqswJDP48jjypnbNBKXhjby6Ov244NLlYqV9jO hOawX3RAP9X20BiyHQmyHFynB7bUYRV6GArP1RQhUqmrbb2z6SnBsomGjGczVomg9AwjxP3a fKwxwtug6bkwxKHFENCdzKwmu5Ifb3+QQJ0XcnS8zxPMCuhE9eMv7vH5FLU3dKHisV0gpDIM rAoQRY4QkM5xb+8kcp9ZBeVWpH+U0obmi7UVA3oXfVmBpZYiIExi3lhLteb50l4UHPNCNNZm dw==
  • Delivered-to: tycho-user@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/tycho-user>
  • List-help: <mailto:tycho-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/tycho-user>, <mailto:tycho-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/tycho-user>, <mailto:tycho-user-request@eclipse.org?subject=unsubscribe>
  • Openpgp: preference=signencrypt
  • User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0

Am 21.01.2019 um 17:13 schrieb Sasidharan Nirmal (CAP-SST/ESM1):
> Hello,
> 
>  
> 
> We want to control the target platform configuration based on profiles.
> This is somehow not working as the plugin configurations are not getting
> merged.
> 
>  
> 
> We have the following two profiles:
> 
>  
> 
> [code]
> 
> <profile>
> 
>             <id>LinuxProduct</id>
> 
>             <activation>
> 
>                 <activeByDefault>false</activeByDefault>
> 
>             </activation>
> 
>             <build>
> 
>                 <plugins>
> 
>                     <plugin>
> 
>                         <groupId>org.eclipse.tycho</groupId>
> 
>                 
>        <artifactId>target-platform-configuration</artifactId>
> 
>                         <configuration>
> 
>                             <environments>
> 
>                                 <environment>
> 
>                                     <os>linux</os>
> 
>                                     <ws>gtk</ws>
> 
>                                     <arch>x86_64</arch>
> 
>                                 </environment>
> 
>                             </environments>
> 
>                         </configuration>
> 
>                     </plugin>
> 
>                 </plugins>
> 
>             </build>
> 
>         </profile>
> 
> [/code]
> 
>  
> 
> and
> 
>  
> 
> [code]
> 
>          <profile>
> 
>             <id>WindowsProduct</id>
> 
>             <activation>
> 
>                 <activeByDefault>true</activeByDefault>
> 
>            </activation>
> 
>             <build>
> 
>                 <plugins>
> 
>                     <plugin>
> 
>                         <groupId>org.eclipse.tycho</groupId>
> 
>                        
> <artifactId>target-platform-configuration</artifactId>
> 
>                         <configuration>
> 
>                             <environments>
> 
>                                 <environment>
> 
>                                     <os>win32</os>
> 
>                                     <ws>win32</ws>
> 
>                                     <arch>x86_64</arch>
> 
>                                  </environment>
> 
>                              </environments>
> 
>                         </configuration>
> 
>                     </plugin>
> 
>                 </plugins>
> 
>             </build>
> 
>          </profile> 
> 
> [/code]
> 
>  
> 
> The expectation was that when we run
> 
> [code]maven clean package -PWindowsProduct, LinuxProduct[/code]
> 
> both configurations are merged (and both products are build in the end
> for both platforms).

You do not need profiles to build the products for both windows and
linux. Just combine the two environment-entries in the
target-platform-configuration plugin section. Tycho (that is p2 here)
will filter the os/arch specific bundles when it builds the product.


Viele Grüße,
	Martin Weber

-- 
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting frowned upon?

| Martin Weber
| Razorcat Development GmbH
| Witzlebenplatz 4          fon: +49-(30)-536 357 46
| 14057 Berlin              fax: +49-(30)-536 357 60
|
|--------------------------------------------
| Geschäftsführer: Michael Wittner
| Sitz der Gesellschaft: Berlin
| Amtsgericht: Berlin, HRB 65326



Back to the top