Maven Tycho: How to exclude eclipsec.exe in a product assembly?

I switched the build of our Eclipse RCP product from PDE-build to Maven Tycho. In addition to the main (branded) startup executable, the product now includes the file "eclipsec.exe". We would like to omit this console launcher from our product, as this may confuse our customers. Is there a way to do this with Tycho?

+5
source share
2 answers

I got this answer in tycho-users list :

In an eclipse-repository project, assuming you have a .product file, you can put another file in the same directory called .p2.inf

p2.inf p2 :

instructions.configure=org.eclipse.equinox.p2.touchpoint.natives.remove(path:${installFolder}/eclipsec.exe);

+11

, tycho , maven-antrun-plugin. , eclipsec.exe . p2-director. pre-integration-test .

<plugin>
      <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <id>delete-eclipsec.exe</id>
            <phase>pre-integration-test</phase>
            <configuration>
              <target>
                <delete file="${project.build.directory}/products/<<your.product.id>>/win32/win32/x86/eclipsec.exe"/>
              </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>
            <id>materialize-products</id>
            <goals>
              <goal>materialize-products</goal>
            </goals>
          </execution>
          <execution>
            <id>archive-products</id>
            <phase>integration-test</phase>
            <goals>
              <goal>archive-products</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

: eclipsec.exe product.zip.
, .

+1

All Articles