cadixdev / propatcher Goto Github PK
View Code? Open in Web Editor NEWA Gradle plugin for creating patch files between two directories.
Home Page: https://plugins.gradle.org/plugin/uk.jamierocks.propatcher
License: MIT License
A Gradle plugin for creating patch files between two directories.
Home Page: https://plugins.gradle.org/plugin/uk.jamierocks.propatcher
License: MIT License
Pretty simple error, on Windows 10 :
Caused by: java.io.FileNotFoundException: \dev\null (Le chemin dÆaccÞs spÚcifiÚ est introuvable)
at com.cloudbees.diff.Diff.diff(Diff.java:25)
at com.cloudbees.diff.Diff$diff.call(Unknown Source)
at uk.jamierocks.propatcher.task.MakePatchesTask.process(MakePatchesTask.groovy:97)
at uk.jamierocks.propatcher.task.MakePatchesTask$process.callCurrent(Unknown Source)
at uk.jamierocks.propatcher.task.MakePatchesTask.doTask(MakePatchesTask.groovy:51)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
... 75 more
So it isn't applying any patchFiles under linux,
No errors produced either from the plugin...
https://github.com/kingdevnl/EML/blob/master/build.gradle
When using any Gradle version greater than 7.0, Gradle refuses to run any MakePatchesTasks with the given error
A problem was found with the configuration of task ':makePatches' (type 'MakePatchesTask').
- In plugin 'uk.jamierocks.propatcher' type 'uk.jamierocks.propatcher.task.MakePatchesTask' property 'ignoreWhitespace' has redundant getters: 'getIgnoreWhitespace()' and 'isIgnoreWhitespace()'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
I am experiencing a situation where executable files in the root directory are no longer executable in the target directory after running ./gradlew applyPatches
Here's my config:
plugins {
id 'uk.jamierocks.propatcher' version '1.2.3'
id 'java'
}
patches {
root = file("${buildDir}/tensorflow") // This is a directory
target = file("${buildDir}/tensorflow.patched") // This is also a directory
patches = file('patches') // This is again a directory
}
There is a single patch in the patch directory.
build@tensorflow-build:/src/acadia/tensorflow_gradle$ ls -l patches/
total 4
-rw-r--r-- 1 build build 1572 Jan 8 21:55 build_raspberry_pi.sh.patch.txt
./gradlew applyPatches
results in the execute bit being lost on all executable files in the target directory. For example:
in the root directory:
-rwxr-xr-x 1 build build 231 Jan 9 14:13 configure
in the target directory:
-rw-r--r-- 1 build build 231 Jan 9 14:13 configure
umask shows:
build@tensorflow-build:/src/acadia/tensorflow_gradle$ umask
0022
so I don't believe that is the issue. Any ideas? Thanks.
> Task :1.16.5:projectjoinedReset
Property 'root' is not annotated with an input or output annotation. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0. See https://docs.gradle.org/6.8.1/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Property 'target' is not annotated with an input or output annotation. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0. See https://docs.gradle.org/6.8.1/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
> Task :1.16.5:projectjoinedApplyPatches
Property 'patches' is not annotated with an input or output annotation. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0. See https://docs.gradle.org/6.8.1/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
> Task :1.16.5:projectclientMakePatches
Property 'patches' has @Input annotation used on property of type 'File'. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0. See https://docs.gradle.org/6.8.1/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Property 'root' has @Input annotation used on property of type 'File'. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0. See https://docs.gradle.org/6.8.1/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Property 'target' has @Input annotation used on property of type 'File'. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0. See https://docs.gradle.org/6.8.1/userguide/more_about_tasks.html#sec:up_to_date_checks for more details.
Whenever you get around to it. Not that big of a deal.
diff4j uses System.getProperty("line.separator") for the new line characters in patch files. This is not ideal when submitting patches to a source repo.
Whenever you get a chance, adding a option to standardize the line endings would be useful.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.