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:
-
If multiple commands are executed at the same time, operation is unpredictable.
-
If a directory having the same name as the plugin ID specified in the plugin information property file exists under Navigation-Platform-for-Developers-installation-directory\pluginSDK\plugin, an overwrite confirmation message appears. Specify as follows in response to the confirmation message.
-
To overwrite the existing directory:
Specify Y or y.
-
Not to overwrite the existing directory:
Specify N or n. Processing is canceled.
In this case, change the plugin ID specified in the plugin information property file, and then re-execute the command.
-
-
To execute the template plugin creation command, you must first open the command prompt by selecting Run as administrator. If this condition is not satisfied, operation is unpredictable.
-
Encoding of Java source files created by the template plugin creation command differs depending on the version of Navigation Platform for Developers. Navigation Platform for Developers 10-00 or earlier uses Shift_JIS, and 10-10 or later uses UTF-8. Therefore, if you use a Java source file created in 10-00 or earlier, you must be careful about the difference in the encoding type.