Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
15f29aac
Commit
15f29aac
authored
Mar 29, 2019
by
Janek
Committed by
Marc Cornellà
Mar 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gradle: also support settings files (#7014)
parent
b7b40b0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
gradle.plugin.zsh
plugins/gradle/gradle.plugin.zsh
+2
-2
No files found.
plugins/gradle/gradle.plugin.zsh
View file @
15f29aac
...
@@ -156,7 +156,7 @@ _gradle_parse_and_extract_tasks () {
...
@@ -156,7 +156,7 @@ _gradle_parse_and_extract_tasks () {
# Discover the gradle tasks by running "gradle tasks --all"
# Discover the gradle tasks by running "gradle tasks --all"
############################################################################
############################################################################
_gradle_tasks
()
{
_gradle_tasks
()
{
if
[[
-f
build.gradle
||
-f
build.gradle.kts
]]
;
then
if
[[
-f
build.gradle
||
-f
build.gradle.kts
||
-f
settings.gradle
||
-f
settings.gradle.kts
]]
;
then
_gradle_arguments
_gradle_arguments
if
_gradle_does_task_list_need_generating
;
then
if
_gradle_does_task_list_need_generating
;
then
_gradle_parse_and_extract_tasks
"
$(
gradle tasks
--all
)
"
>
.gradletasknamecache
_gradle_parse_and_extract_tasks
"
$(
gradle tasks
--all
)
"
>
.gradletasknamecache
...
@@ -166,7 +166,7 @@ _gradle_tasks () {
...
@@ -166,7 +166,7 @@ _gradle_tasks () {
}
}
_gradlew_tasks
()
{
_gradlew_tasks
()
{
if
[[
-f
build.gradle
||
-f
build.gradle.kts
]]
;
then
if
[[
-f
build.gradle
||
-f
build.gradle.kts
||
-f
settings.gradle
||
-f
settings.gradle.kts
]]
;
then
_gradle_arguments
_gradle_arguments
if
_gradle_does_task_list_need_generating
;
then
if
_gradle_does_task_list_need_generating
;
then
_gradle_parse_and_extract_tasks
"
$(
./gradlew tasks
--all
)
"
>
.gradletasknamecache
_gradle_parse_and_extract_tasks
"
$(
./gradlew tasks
--all
)
"
>
.gradletasknamecache
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment