How to get all Java-Files from a Project without the java files from the dependencies
Hello, I try to get all java Files from the project. I tried this:
FileBasedIndex.getInstance()
.getContainingFiles(
FileTypeIndex.NAME,
JavaFileType.INSTANCE,
GlobalSearchScope.allScope(project))
But I get all java Files also the files from the Dependencies.
How can I get only the Files from the Project without the files from the Dependencies?
kind regards
Chris
Please sign in to leave a comment.
Ok, this was a realy dumb question. You have to set the GlobalSeachScope to projectScope and thats it. :)