|
|
|
@ -1240,13 +1240,13 @@ JNIEXPORT void JNICALL Java_org_opencv_%(module)s_%(j_cls)s_delete |
|
|
|
|
def copy_java_files(java_files_dir, java_base_path, default_package_path='org/opencv/'): |
|
|
|
|
global total_files, updated_files |
|
|
|
|
java_files = [] |
|
|
|
|
re_filter = re.compile(r'^.+\.(java|aidl|kt)(.in)?$') |
|
|
|
|
re_filter = re.compile(r'^.+\.(java|kt)(.in)?$') |
|
|
|
|
for root, dirnames, filenames in os.walk(java_files_dir): |
|
|
|
|
java_files += [os.path.join(root, filename) for filename in filenames if re_filter.match(filename)] |
|
|
|
|
java_files = [f.replace('\\', '/') for f in java_files] |
|
|
|
|
|
|
|
|
|
re_package = re.compile(r'^package +(.+);') |
|
|
|
|
re_prefix = re.compile(r'^.+[\+/]([^\+]+).(java|aidl|kt)(.in)?$') |
|
|
|
|
re_prefix = re.compile(r'^.+[\+/]([^\+]+).(java|kt)(.in)?$') |
|
|
|
|
for java_file in java_files: |
|
|
|
|
src = checkFileRemap(java_file) |
|
|
|
|
with open(src, 'r') as f: |
|
|
|
|