Skip to content

Commit

Permalink
feat: realtime file copy
Browse files Browse the repository at this point in the history
  • Loading branch information
clement-brodu committed Sep 12, 2022
1 parent e72cdf1 commit b8fd247
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/java/com/phenix/pct/PCTBgCompileClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,10 @@ protected boolean performCustomAction() throws IOException {
noMoreFiles = true;
}
}
// Remember classes units
myUnits.addAll(sending);

StringBuilder sb = new StringBuilder();
if (noMoreFiles) {
// copy already compiled class to outputdir
copyMyFiles();
return false;
} else {
Expand All @@ -118,6 +117,10 @@ protected boolean performCustomAction() throws IOException {
sb.append(cu.toString());
}
sendCommand("PctCompile", sb.toString());
// copy already compiled class to outputdir
copyMyFiles();
// Remember classes units
myUnits.addAll(sending);
return true;
}
} else {
Expand Down Expand Up @@ -152,6 +155,8 @@ private void copyMyFiles() {
}
}
}
// On vide les units déja copiées
myUnits.clear();


}
Expand Down

0 comments on commit b8fd247

Please sign in to comment.