Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[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


Back to the top