Skip to content

Commit 4a32855

Browse files
romtsnclaude
andcommitted
feat(bundle-jvm): Add clojure extensions and more default excludes
Add .clj and .cljc to JVM extensions. Expand default excludes to cover Maven (target, .mvn), IDE (.idea, .vscode, .eclipse, .settings, .fleet), and common output dirs (bin, out, .kotlin). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a74c1d4 commit 4a32855

2 files changed

Lines changed: 21 additions & 5 deletions

File tree

src/commands/debug_files/bundle_jvm.rs

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,25 @@ use std::sync::Arc;
1717
use symbolic::debuginfo::sourcebundle::SourceFileType;
1818

1919
/// File extensions for JVM-based languages.
20-
const JVM_EXTENSIONS: &[&str] = &["java", "kt", "scala", "groovy"];
20+
const JVM_EXTENSIONS: &[&str] = &["java", "kt", "scala", "groovy", "clj", "cljc"];
2121

2222
/// Default directory patterns to exclude from source collection.
23-
const DEFAULT_EXCLUDES: &[&str] = &["!build", "!.gradle", "!.cxx", "!node_modules"];
23+
const DEFAULT_EXCLUDES: &[&str] = &[
24+
"!build",
25+
"!.gradle",
26+
"!.cxx",
27+
"!node_modules",
28+
"!target",
29+
"!.mvn",
30+
"!.idea",
31+
"!.vscode",
32+
"!.eclipse",
33+
"!.settings",
34+
"!bin",
35+
"!out",
36+
"!.kotlin",
37+
"!.fleet",
38+
];
2439

2540
pub fn make_command(command: Command) -> Command {
2641
command
@@ -60,7 +75,8 @@ pub fn make_command(command: Command) -> Command {
6075
.action(ArgAction::Append)
6176
.help(
6277
"Glob pattern to exclude files/directories. Can be repeated. \
63-
By default, 'build', '.gradle', '.cxx', and 'node_modules' directories are excluded.",
78+
By default, common build output and IDE directories are excluded \
79+
(build, .gradle, target, .idea, .vscode, out, bin, etc.).",
6480
),
6581
)
6682
}

tests/integration/_cases/debug_files/debug_files-bundle-jvm-help.trycmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Options:
1919
--log-level <LOG_LEVEL> Set the log output verbosity. [possible values: trace, debug, info,
2020
warn, error]
2121
--exclude <PATTERN> Glob pattern to exclude files/directories. Can be repeated. By
22-
default, 'build', '.gradle', '.cxx', and 'node_modules' directories
23-
are excluded.
22+
default, common build output and IDE directories are excluded
23+
(build, .gradle, target, .idea, .vscode, out, bin, etc.).
2424
--quiet Do not print any output while preserving correct exit code. This
2525
flag is currently implemented only for selected subcommands.
2626
[aliases: --silent]

0 commit comments

Comments
 (0)