Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Sievers2015-06-30 05:14:51 -0400
committerJan Sievers2015-06-30 05:14:51 -0400
commit5edbe32812d255f27d6fd8684a80d61575e6afdc (patch)
tree871d4913b7201efbceb738ccf0266e06e37fb1cf
parentc0efabd44b02cc1f09cbd09b5a45f23c41bbad31 (diff)
downloadorg.eclipse.tycho-5edbe32812d255f27d6fd8684a80d61575e6afdc.tar.gz
org.eclipse.tycho-5edbe32812d255f27d6fd8684a80d61575e6afdc.tar.xz
org.eclipse.tycho-5edbe32812d255f27d6fd8684a80d61575e6afdc.zip
Bug 471402: improve error message when equinox launcher feature missing
mention id of missing feature in error message Change-Id: I7c8b38e85334ba7d3bf9dc1d58b2d2f6e437e59e Signed-off-by: Jan Sievers <jan.sievers@sap.com>
-rw-r--r--tycho-p2/tycho-p2-publisher-plugin/src/main/java/org/eclipse/tycho/plugins/p2/publisher/PublishProductMojo.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/tycho-p2/tycho-p2-publisher-plugin/src/main/java/org/eclipse/tycho/plugins/p2/publisher/PublishProductMojo.java b/tycho-p2/tycho-p2-publisher-plugin/src/main/java/org/eclipse/tycho/plugins/p2/publisher/PublishProductMojo.java
index 20a73b442..7ff153407 100644
--- a/tycho-p2/tycho-p2-publisher-plugin/src/main/java/org/eclipse/tycho/plugins/p2/publisher/PublishProductMojo.java
+++ b/tycho-p2/tycho-p2-publisher-plugin/src/main/java/org/eclipse/tycho/plugins/p2/publisher/PublishProductMojo.java
@@ -105,15 +105,16 @@ public final class PublishProductMojo extends AbstractPublishMojo {
"org.eclipse.equinox.executable", null);
if (artifact == null) {
- throw new MojoExecutionException("Unable to locate the equinox launcher feature (aka delta-pack)");
+ throw new MojoExecutionException(
+ "Unable to locate feature 'org.eclipse.equinox.executable'. This feature is required for native product launchers.");
}
File equinoxExecFeature = artifact.getLocation();
if (equinoxExecFeature.isDirectory()) {
return equinoxExecFeature.getAbsoluteFile();
} else {
- File unzipped = new File(getProject().getBuild().getDirectory(), artifact.getKey().getId() + "-"
- + artifact.getKey().getVersion());
+ File unzipped = new File(getProject().getBuild().getDirectory(),
+ artifact.getKey().getId() + "-" + artifact.getKey().getVersion());
if (unzipped.exists()) {
return unzipped.getAbsoluteFile();
}

Back to the top