упорядочил папки с кодом.
This commit is contained in:
31
src/Common/Passes/All/UnpackSapforTasksPackage.java
Normal file
31
src/Common/Passes/All/UnpackSapforTasksPackage.java
Normal file
@@ -0,0 +1,31 @@
|
||||
package Common.Passes.All;
|
||||
import Common.Global;
|
||||
import Common.Utils.Utils;
|
||||
import Repository.TestingSystem.SAPFOR.SapforTasksPackage.SapforTasksPackage;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Date;
|
||||
public class UnpackSapforTasksPackage extends UnzipFolderPass<SapforTasksPackage> {
|
||||
@Override
|
||||
protected boolean needsAnimation() {
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) {
|
||||
File tmpArchive = (File) args[0];
|
||||
target = (SapforTasksPackage) args[1];
|
||||
return super.canStart(tmpArchive.getAbsolutePath(),Global.SapforPackagesDirectory.getAbsolutePath(), false);
|
||||
}
|
||||
@Override
|
||||
protected void performPreparation() throws Exception {
|
||||
super.performPreparation();
|
||||
File packageWorkspace = target.getLocalWorkspace();
|
||||
Utils.forceDeleteWithCheck(packageWorkspace);
|
||||
}
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
super.body();
|
||||
FileUtils.writeStringToFile(target.getLoadedSign(), new Date().toString());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user