Skip to Content
avatar image
Former Member

Library Project

Common to IDEs are several projects that can be main projects  and a library project that contains code shared by all main projects.  This is exactly the case in our Fiori project: one Eclipse project is a library of common JavaScript and it is used in several main projects.   How do we do this in Web IDE?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 08, 2015 at 05:16 PM

    Using web ide created the project to share and the project to use the shared project.  How do we link the main project to use the shared project?

    For example, in the shop example Fiori app, it refers to the UI5 shared library:

    <script id="sap-ui-bootstrap"

        src="resources/sap-ui-core.js" data-sap-ui-libs="sap.m"

        data-sap-ui-theme="sap_bluecrystal"

        data-sap-ui-xx-bindingSyntax="complex" data-sap-ui-compatVersion="1.16"

        data-sap-ui-resourceroots='{"nw.epm.refapps.ext.shop": "./"}'>

    </script>

    But the directory "resources" is not is the project.  It is just magic.   So it appears web ide has certain magic libraries hard coded into the system and there is no example in the example project for a developer to override the hard coded libraries or add their own.

    Add comment
    10|10000 characters needed characters exceeded