no message
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
package SapforTestingSystem.Json;
|
||||
import Common.Global;
|
||||
import Common.Utils.Utils;
|
||||
import com.google.gson.annotations.Expose;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.Serializable;
|
||||
import java.nio.file.Paths;
|
||||
public class SapforVersion_json implements Serializable {
|
||||
@Expose
|
||||
public String version = "";
|
||||
@@ -15,4 +19,13 @@ public class SapforVersion_json implements Serializable {
|
||||
version = version_in.substring(root_in.length() + 1);
|
||||
description = description_in;
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return Home.getName()+ " : "+ Utils.Brackets(description);
|
||||
}
|
||||
public File Home = null;
|
||||
public void initHome(File configurationRoot) {
|
||||
String relativePath = Global.isWindows ? Utils.toW(version) : version;
|
||||
Home = Paths.get(configurationRoot.getAbsolutePath(), relativePath).toFile();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user