Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -751,8 +751,16 @@ tasks.register("docTags", Exec) {
commandLine("make", "-C", "docs/manual/", "tags")
}

tasks.register("buildSrcTags", Exec) {
group = "Emacs"
description = "Create Emacs TAGS table in buildSrc dir."
workingDir("buildSrc")
// `ctags -e -f TAGS` used to work in place of `etags`, but apparently no longer.
commandLine("bash", "-c", "find . \\( -name build -o -name jtreg -o -name tests \\) -prune -o -name '*.java' -print | sort-directory-order | xargs etags")
}
Comment thread
smillst marked this conversation as resolved.

tasks.register("tags", Exec) {
dependsOn(docTags)
dependsOn(docTags, buildSrcTags)
description = "Create Emacs TAGS table"
group = "Emacs"
// running this task will also run the tags task in the subprojects, which is defined later in this file.
Expand All @@ -778,6 +786,7 @@ subprojects {

if (!project.name.startsWith("checker-qual-android")) {
tasks.register("tags", Exec) {
group = "Emacs"
description = "Create Emacs TAGS table"
// `ctags -e -f TAGS` used to work in place of `etags`, but apparently no longer.
commandLine("bash", "-c", "find . \\( -name build -o -name jtreg -o -name tests \\) -prune -o -name '*.java' -print | sort-directory-order | xargs etags")
Expand Down