Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config cleanCacheDir #977

Merged
merged 3 commits into from
Mar 17, 2023
Merged

Add config cleanCacheDir #977

merged 3 commits into from
Mar 17, 2023

Conversation

hvvikram
Copy link
Collaborator

Description:
Add config cleanCacheDir which controls whether to delete the cache dir or only the existing dependency rules files, before generating the dependency rule files

Usage

okbuck {
   ... 
   externalDependencies {
      ...
      cleanCacheDir = false
   }
   ...
}

Related issue(s):

…cache dir or only the existing dependency rules files, before generating the dependency rule files
* Specifies to delete the cache dir, before generating dependency rules If set to false, only
* deletes the existing dependency rules files.
*/
@Input private boolean cleanCacheDir = true;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc: @tyvsmith this should help in preserving METADATA files in 3rdparty/jvm

@hvvikram hvvikram merged commit f1c64f0 into master Mar 17, 2023
vicmns pushed a commit to vicmns/okbuck that referenced this pull request May 31, 2023
* Add config cleanCacheDir which controls whether to delete the entire cache dir or only the existing dependency rules files, before generating the dependency rule files

* Switched to parallel delete

* Use TrueFileFilter for directory filter instead of null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants