patch

Patch/Merge plugin.properties file in plugin by using fragment

有些话、适合烂在心里 提交于 2019-12-24 00:25:38
问题 In my plugin de.support.help are the plugin.properties files. These properties files include the strings for the preference page. I want to use this plugin for different customers, but the customer name is inside the properties files. I want to patch the properties files by using the eclipse fragment mechanism. As far as i now the fragment plugin can patch the coresponding plugin at runtime. I do have the file plugin.properties in plugin de.support.help which includes the line plugin.name =

How to apply a patchfile such that it creates new files if needed?

☆樱花仙子☆ 提交于 2019-12-23 20:16:34
问题 I have a set of patch files, which include newly created files. Is there a way to tell patch to create those files or do I have to touch each one manually? 回答1: patch will create new files if they were created in the patch file. 来源: https://stackoverflow.com/questions/3377873/how-to-apply-a-patchfile-such-that-it-creates-new-files-if-needed

How to use diff and patch in Cygwin on Windows?

徘徊边缘 提交于 2019-12-23 18:22:55
问题 I follow many articles out there but I still don't know how to use diff and patch in Cygwin Here I create 2 files in Windows Explorer origin.txt one two three new.txt one four five Then I diff -u origin.txt new.txt > file.patch which results this --- origin.txt 2013-03-21 15:53:20.062956800 +0700 +++ new.txt 2013-03-21 15:53:29.191869600 +0700 @@ -1,3 +1,3 @@ one -two -three \ No newline at end of file +four +five \ No newline at end of file Then I patch origin.txt < file.patch which show

How is the tilde escaping in the JSON Patch RFC supposed to operate?

做~自己de王妃 提交于 2019-12-23 15:26:54
问题 Referencing http://tools.ietf.org/html/rfc6902#appendix-A.14: A.14. ~ Escape Ordering An example target JSON document: { "/": 9, "~1": 10 } A JSON Patch document: [ {"op": "test", "path": "/~01", "value": 10} ] The resulting JSON document: { "/": 9, "~1": 10 } I'm writing an implementation of this RFC, and I'm stuck on this. What is this trying to achieve, and how is it supposed to work? Assuming the answer to the first part is "Allowing json key names containing /s to be referenced," how

Why does git pull --rebase fail when replaying existing commits?

不想你离开。 提交于 2019-12-23 09:47:37
问题 I don't get this: when I 'git pull --rebase remote branch' it reverts my HEAD back to their shared root and then starts replaying all of the remote commits that have happened in the meantime. Why do these commits sometimes fail? They are clean commits on a clean workspace? Isn't that almost the point of rebasing? 回答1: Are you sure it isn't your commits failing? Suppose you are working on a branch and make a bunch of changes to a specific file. Now you want to rebase your commits on to

A layout for maven project with a patched dependency

本秂侑毒 提交于 2019-12-23 09:37:06
问题 Suppose, I have an opensource project that depends on some library, that must be patched in order to fix some issues. How do I do that? My ideas are: Have that library sources set up as a module, keep them in my vcs. Pros: simple. Cons: some third party sources in my repo, might slow down build process, hard to find a patched place (though can be fixed in README) Have a module, like in 1, but keep patched source files only, compile them with orignal library jar in classpath and somehow

How to determine the Security Patch Level of an Android device?

本秂侑毒 提交于 2019-12-23 08:31:36
问题 How can I determine the security patch level of an Android device using an API or other mechanism? I'm looking for the same security patch information that can be found manually by clicking the Settings -> About menu on the device. Google issues security patches every month, for example 2016-12-01. 回答1: In Android SDK 23 (Marshmallow) and later, you can retrieve the security patch date from android.os.Build.VERSION.SECURITY_PATCH. The date is a string value in YYYY-MM-DD form. In Lollipop,

How to determine the Security Patch Level of an Android device?

北战南征 提交于 2019-12-23 08:31:11
问题 How can I determine the security patch level of an Android device using an API or other mechanism? I'm looking for the same security patch information that can be found manually by clicking the Settings -> About menu on the device. Google issues security patches every month, for example 2016-12-01. 回答1: In Android SDK 23 (Marshmallow) and later, you can retrieve the security patch date from android.os.Build.VERSION.SECURITY_PATCH. The date is a string value in YYYY-MM-DD form. In Lollipop,

OSGi Application Patching Strategy

。_饼干妹妹 提交于 2019-12-22 13:47:08
问题 What are appropriate mechanisms for patching an OSGi container. 1) Should the bundles (binaries/jars) have the same name as the old ones then: a. Replace the bundle with the with the new bundle (manifest has been modified to reflect the new version) in the plug-ins folder and, b. Invoke update <bundle id> <bundle name>. 2) Or Should the bundles have version information encoded in the file name a. Copy the new bundle to the plug-ins folder b. Invoke update <bundle id> file:plugins/<new Bundle

How do I apply a patch file in Gradle?

China☆狼群 提交于 2019-12-22 09:11:27
问题 I have a Gradle build script that successfully builds my project and compiles all the artifacts I need. However, in a couple of cases I'd like to give other developers the option to patch some of the files. For example, in one of the archives there's an xml file with information about database hooks - some of the devs use other versions (or even engines) and need to change these before they can use the build output. Instead of having them make changes to a version-controlled file, which they