Skip to content
A Gradle plugin for creating patch files between two directories.
Groovy
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper Added support for root to be a zip file. Jul 22, 2018
src/main Quiet exceptions in ApplyPatches. Aug 3, 2018
.gitattributes Initial commit Sep 26, 2015
.gitignore
HEADER.txt Update license headers Apr 3, 2017
LICENSE.txt Update license headers Apr 3, 2017
README.md Update Gradle wrapper + README Apr 3, 2017
build.gradle 1.3.2: Prep for next dev cycle Aug 14, 2018
gradlew Update Gradle wrapper + README Apr 3, 2017
gradlew.bat Update Gradle wrapper + README Apr 3, 2017
settings.gradle Initial commit Sep 26, 2015

README.md

ProPatcher

ProPatcher is a Gradle plugin for creating patch files on the go.

ProPatcher requires Java 1.8

Installation

ProPatcher has been added to Gradle's plugin portal, and can be used using the new plugin mechanism introduced in Gradle 2.1. You can find the plugin here.

plugins {
    id 'uk.jamierocks.propatcher' version '1.2.3'
}

For those of you, using builds where you cannot utilise the new plugin mechanism, or are using a version of Gradle prior to 2.1, here is the old example:

buildscript {
    repositories {
        maven {
            url 'https://plugins.gradle.org/m2/'
        }
    }
    dependencies {
        classpath 'gradle.plugin.uk.jamierocks:propatcher:1.2.3'
    }
}

apply plugin: 'uk.jamierocks.propatcher'

Example

patches {
    root = file('root') // This is a directory
    target = file('target') // This is also a directory
    patches = file('patches') // This is again a directory
}

Tasks

Name Description
makePatches Make all necessary patch files.
applyPatches Apply all patches to the target.
resetSources Resets the target, to it's original unmodified state.
You can’t perform that action at this time.