Reputation: 147
I want to apply a patch file in eclipse. I just simply followed these steps:
Right clicked my project
Team -> Apply patch
File -> Given the input patch file
Apply the patch to the selected file, folder or project -> Selected my project
Patch contents show me:
file does not exist
In the patch file, mentioned a source file to change (src/main/java/org/apache/tapestry5/internal/spring/SpringModuleDef.java). But that source file is my framework's tapestry5/internal/spring/SpringModuleDef.java file & I included that tapestry-spring using maven repository dependency.
while selecting the "Apply the patch to the selected file" I don't have the option to select maven things.
So I removed that dependency url & included as a jar in my project, I tried by selecting the jar file, still now the same error throws. I can't be able to apply that patch.
Anyone help me?
Upvotes: 1
Views: 2118
Reputation: 27994
You are applying the patch to a different folder to where it was created. You will need to apply the patch at exactly the same level/folder as it was created. Usually this is done in the root folder of the trunk
or a specific branch
/ tag
.
It seems strange to me that you consider your root to be some arbitrary child folder in source tree. I suggest that you checkout from the root folder and create and apply patches from root.
Upvotes: 3