Exemple #1
0
 static {
   try {
     FAILED_COMPILATION_PATH = FileCommands.newTempFile("ctree");
   } catch (IOException e) {
     throw new IllegalStateException(e);
   }
 }
Exemple #2
0
 private static Path generateAssimilator(
     ModuleKey key, Path str, String main, List<Path> paths, AbstractBaseProcessor baseProcessor)
     throws IOException {
   boolean success = false;
   log.beginTask("Generating", "Generate the assimilator", Log.TRANSFORM);
   try {
     Path prog = FileCommands.newTempFile("ctree");
     log.log("calling STRJ", Log.TRANSFORM);
     strj(true, str, prog, main, paths, baseProcessor);
     success = FileCommands.exists(prog);
     return prog;
   } finally {
     log.endTask(success);
   }
 }