We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be0d488 commit ff1f397Copy full SHA for ff1f397
1 file changed
src/main/java/entity/FileEntity.java
@@ -83,4 +83,19 @@ public boolean getHas_androidtestInstrumentationTestCase()
83
public boolean getHas_orgjunitAssert(){
84
return imports.get("org.junit.Assert");
85
}
86
+
87
+ public String getRelativeFilePath(){
88
+ String filePath = path.toAbsolutePath().toString();
89
+ String[] splitString = filePath.split("\\\\");
90
+ StringBuilder stringBuilder = new StringBuilder();
91
+ for (int i = 0; i < 5; i++) {
92
+ stringBuilder.append(splitString[i] + "\\");
93
+ }
94
+ return filePath.substring(stringBuilder.toString().length()).replace("\\","/");
95
96
97
+ public String getAppName(){
98
99
+ return filePath.split("\\\\")[3];
100
101
0 commit comments