Hi Sahana,

It looks like your patch failed:

[ant:patch] Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line
354

Are you sure the patch is intended to be applied to the latest (trunk)
OFBiz sources?

On Tue, 6 Jun 2023 at 07:38, Sahana Somanna <sahan...@xmplar.in> wrote:

> Greetings,
>
> I have downloaded ofbiz project from .git repository. And trying to apply
> patch using GIT BASH
> I used below command to the path hot-deploy/crest-common path.
>
> ./gradlew applyCustomPatch -Penv=dev
>
> I endup with the error
>
> [ant:patch] patching file
> E:\eclipse-workspace\Misterlight_branch_2.1\framework\images\webapp\images\OfbizUtil.js
> [ant:patch] patching file
> E:\eclipse-workspace\Misterlight_branch_2.1\specialpurpose\component-load.xml
> [ant:patch] patching file
> E:\eclipse-workspace\Misterlight_branch_2.1\framework\widget\templates\HtmlFormMacroLibrary.ftl
> [ant:patch] patching file
> E:\eclipse-workspace\Misterlight_branch_2.1\framework\widget\templates\HtmlScreenMacroLibrary.ftl
> [ant:patch] patching file
> E:\eclipse-workspace\Misterlight_branch_2.1\framework\widget\templates\HtmlMenuMacroLibrary.ftl
> [ant:patch] patching file
> E:\eclipse-workspace\Misterlight_branch_2.1\framework\common\widget\CommonScreens.xml
> [ant:patch] Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line
> 354
> :hot-deploy:crest-common:applyCustomPatch FAILED
> :hot-deploy:crest-common:applyCustomPatch (Thread[main,5,main]) completed.
> Took 0.402 secs.
>
> FAILURE: Build failed with an exception.
>
> * Where:
> Build file
> 'E:\eclipse-workspace\Misterlight_branch_2.1\hot-deploy\crest-common\build.gradle'
> line: 44
>
> * What went wrong:
> Execution failed for task ':hot-deploy:crest-common:applyCustomPatch'.
> > 'patch' failed with exit code 3
>
> Configuration having:
>
> E:\eclipse-workspace\Misterlight_branch_2.1>where java
> C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe
> C:\Program Files\Java\jdk1.8.0_333\bin\java.exe
>
> E:\eclipse-workspace\Misterlight_branch_2.1>gradlew -version
>
> ------------------------------------------------------------
> Gradle 2.13
> ------------------------------------------------------------
>
> Build time:   2016-04-25 04:10:10 UTC
> Build number: none
> Revision:     3b427b1481e46232107303c90be7b05079b05b1c
>
> Groovy:       2.4.4
> Ant:          Apache Ant(TM) version 1.9.6 compiled on June 29 2015
> JVM:          1.8.0_333 (Oracle Corporation 25.333-b02)
> OS:           Windows 11 10.0 amd64
>
> Can anyone please help me, why gradlew applyCuystomPatch -Penv=dev is
> failing.
>
> Best Regards,
> Sahana S
>


-- 
Daniel Watford

Reply via email to