소스 검색

Merge pull request #453 from Yakindu/issue_366

#366 : fix exception for linux
jdicks 9 년 전
부모
커밋
8db152b5b3
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      plugins/org.yakindu.sct.generator.core/src/org/yakindu/sct/generator/core/util/ClasspathChanger.java

+ 2 - 1
plugins/org.yakindu.sct.generator.core/src/org/yakindu/sct/generator/core/util/ClasspathChanger.java

@@ -69,7 +69,8 @@ public class ClasspathChanger {
 
 		for (IClasspathEntry entry : entries) {
 			String projectString = "/" + project.getName() + "/" + folder;
-			if (entry.getPath().toString().equals(projectString)) {
+			String entryPath = entry.getPath().toString();
+			if (projectString.startsWith(entryPath)) {
 				return true;
 			}
 		}