• Erik Zivkovic's avatar
    Improve gradle plugin task parsing (#5230) · e4684368
    Erik Zivkovic authored
    * Improve gradle plugin task parsing
    
    Added _gradle and _gradlew as symbolic links to gradle.plugin.zsh,
    otherwise the plugin was not properly loaded.
    
    Output from `gradlew tasks --all` is now parsed in two levels,
    first we find segments between `------...` and a newline.
    Second, all those lines are parsed and cleaned using awk
    and added to .gradletasknamecache.
    
    Tested on gradle 2.13, and gradlew 2.14.
    
    * Remove .gradletasknamecache before regenerating it
    
    Remove the .gradletasknamecache file to avoid having an unnecessary
    newline at the top of the file when regenerating it.
    
    * Improve gradle task parsing by writing .gradletasknamecache atomically
    
    Previously the .gradletasknamecache file was written line by line inside a parsing loop,
    which could cause errors such as half-written cache files if the process was aborted.
    
    This also removes the need of deleting the .gradletasknamecache file before parsing.
    e4684368
Name
Last commit
Last update
cache Loading commit data...
custom Loading commit data...
lib Loading commit data...
log Loading commit data...
plugins Loading commit data...
templates Loading commit data...
themes Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
LICENSE.txt Loading commit data...
README.md Loading commit data...
oh-my-zsh.sh Loading commit data...