Ejemplo n.º 1
0
 public void process(CompileContext context, OutputFileObject out) {
   Map<String, String> stubToSrc = STUB_TO_SRC.get(context);
   if (stubToSrc == null) {
     return;
   }
   File src = out.getSourceFile();
   if (src == null) {
     return;
   }
   String groovy = stubToSrc.get(FileUtil.toSystemIndependentName(src.getPath()));
   if (groovy == null) {
     return;
   }
   try {
     final File groovyFile = new File(groovy);
     if (!FSOperations.isMarkedDirty(context, CompilationRound.CURRENT, groovyFile)) {
       FSOperations.markDirty(context, CompilationRound.NEXT, groovyFile);
       FILES_MARKED_DIRTY_FOR_NEXT_ROUND.set(context, Boolean.TRUE);
     }
   } catch (IOException e) {
     LOG.error(e);
   }
 }