mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -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 = []
|
imports = []
|
||||||
try:
|
try:
|
||||||
for match in JavaImportRegex.finditer(source, 0):
|
for match in JavaImportRegex.finditer(source, 0):
|
||||||
impname = match.group(1)
|
impname = match.group(1).strip()
|
||||||
imports.append(impname.strip())
|
if not impname.startswith('java.') and \
|
||||||
|
not impname.startswith('dalvik.') and \
|
||||||
|
not impname.startswith('android.'):
|
||||||
|
imports.append(impname.strip())
|
||||||
except:
|
except:
|
||||||
print("Failed to determine dependencies of \"" + path +"\".")
|
print("Failed to determine dependencies of \"" + path +"\".")
|
||||||
raise
|
raise
|
||||||
|
Loading…
x
Reference in New Issue
Block a user