Ant script failing with error “source file does not exist” despite the file exists,

佐手、 提交于 2020-01-14 04:18:26

问题


below is the script I am using and it is failing with error :

java.lang.RuntimeException: Source File: ../CalcMgr/exploded/ear/adf/META-INF/adf-config.xml does not exist.

I tried running it locally and the build.xml works. But in jenkins server though the file exists it is failing with that error.

    <echo message="Replacing '#\{JAVASCRIPT_VERSION\}' with '${env.JAVASCRIPT_VERSION}' in file: '${exploded}/ear/adf/META-INF/adf-config.xml'" />
        <refactorbuildno fileName="${exploded}/ear/adf/META-INF/adf-config.xml" searchText="#\{JAVASCRIPT_VERSION\}" replaceText="${env.JAVASCRIPT_VERSION}"/>

Anyone kindly help to fix this

来源:https://stackoverflow.com/questions/56786767/ant-script-failing-with-error-source-file-does-not-exist-despite-the-file-exis

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!