How to ignore p2.inf for linux builds / replace myproduct.exe with renamed eclipsec.exe [message #1777320] |
Tue, 28 November 2017 08:09  |
Eclipse User |
|
|
|
I have an Eclipse RCP product.
I am (ab?)using the p2.inf file, located in the directory the .product file is located in, to remove the <product name>.exe file and rename the eclipsec.exe file to the <product name>.exe file. The content looks as follows:
instructions.configure = \
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/eclipsec.exe, target:${installFolder}/myproductname.exe, overwrite:true);\
org.eclipse.equinox.p2.touchpoint.natives.remove(path:${installFolder}/eclipsec.exe);
I need to build this product for windows and linux. For windows the p2.inf file instructions work fine. For linux this fails, which I am not surprised about (there is no .exe file).
Is there a way to execute those instructions for windows only / ignore the p2.inf file for linux builds when the product is built with tycho (for linux just 1 executable is generated anyway)?
Thanks in advance.
Tycho version: 1.0.0
Eclipse SDK version: 4.7.0
[Updated on: Wed, 29 November 2017 04:46] by Moderator
|
|
|
|
Re: How to ignore p2.inf for linux builds / replace myproduct.exe with renamed eclipsec.exe [message #1777593 is a reply to message #1777589] |
Thu, 30 November 2017 11:00  |
Eclipse User |
|
|
|
Brian de Alwis wrote on Thu, 30 November 2017 09:47You shouldn't need to do this: the binary will be renamed to your product name, where the name come from the .product file's top-level <product name="NAME">.
That's true for Linux and for Windows builds. In the .product file I can define
<launcher name="myproduct">
...
</launcher>
For Linux builds verything is fine. For Windows the following executables are generated:
- myproduct.exe (application outputs are not displayed on the Windows console)
- eclipsec.exe (like myproduct.exe but application outputs are displayed on the Windows console)
Since my product is more or less a console tool, which is supposed to be called via command line, I need to get feedback from the console, thus I have to use the eclipsec.exe. But my customers don't know that the eclipsec.exe needs to be used. Furthermore the myproduct.ini file is ignored in case the eclipsec.exe is called.
I found a workaround. In case someone cares, see this answer: https://stackoverflow.com/a/47577193/5207900
|
|
|
Powered by
FUDForum. Page generated in 0.05263 seconds