[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Question regarding launcher icons

IIRC this bug has been fixed in tycho 0.11

https://bugs.eclipse.org/bugs/show_bug.cgi?id=349421

Jan

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Davy Meers
Sent: Freitag, 1. Juni 2012 08:58
To: tycho-user@xxxxxxxxxxx
Subject: Re: [tycho-user] Question regarding launcher icons

Hi,

as an alternative for copying using ant you could also use the copy-resources goal of the Maven Resources Plugin.

See  https://github.com/mudelta/tycho-demo/commit/cc42dc12a972dab122030b046440f47e0485e321 ; for an example.

Kind regards,
Davy
________________________________________
Date: Thu, 31 May 2012 21:13:14 +0200
From: markward.schubert@xxxxxxxxx
To: tycho-user@xxxxxxxxxxx
Subject: [tycho-user] Question regarding launcher icons

Hi folks!

After stumbling across some older posts in this groups archive, which I could not answer directly to for some reason, I open this topic anew.
I guess the issue with the different interpretation of the relative paths to the laucher-icons, as described by an old post by Brian de Alvis is still valid these days?

Link to the old post: http://software.2206966.n2.nabble.com/How-to-apply-patch-no-launcher-icon-TYCHO-300-td6059641.html#a6065474

Does anybody of you use a similar workaround? If so I would love to have a chance to see your specific part in the pom, because I was trying this out and simply could not succeed. My ant Task kept being executed after the applications were assembled and also the property ${product-id} was never resolved.

This is what I tried: 


<plugins>
            <plugin>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.7</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <configuration>
                            <target>
                                <echo>Ant execution ...</echo>
                                <copy todir="${project.build.directory}/products/${product-id}/res">
                                    <fileset dir="../productfolder/res" />
                                </copy>
                            </target>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-p2-director-plugin</artifactId>
                <version>${tycho-version}</version>
                <executions>
                    <execution>
                        <!--(optional) install the product for all configured os/ws/arch environments 
                            using p2 director -->
                        <id>materialize-products</id>
                        <goals>
                            <goal>materialize-products</goal>
                        </goals>
                    </execution>
                    <execution>
                        <!-- (optional) create product zips (one per os/ws/arch) -->
                        <id>archive-products</id>
                        <goals>
                            <goal>archive-products</goal>
                        </goals>
                    </execution>
                </executions>
                <!-- (optional) customize the root folder name of the product zip -->
                <configuration>
                    <products>
                        <product>
                            <id>application</id>
                            <!-- attachId></attachId> -->
                            <!-- <rootFolder>client</rootFolder> -->
                        </product>
                    </products>
                    <includeAllDependencies>true</includeAllDependencies>
                    <!-- http://dev.eclipse.org/mhonarc/lists/tycho-user/msg00752.html <products> 
                        <product> <id>xapplication</id> <rootFolder>application</rootFolder> </product> 
                        </products> -->
                </configuration>
            </plugin>


Thanks for your help, 
Markward


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