Skip to content

Commit 804438e

Browse files
committed
Multithread space usage improvement
1 parent 5d072d5 commit 804438e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/uniandes/tsdl/mutapk/processors/MutationsProcessor.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ public String call() {
142142
operator.performMutation(mutationLocation, writer, currentMutationIndex);
143143
Long mutationEnd = System.currentTimeMillis();
144144
APKToolWrapper.buildAPK(mutantRootFolder, extraPath, apkName, currentMutationIndex);
145+
File mutatedFile = new File(newMutationPath);
146+
String fileName = (new File(newMutationPath)).getName();
147+
File mutantRootFolderDir = new File(mutantRootFolder+fileName);
148+
FileUtils.copyFile(mutatedFile, mutantRootFolderDir);
149+
File srcFolder = new File(mutantFolder);
150+
FileUtils.deleteDirectory(srcFolder);
145151
Long buildEnd = System.currentTimeMillis();
146152
Long mutationTime = mutationEnd-mutationIni;
147153
Long buildingTime = buildEnd - mutationEnd;

0 commit comments

Comments
 (0)