Uploading a JavaScript Library to the Server


The following procedure shows you how to upload a JavaScript library to the Swift MEAP™ Server. Only .js files are supported.

To upload a scripts library to the Swift MEAP™ Server

  1. Start the Admin application.
  2. Click Administrator on the vertical application bar, and then select import JS.
  3. Select one of the following two options:
    1. Upload to existing subfolder - Uploading to an existing subfolder will replace the contents with the new JS library data. Core subfolders are write-protected, and they may not be manually modified.
    2. Create new subfolder. For Swift MEAP™ with a single port configuration (such as tomcat only on port 8080), the subfolder is located inside the following path:
      $TOMCAT_HOME\webapps\\[Contextname]\images\MESvrAccountId\JSLib
  4. Select a folder from the Select folder drop-down list.
  5. Click Choose File to browse to the location of the library file on your local drive.
  6. Click Upload.
For a split port configuration, where Swift MEAP™ serves the console and the client on different ports, the subfolder is located inside the following path: $TOMCAT_HOME\webapps\[Contextname]\console\[Contextname]\images\MESvrAccountId\JSLib


Script files that you upload will overwrite the existing files on the server, and there is currently no support for removing a script from the Swift MEAP™ console.