Exemplo n.º 1
0
 private void copyClass(Variant variant, String classname) {
   try {
     File variantClass = new File(variant.getClassDirectory(), classname);
     File destination = new File(new File(directory, String.valueOf(variant.getId())), classname);
     FileUtils.copyFile(variantClass, destination);
   } catch (IOException ex) {
     ex.printStackTrace();
   }
 }
Exemplo n.º 2
0
 private void logStatus(Variant variant, String status) {
   File log = new File(new File(directory, String.valueOf(variant.getId())), "log");
   long time = DateTimeUtils.currentTimeMillis();
   try {
     FileUtils.writeStringToFile(log, status + ": " + time + "\n", true);
   } catch (IOException ex) {
     ex.printStackTrace();
   }
 }