Junos Space SDK > Developer Guides > Junos Space Application Developer Guide > Programming with the Junos Space SDK > Using the Junos Space SDK Plug-in > Packaging the Application for Production Junos Space

Building, Deploying, and Packaging for Distribution

To build, deploy, and package a Junos Space application for distribution in the SDK IDE, follow these steps:

  1. Start the Eclipse IDE.
  2. Select Junos Space > Build/Deploy and Package for Distribution option in the Eclipse menu bar. The Build/Deploy screen is displayed.

    Alternatively, you can use the Build/Deploy Junos Space Application button in the toolbar.

  3. To edit the image details, select the appropriate option in the wizard. The options are:

    • Application Name: It is the name of the Junos Space Application.
    • JSVA Host Machine: It is the IP address of the JSVA host computer.
    • Company: It is the name of the company, which was configured while installing the Junos Space SDK.
    • Version: It is the version number of the Junos Space Application, which can be configured in appInfo.xml.
    • License: It is the license type of the Junos Space Application. By default the license type is "Commercial".
    • Summary: It is the brief description of the Junos Space Application.
    • Release Date: It is the release date of the Junos Space Application.
    • Validate Application: Select this check-box to validate the Junos Space Application. For more information click this link Validating Junos Space Application
    • Create Application Database: Select this checkbox to create the application database. Database name is mentioned in the adjacent field. Note that you cannot use the database name as build_db as it is the default database of the Junos Space platform and your application should not use build_db database.
    • Obfuscate javascript: It compresses the javascript and removes comments and unnecessary white space characters (space, tab, carriage return). The functionality of the code remains the same changing the source code.
    • Application URLs: Contents of urls.xml and Context URLs of the application are displayed.
  4. Note: "Create Application Database" option allows you to change application database related settings. Note that if you rename a database using the Change button, the old database is dropped, and replaced with the new one, the contents of the existing database are lost. If you want to retain the old contents then you must take the backup of the database, and restore the data manually.

  5. Click the Obfuscate javascript check box. It allows you to compress Module.xml task-related JavaScript files into a single JS minified file.
    • If "Obfuscate javascript" check box is checked, it will minify and obfuscate.
    • If "Obfuscate javascript" check box is cleared, it will only minify and not obfuscate.
  6. Click Finish. The Manage URL Access screen is displayed and the following tasks are performed:
    • Builds the EAR of the project and places the EAR file at EAR's project bin folder.
    • If there is any change in the URL settings or application specific database settings, then it creates and deploys the new image of the application to the JSVA. Application image is not copied back in the bin folder of EAR Project.
  7. Once the application is successfully deployed, the Junos Space application displays a message, "Build, Deploy and Package Application for Distribution is Successful".

    Note: The application logo is displayed in the main UI.

    Note: The SDK plug-in creates image builder configuration files during build/deploy operation. For more information about these files refer to Application Structure section.