blob: 55c2861dd9592c3762141b11d4cc0b6d560bb183 [file] [log] [blame]
Stuart McCullochbb014372012-06-07 21:57:32 +00001package aQute.bnd.build;
2
3import java.lang.reflect.*;
4
5import aQute.bnd.service.action.*;
6
7public class ReflectAction implements Action {
8 String what;
9
10 public ReflectAction(String what) {
11 this.what = what;
12 }
13
14 public void execute(Project project, String action) throws Exception {
15 Method m = project.getClass().getMethod(what);
16 m.invoke(project);
17 }
18
19 public String toString() {
20 return "ra:" + what;
21 }
22}