bodar / shavenmaven

A tiny dependency resolver for Java
30 stars 3 forks source link

Recursively find dependencies files #9

Closed sl4mmy closed 8 years ago

sl4mmy commented 8 years ago

Recursively walk the dependencies dir specified on the command line looking for .dependencies files.

sl4mmy commented 8 years ago

Hey, dude-

@joewalnes and I are currently looking at ShavenMaven for use on a project at $WORK but it'd be really useful if it recursively looked for .dependencies files and mirrored their structure in the output dirs. What do you think of the idea in general?

Also, commit a20a59e feels a little schizophrenic at the moment because of the combined use of the Java 8 Files/Path/Stream APIs with all your existing TotallyLazy usage, but I didn't see any recursive walk function in TotallyLazy's Files class so it seemed like mixing & matching was the simplest approach. Let me know if you'd prefer to add that functionality to TotallyLazy instead, or replace more of the TotallyLazy use in ShavenMaven with Java 8 APIs, or whatever if you prefer something else instead.

danielbodart commented 8 years ago

It's called File.recursiveFiles in TL ;) or Files.recursiveFilesDirectoriesFirst.

Could you change it to use that instead?

Thanks

Dan

sl4mmy commented 8 years ago

Yep, definitely! :)

On Mar 19, 2016, at 01:54, Daniel Worthington-Bodart notifications@github.com wrote:

It's called File.recursiveFiles in TL ;) or Files.recursiveFilesDirectoriesFirst.

Could you change it to use that instead?

Thanks

Dan

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub

sl4mmy commented 8 years ago

How's it look now?