Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 6e73fae

Browse files
committed
License script
1 parent 263aa5d commit 6e73fae

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tools/licenses/lib/main.dart

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,6 +1497,16 @@ class _RepositoryIcuDirectory extends _RepositoryDirectory {
14971497
}
14981498
}
14991499

1500+
class _RepositoryBundletoolDirectory extends _RepositoryDirectory {
1501+
_RepositoryBundletoolDirectory(_RepositoryDirectory parent, fs.Directory io) : super(parent, io);
1502+
1503+
@override
1504+
bool shouldRecurse(fs.IoNode entry) {
1505+
return entry.name != 'bundletool.jar' // redundant with LICENSE file
1506+
&& super.shouldRecurse(entry);
1507+
}
1508+
}
1509+
15001510
class _RepositoryHarfbuzzDirectory extends _RepositoryDirectory {
15011511
_RepositoryHarfbuzzDirectory(_RepositoryDirectory parent, fs.Directory io) : super(parent, io);
15021512

@@ -1858,6 +1868,8 @@ class _RepositoryRootThirdPartyDirectory extends _RepositoryGenericThirdPartyDir
18581868
return _RepositoryHarfbuzzDirectory(this, entry);
18591869
if (entry.name == 'icu')
18601870
return _RepositoryIcuDirectory(this, entry);
1871+
if (entry.name == 'bundletool')
1872+
return _RepositoryBundletoolDirectory(this, entry);
18611873
if (entry.name == 'jsr-305')
18621874
return _RepositoryJSR305Directory(this, entry);
18631875
if (entry.name == 'libcxx')

0 commit comments

Comments
 (0)