Changes in config
This commit is contained in:
@@ -21,8 +21,6 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public abstract class Config {
|
public abstract class Config {
|
||||||
|
|
||||||
@NotNull
|
|
||||||
private static final String PATH_TO_JS_LIB_SRC = getPathToJsLibSrc();
|
|
||||||
|
|
||||||
//TODO: provide some generic way to get the files of the project
|
//TODO: provide some generic way to get the files of the project
|
||||||
@NotNull
|
@NotNull
|
||||||
@@ -39,17 +37,6 @@ public abstract class Config {
|
|||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@NotNull
|
|
||||||
private static String getPathToJsLibSrc() {
|
|
||||||
try {
|
|
||||||
File file = new File("config.txt");
|
|
||||||
List<String> lines = Files.readLines(file, Charsets.UTF_8);
|
|
||||||
return lines.get(0);
|
|
||||||
} catch (Exception ex) {
|
|
||||||
return "jslib/src";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
private static List<JetFile> initLibFiles(@NotNull Project project) {
|
private static List<JetFile> initLibFiles(@NotNull Project project) {
|
||||||
List<JetFile> libFiles = new ArrayList<JetFile>();
|
List<JetFile> libFiles = new ArrayList<JetFile>();
|
||||||
|
|||||||
Reference in New Issue
Block a user