Use local copy of latest bndlib code for pre-release testing purposes
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1347815 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/java/aQute/bnd/service/CommandPlugin.java b/bundleplugin/src/main/java/aQute/bnd/service/CommandPlugin.java
new file mode 100644
index 0000000..34c72c2
--- /dev/null
+++ b/bundleplugin/src/main/java/aQute/bnd/service/CommandPlugin.java
@@ -0,0 +1,30 @@
+package aQute.bnd.service;
+
+import aQute.bnd.build.*;
+
+/**
+ * A plugin that makes it possible to
+ * @author aqute
+ *
+ */
+public interface CommandPlugin {
+ /**
+ * Is run before a command is executed. These plugins are called
+ * in the order of declaration.
+ *
+ * @param project The project for which the command runs
+ *
+ * @param command the command name
+ */
+ void before(Project project, String command);
+
+ /**
+ * Is run after a command is executed. These plugins are
+ * called in the reverse order of declaration.
+ *
+ * @param project The project for which the command runs
+ *
+ * @param command the command name
+ */
+ void after(Project project, String command, Throwable outcome);
+}