Skip to content

Commit

Permalink
fix: extensions won't compile after the previous release
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyashsaitwal committed Dec 11, 2021
1 parent dd04619 commit 129e90e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/helpers/cmd_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,15 @@ class CmdUtils {

/// Returns a ";" or ":" separated string of dependencies.
static String generateClasspath(List<FileSystemEntity> entities,
{List<String> exclude = const [''],
{List<String> exclude = const [],
Directory? classesDir,
bool relative = true}) {
exclude.addAll([
final List<String> excludeList = [
...exclude,
'runtime-sources.jar',
'annotations-sources.jar',
'kotlin-stdlib-sources.jar',
]);
];

final jars = <String>[];

Expand All @@ -62,7 +63,7 @@ class CmdUtils {
.whereType<File>()
.where((el) =>
p.extension(el.path) == '.jar' &&
!exclude.contains(p.basename(el.path)))
!excludeList.contains(p.basename(el.path)))
.forEach((el) {
if (relative) {
jars.add(p.relative(el.path));
Expand Down

0 comments on commit 129e90e

Please sign in to comment.