コード例 #1
0
 @Nullable
 @Override
 public KevAnnotationProcessorBeforeRunTask createTask(RunConfiguration runConfiguration) {
   if (runConfiguration instanceof KevScriptRunConfiguration) {
     System.out.println(
         "KevScriptBeforeTask createTask for RunConfig:" + runConfiguration.getClass());
     return new KevAnnotationProcessorBeforeRunTask(
         ID,
         runConfiguration,
         ((KevScriptRunConfiguration) runConfiguration).getConfigurationModule().getModule());
   }
   System.out.println("KevScriptBeforeTask null");
   return null;
 }
コード例 #2
0
 private Method getMethod(RunConfiguration configuration) throws NoSuchMethodException {
   return configuration.getClass().getMethod("make", Project.class);
 }