Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9080

How to load openui5 using the file system reusing 'resources' folder between projects?

$
0
0

I was able to install Tomcat on my Eclipse Luna running on Mavericks.

 

I just have one doubt: what should be my bootstrap if I want to use openui5 locally (using the file system)?

 

After downloading openui5 (SDK) using the link below I was able to easily locate 'resources' and folder 'sap-ui-core-all.js'.

 

OpenUI5 - Download

 

However copying this folder inside my project has two main issues

  1. The folder has 50MB and Eclipse just gets crazy when trying to deploy the project to Tomcat. I found heap memory issues and the deploy just takes too long.
  2. The SDK/Runtime is not reused. I would like to reuse the SDK/Runtime in many projects so copying and pasting 'resources' folder inside each project doesn't seems the right way of doing that.

 

So I tried to use the local file directly in the bootstrap, as below.

 

    <script src="file:///Users/fabiopagoti/Dev/hana/openui5-sdk/resources/sap-ui-core-all.js"
   id="sap-ui-bootstrap"
   data-sap-ui-libs="sap.ui.commons"
   data-sap-ui-theme="sap_bluecrystal">
   </script>

 

However when I open my index.html file openui5 (sap-ui-core-all.js) is not located. I tried to copy and paste "resources" folder inside a tomcat's folder as well but it has the same effect.

 

ReferenceError: sap is not defined
sap.ui.localResources("nyt-launchpad");

I can find the file normally using Finder and opening it inside the browser. So, the bootstrap path is not wrong because the file exists.

 

Could someone please help me sort that out?

 

Thanks!


Viewing all articles
Browse latest Browse all 9080

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>