diff options
-rw-r--r-- | branches/sca-equinox/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/EclipsePluginMojo.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/branches/sca-equinox/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/EclipsePluginMojo.java b/branches/sca-equinox/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/EclipsePluginMojo.java index ae4a6c555b..5ed0ed3a48 100644 --- a/branches/sca-equinox/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/EclipsePluginMojo.java +++ b/branches/sca-equinox/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/EclipsePluginMojo.java @@ -289,6 +289,14 @@ public class EclipsePluginMojo extends AbstractMojo { * @readonly */ private MavenProject project; + + /** + * Skip the operation when true. + * + * @parameter expression="${eclipse.skip}" default-value="false" + */ + private boolean skip; + private EclipseSourceDir[] buildDirectoryList() throws MojoExecutionException { File buildOutputDirectory = new File(project.getBuild().getOutputDirectory()); @@ -338,7 +346,7 @@ public class EclipsePluginMojo extends AbstractMojo { public void execute() throws MojoExecutionException { try { - if ("pom".equals(project.getPackaging())) { + if (skip || "pom".equals(project.getPackaging())) { return; } |