Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 1 | package aQute.bnd.build; |
| 2 | |
| 3 | import aQute.bnd.service.action.*; |
| 4 | |
| 5 | public class ScriptAction implements Action { |
Stuart McCulloch | 4482c70 | 2012-06-15 13:27:53 +0000 | [diff] [blame] | 6 | final String script; |
| 7 | final String type; |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 8 | |
Stuart McCulloch | 4482c70 | 2012-06-15 13:27:53 +0000 | [diff] [blame] | 9 | public ScriptAction(String type, String script) { |
| 10 | this.script = script; |
| 11 | this.type = type; |
| 12 | } |
| 13 | |
| 14 | public void execute(Project project, String action) throws Exception { |
| 15 | project.script(type, script); |
| 16 | } |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 17 | |
| 18 | } |