Sakamoto Kazuma
Sakamoto Kazuma

Reputation: 2579

Using Gradle to Rsync instead of copy

I have a project that involves moving files from one directory to another repeatedly during build and debugging processes. To help with that, I ended up making a task to file copy parts of the project from one location to another.

Is there a way to get gradle to perform an rsync instead of a copy? I feel like 2 minutes to copy all of the necessary files when only making a few changes to one isn't exactly efficient.

Or is there something wrong with gradle for it to be taking that long?

Upvotes: 2

Views: 1582

Answers (1)

Peter Niederwieser
Peter Niederwieser

Reputation: 123910

Gradle doesn't ship with rsync-like functionality, but you could call rsync using an Exec task. It's also worthwhile to check whether there is a third-party plugin.

Upvotes: 1

Related Questions