Hi Markward,
I am using this workaround and it works quite well:
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>icon</id>
<!-- should be phase prepare-package, but for some reason, the
target folder does not yet exists -->
<phase>prepare-package</phase>
<configuration>
<tasks>
<echo>copy neo.ico</echo>
<copy file="neo.ico" todir="target/products/${artifactId}/" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-jsch</artifactId>
<version>1.7.0</version>
</dependency>
</dependencies>
</plugin>
In the product file we’re using a relative path:
<win useIco="true">
<ico path="neo.ico"/>
<bmp/>
</win>
I hope that helps
Carsten
Von: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] Im Auftrag von Markward Schubert
Gesendet: Donnerstag, 31. Mai 2012 21:13
An: tycho-user@xxxxxxxxxxx
Betreff: [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