mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
makepanda: Ignore system imports when scanning .java files
This commit is contained in:
parent
5c03cd59fb
commit
bb68abdd59
@ -877,8 +877,11 @@ def JavaGetImports(path):
|
||||
imports = []
|
||||
try:
|
||||
for match in JavaImportRegex.finditer(source, 0):
|
||||
impname = match.group(1)
|
||||
imports.append(impname.strip())
|
||||
impname = match.group(1).strip()
|
||||
if not impname.startswith('java.') and \
|
||||
not impname.startswith('dalvik.') and \
|
||||
not impname.startswith('android.'):
|
||||
imports.append(impname.strip())
|
||||
except:
|
||||
print("Failed to determine dependencies of \"" + path +"\".")
|
||||
raise
|
||||
|
Loading…
x
Reference in New Issue
Block a user