diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-10-31 21:04:48 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-10-31 21:04:48 +0000 |
commit | 56510e7f1b5265962c21f1e2eec61ba4304fab41 (patch) | |
tree | 4264a2641bcd7c47d1b0888c375254e6305d4684 /branches/sca-equinox/tools/maven/maven-bundle-plugin | |
parent | 0033d5ae803fb34c451ad91259b7036b78e8f224 (diff) |
Add a skip option
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@709567 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-equinox/tools/maven/maven-bundle-plugin')
-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; } |