Question

1580024800 - Internal Incident: Q2C/GM4: Issue in ‘Simulate sales pipeline’ app.
I ran into a bit of problem while implementing the fix, my local eclipse maven build will fail if I change library.source.less the way you suggested, cause base.less and global.less don’t exist there (…/…/…/…/sap/ui/core/themes/sap_bluecrystal/base.less, eclipse error message pasted below), I’m wondering if there’s any way the solution could work with both server side and local environment? Thanks again for your help.

Caused by: org.mozilla.javascript.JavaScriptException: Error importing file:
JavaException: java.io.IOException: File not found: sap/cus/crm/sap/ui/core/themes/sap_bluecrystal/base.less (less-api.js#146)

In order to illustrate my point, here’s a screenshot with remarks for your kindly information.

Answer

the path in your error message looks not correct.
I think you need to add 3 additional occurrences of “…/” to navigate to the correct directory.

If your directory is:

sap/cus/crm/lib/reuse/themes/sap_bluecrystal

Your need to reference the base.less / global.less files via:

Then the path should be correctly resolved.
The same goes for your base theme which should reference the less files from sap/ui/core/themes/base/.

Question

it worked locally ! will it work on the server as well? Let me find it out J

// this works
@import “…/…/…/…/…/…/…/sap/ui/core/themes/base/base.less”;

// this does not work, find can’t be found cause there’s no sap_bluecrystal folder in the local core
@import “…/…/…/…/…/…/…/sap/ui/core/themes/sap_bluecrystal/base.less”;

Answer

the core „sap_bluecrystal“ theme is part of the „themelib_sap_bluecrystal” artefact.
You need to add this dependency to your “pom.xml” file:

<dependency>
<groupId>com.sap.ui5</groupId>
<artifactId>themelib_sap_bluecrystal</artifactId>
<version>{Same version as for your other dependencies, e.g. core}</version>
</dependency>

solution

为reuse lib inject了sap_bluecrystal them的dependency

第三步,我们reuse的代码(src/sap/cus/crm/lib/reuse/themes/sap_bluecrystal/library.source.less)中,加入了sap_bluecrystal jar包里面base.less和global.less两个style的引用

// BEGIN: i314323 fix for incident 1580024800 (Q2C/GM4: Issue in 'Simulate sales pipeline' app)
@import "../../../../../../../sap/ui/core/themes/sap_bluecrystal/base.less";
@import "../../../../../../../sap/ui/core/themes/sap_bluecrystal/global.less";// END: i314323 fix for incident 1580024800 (Q2C/GM4: Issue in 'Simulate sales pipeline' app)

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

reuse project css less path folder hierarchy issue相关推荐

  1. InstallShield Build Error -1014: Cannot rename directory PATH to PATH\folder.Bak.

    InstallSheild执行Build结果错误: 错误详细信息: Cannot rename directory <PATH> to <PATH>\folder.Bak. W ...

  2. Project: CSS Buttons

    2019独角兽企业重金招聘Python工程师标准>>> 1.html部分 <!DOCTYPE html> <html><head><titl ...

  3. our reuse project in HCP

    Created by Wang, Jerry, last modified on May 21, 2015

  4. medium font size in reuse project sapUiFontSize

    Created by Wang, Jerry, last modified on May 21, 2015

  5. how to replace the note reuse project into my own one

    Created by Wang, Jerry, last modified on May 21, 2015

  6. DotNetNuke CSS hierarchy

    2019独角兽企业重金招聘Python工程师标准>>> Posted by Vasilis on Sunday, September 21, 2008 DotNetNuke CSS ...

  7. django css_在应用程序上实现CSS Django的

    django css CSS (Cascade Style Sheets) are used to implement design. CSS(级联样式表)用于实现设计. Step 1: Create ...

  8. 七、Gradle中的Project

    说在前面:Gradle中project是非常重要的,所以也会有非常多的API及其可配置的属性,笔者也有许多不了解的,在这只是讲一些开发中比较常用的一些API和属性.但是了解了这些,其它的自己去看,去查 ...

  9. css 蒙版效果_CSS蒙版的过渡效果

    css 蒙版效果 View demo 查看演示 Download Source 下载源 Today we'd like to show you how to create an intriguingl ...

最新文章

  1. Windows XP安装Python,最高支持到3.4.4,后续版本不支持
  2. php mysql try catch_PHP的try catch有多大意义?
  3. C# 获取FormData数据
  4. 如何让listView加入的HeaderView不可点击【转】
  5. VC++动态链接库(DLL)编程深入浅出
  6. action 带参数跳转
  7. Actions require unique method/path combination for Swagger
  8. 南方科技大学计算机交换生,国际合作 – 合作交流分类 – 南方科技大学生物医学工程系...
  9. Docker-Compose 一键部署Ningx+.Net Core+Redis集群
  10. Ubuntu下VIM(GVIM)环境配置
  11. 路由算法之LS算法和DV算法全面分析
  12. 360浏览器升级_社畜必备!360浏览器上线“文档”功能 一键开启云办公
  13. 译:Datetime类型的扩展
  14. Apache 开启伪静态模块
  15. 【书籍阅读】-人在回路机器学习 Human-in-the-Loop Machine Learning(一)
  16. access2016访问mysql,《c#_vs2016对Access数据库的链接操作》.pdf
  17. 100个穷二代,每人100元,60岁前谁能翻盘?
  18. vue老项目升级vue-cli3.0问题总结
  19. Android_聊天_表情
  20. 此战成硕,我成功上岸西南交通大学了~~~

热门文章

  1. 【剑指offer】二叉树的深度_solution2
  2. 今天分享下移动端rem 适配
  3. poj-1979 dfs
  4. HDU 4868 Information Extraction(2014 多校联合第一场 H)
  5. iPhone模拟器中程序的删除
  6. JupyterNotebook随记(part1)--打开默认目录
  7. WebAPI(part5)--排他操作
  8. Django从理论到实战(part17)--模板概述
  9. mysql 增量备份_云计算-开源数据库-备份
  10. 5000字超干货|如何用数据分析驱动用户增长