Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Showsplash in product.ini file

> Is there a working example?

working example with product icons 

https://github.com/jsievers/tycho-demo/tree/master/tychodemo.product 

does not use latest tycho version though.

If you can demonstrate the issue using the sample and staged tycho 0.21.0 [1], open a bug.

Regards,
Jan

[1] https://wiki.eclipse.org/Tycho/Release_Notes/0.21 

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Aleksandar Toshovski
Sent: Mittwoch, 16. Juli 2014 12:02
To: Tycho user list
Subject: Re: [tycho-user] Showsplash in product.ini file

Unfortunately tycho adds these arguments before the default one, so this solution doesn't work. 

Has somebody branded successfully an eclipse application with tycho 0.20.0 and Eclipse Luna? Is there a working example?

I solved the problem, but now the icons are not copied properly.. I don't know why. The same configuration worked on my previous builds with kepler and tycho 0.19.0. The icons are in the same project as the .product.

   <launcher name="launcher">
      <linux icon="icon.xpm"/>
      <solaris/>
      <win useIco="true">
         <ico path="icon.ico"/>
   </launcher>

Inspired from https://wiki.eclipse.org/Scout/Tutorial/4.0/Maven_Tycho_Build#Build_Eclipse_Scout_Swing_client_application_.28building_an_Eclipse_Product.29 , I made an ugly workaround by replacing the config.ini file in the package phase. See the code below:



          <!-- Workaround: Use an existing config.ini file (caused by the problem that tycho will always generate a default one) -->
          <plugin>
            <artifactId>maven-resources-plugin</artifactId>
            <version>2.4</version>
            <executions>
              <execution>
                 <id>win32.x86</id>
                <phase>package</phase>
                <goals>
                  <goal>copy-resources</goal>
                </goals>
                <configuration>
                  <resources>
                    <resource>
                      <directory>${project.build.directory}/../</directory>
                      <filtering>false</filtering>
                      <includes>
                        <include>config.ini</include>
                      </includes>
                    </resource>
                  </resources>
                  <outputDirectory>${project.build.directory}/products/${project.groupId}.product/win32/win32/x86/output-folder/configuration</outputDirectory>
                  <overwrite>true</overwrite>
                </configuration>
              </execution>
              <execution>
                  <id>win32.x86_64</id>
                <phase>package</phase>
                <goals>
                  <goal>copy-resources</goal>
                </goals>
                <configuration>
                  <resources>
                    <resource>
                      <directory>${project.build.directory}/../</directory>
                      <filtering>false</filtering>
                      <includes>
                        <include>config.ini</include>
                      </includes>
                    </resource>
                  </resources>
                  <outputDirectory>${project.build.directory}/products/${project.groupId}.product/win32/win32/x86_64/output-folder/configuration</outputDirectory>
                  <overwrite>true</overwrite>
                </configuration>
              </execution>
              <execution>
              <id>gtk.x86</id>
                <phase>package</phase>
                <goals>
                  <goal>copy-resources</goal>
                </goals>
                <configuration>
                  <resources>
                    <resource>
                      <directory>${project.build.directory}/../</directory>
                      <filtering>false</filtering>
                      <includes>
                        <include>config.ini</include>
                      </includes>
                    </resource>
                  </resources>
                  <outputDirectory>${project.build.directory}/products/${project.groupId}.product/linux/gtk/x86/output-folder/configuration</outputDirectory>
                  <overwrite>true</overwrite>
                </configuration>
              </execution>
              <execution>
              <id>cocoa.x86_64</id>
                <phase>package</phase>
                <goals>
                  <goal>copy-resources</goal>
                </goals>
                <configuration>
                  <resources>
                    <resource>
                      <directory>${project.build.directory}/../</directory>
                      <filtering>false</filtering>
                      <includes>
                        <include>config.ini</include>
                      </includes>
                    </resource>
                  </resources>
                  <outputDirectory>${project.build.directory}/products/${project.groupId}.product/macosx/cocoa/x86_64/output-folder/configuration</outputDirectory>
                  <overwrite>true</overwrite>
                </configuration>
              </execution>
              <execution>
              <id>gtk.x86_64</id>
                <phase>package</phase>
                <goals>
                  <goal>copy-resources</goal>
                </goals>
                <configuration>
                  <resources>
                    <resource>
                      <directory>${project.build.directory}/../</directory>
                      <filtering>false</filtering>
                      <includes>
                        <include>config.ini</include>
                      </includes>
                    </resource>
                  </resources>
                  <outputDirectory>${project.build.directory}/products/${project.groupId}.product/linux/gtk/x86_64/output-folder/configuration</outputDirectory>
                  <overwrite>true</overwrite>
                </configuration>
              </execution>
            </executions>
          </plugin>


On 15/07/14 21:23, Bojan Milenkoski wrote:
I found a workaround, described in a previous post:
" As a workaround I have also added it in program launching arguments. Now i have both splash screens in product.ini file. Mine is second in the file and gets loaded on startup.
-showsplash
org.eclipse.platform
-showsplash
myproduct.plugin "
To explain precisely, I have added:
-showsplash myproduct.plugin
In the Program arguments section on the Launching tab in the product configuration file.


Best Regards,
Bojan
On Jul 15, 2014 9:04 PM, "Aleksandar Toshovski" <Aleksandar.Toshovski@xxxxxxx> wrote:
Did you found a solution of your problem?  I have the same problem with tycho 0.20.0 and luna.

On 19/05/14 22:00, Bojan Milenkoski wrote:
Yes, i did configure it through the splash tab in the product configuration.
As a workaround I have also added it in program launching arguments. Now i have both splash screens in product.ini file. Mine is second in the file and gets loaded on startup.
-showsplash
org.eclipse.platform
-showsplash
myproduct.plugin
This looks like a bug in tycho 0.20.0.
Additionally, it might be relevant, I'm using Eclipse 4.2 to create the application (product.xml) and its update sites while running the build and Java 1.6 as an execution environment.
Bojan
On May 19, 2014 5:59 PM, "Jeff MAURY" <jeffmaury@xxxxxxxxxxxxx> wrote:
Bojan, 

sorry for being so late.
I have a product with a specific splash screen but I've only configured through config.ini.
Did you configure the splash image throught the splash tab of the product configuration editor ?

Jeff

On Fri, Apr 4, 2014 at 11:57 AM, Bojan Milenkoski <bojan.milenkoski@xxxxxxxxx> wrote:
Hi all,
I have a small problem with the splash screen for my RCP product built with tycho 0.20.0.

In config.ini there is a correct line:
osgi.splashPath=platform\:/base/plugins/myproduct.plugin
But in the product.ini file I have:
-showsplash
org.eclipse.platform
If I delete the lines from product.ini file or change org.eclipse.platform to 
myproduct.plugin the correct splash is loaded.
How to correct the lines in product.ini file?
Regards,
Bojan


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user




-- 
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury 

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user

-- 

Mit freundlichen Grüßen / Best regards, 
Aleksandar Toshovski 
 
     
Dipl.-Inf Aleksandar Toshovski | Software Entwicklung 
abas Software AG | Gartenstraße 67 | 76135 Karlsruhe | Germany
Phone: +49(0)721-96723-0 | Fax: +49(0)721-96723-100
Web: http://www.abas-software.com | http://www.abas.de
Follow us:


Board of Directors / Vorstand: Michael Baier, Jürgen Nöding, Mario Raatz, Werner Strub
Chairman Board of Directors / Vorstandsvorsitzender: Werner Strub
Chairman Supervisory Board / Aufsichtsratsvorsitzender: Udo Stößer
Registered Office / Sitz der Gesellschaft: Karlsruhe
Commercial Register / Handelsregister: HRB 107644 Amtsgericht Mannheim 

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user



_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user

-- 

Mit freundlichen Grüßen / Best regards, 
Aleksandar Toshovski 
 
     
Dipl.-Inf Aleksandar Toshovski | Software Entwicklung 
abas Software AG | Gartenstraße 67 | 76135 Karlsruhe | Germany
Phone: +49(0)721-96723-0 | Fax: +49(0)721-96723-100
Web: http://www.abas-software.com | http://www.abas.de
Follow us:


Board of Directors / Vorstand: Michael Baier, Jürgen Nöding, Mario Raatz, Werner Strub
Chairman Board of Directors / Vorstandsvorsitzender: Werner Strub
Chairman Supervisory Board / Aufsichtsratsvorsitzender: Udo Stößer
Registered Office / Sitz der Gesellschaft: Karlsruhe
Commercial Register / Handelsregister: HRB 107644 Amtsgericht Mannheim 

Back to the top