Hitachi

JP1 Version 12 JP1/Navigation Platform Development Guide


4.1.2 Executing the template plugin creation command

You can execute the template plugin creation command to create template plugins. Template plugins are created in the format of an Eclipse Java project.

Organization of this subsection

(1) Format of the template plugin creation command

The following shows the format of the template plugin creation command:

Navigation-Platform-for-Developers-installation-directory\pluginSDK\bin\npcreateplg.batΔpath-to-the-plugin-information-property-file

When you execute the template plugin creation command, a directory is created under Navigation-Platform-for-Developers-installation-directory\pluginSDK\plugin according to the contents of the plugin information property file.

To create multiple plugins, repeat the process of editing the plugin information property file and create a template plugin for the number of plugins.

(2) Execution results of the template plugin creation command (for I/O Plugins)

The following shows the directory structure for I/O Plugins. You need to edit only the underlined files. Bold text indicates the values specified in the plugin information property file. For details about how to edit the plugin information property file, see 4.1.1 Editing the plugin information property file.

Navigation-Platform-for-Developers-installation-directory\pluginSDK\plugin
 |- plugin-ID
    |-.project
    |-.classpath
    |-build.xml
    |-plugin.properties
    |-ucnpsdkversion.properties
    |--js
    |--dd
    |  |--META-INF
    |      |-application.xml
    |      |-cosminexus.xml
    |--images
    |    |-sample_icon.gif
    |--WEB-INF
        |  |-plugin.xml
        |  |-web.xml
        |--lib
        |--conf
        |  |-ioaction.xml
        |  |-ucnp_label_plugin-ID.properties
        |  |-ucnp_message_plugin-ID.properties
        |  |-ucnp_plugin-ID.properties
        |
        |--src
            |--Java-package-name
                |--controller
                    |-I/O-action-controller-lass-name.java
                    |-PluginInitializer.java

(3) Execution results of the template plugin creation command (for Suspend/Resume Plugins)

The following shows the directory structure for Suspend/Resume Plugins. You need to edit only the underlined files. Bold text indicates the values specified in the plugin information property file. For details about how to edit the plugin information property file, see 4.1.1 Editing the plugin information property file.

Navigation-Platform-for-Developers-installation-directory\pluginSDK\plugin
|- ucnp.plugin.suspend
    |-.project
    |-.classpath
    |-build.xml
    |-plugin.properties
    |-ucnpsdkversion.properties
    |--js
    |--dd
    |  |--META-INF
    |      |-application.xml
    |      |-cosminexus.xml
    |--WEB-INF
        |  |-plugin.xml
        |  |-web.xml
        |--lib
        |--conf
        |  |-ucnp_label_ucnp.plugin.suspend.properties
        |  |-ucnp_message_ucnp.plugin.suspend.properties
        |  |-ucnp_ucnp.plugin.suspend.properties
        |--src
            |--Java-package-name
                |--controller
                    |-suspend/resume-action-controller-class-name.java
                    |-PluginInitializer.java

(4) Execution results of the template plugin creation command (for Custom Window Plugins)

The following shows the directory structure for Custom Window Plugins. You need to edit only the underlined files. Bold text indicates the values specified in the plugin information property file. For details about how to edit the plugin information property file, see 4.1.1 Editing the plugin information property file.

Navigation-Platform-for-Developers-installation-directory\pluginSDK\plugin
|-plugin-ID
    |-.project
    |-.classpath
    |-build.xml
    |-plugin.properties
    |-ucnpsdkversion.properties
    |--js
    |--jsp
    |  |--sys
    |  |  |-ucnpCustom.jsp
    |  |-plugin-name.jsp
    |--dd
    |  |--META-INF
    |      |-application.xml
    |      |-cosminexus.xml
    |--WEB-INF
        |  |-plugin.xml
        |  |-web.xml
        |--lib
        |--conf
        |  |-ucnp_label_plugin-ID.properties
        |  |-ucnp_message_plugin-ID.properties
        |  |-ucnp_plugin-ID.properties
        |--lib
        |--src
            |--Java-package-name
                |--controller
                    |-PluginInitializer.java

(5) Notes on executing the template plugin creation command

The following provides the notes on executing the command: