日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

reuse project css less path folder hierarchy issue

發布時間:2023/12/19 编程问答 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 reuse project css less path folder hierarchy issue 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

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的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。