Stuart McCulloch | 3fdcd85 | 2011-10-17 10:31:43 +0000 | [diff] [blame] | 1 | package aQute.bnd.build; |
2 | |||||
3 | import aQute.bnd.service.action.*; | ||||
4 | |||||
5 | public class ScriptAction implements Action { | ||||
6 | final String script; | ||||
7 | final String type; | ||||
8 | |||||
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 | } | ||||
17 | |||||
18 | } |