Building of plugins

  1. Build a plugin

    To build a plugin, execute the following command in the $SDK_HOME/dev/sample_adapter directory:

     

    • Command: ant

     

    After executing the command, if the jar file "sample_adapter.jar" is generated in the $SDK_HOME/dev/sample_adapter/build directory, and the Go executables for each target are generated in the $SDK_HOME/dev/sample_adapter/build/plugin/sample_plugin directory, then the command was successful.

    To delete a jar file generated by a previous build, specify a "distclean" target for the first argument of the ant command and then execute the command.

     

    • Command: ant distclean

     

  2. Copy the icon files

    If the build of the adapter is successful, the $SDK_HOME/dev/sample_adapter/META-INF directory is generated.

    Copy the following files from the $SDK_HOME/dev/conf directory to the above directory and rename them:

     

    • operation.source.icon -> operation.sample_source.icon

    • operation.sink.icon -> operation.sample_sink.icon

    • operation.udsf.icon -> operation.sample_udsf.icon

     

  3. Confirm the module.properties file

    Confirm that the $SDK_HOME/dev/sample_adapter/META-INF/module.properties file has been created successfully.

    This properties file is created based on the properties defined in the $SDK_HOME/dev/sample_adapter/config.properties file.

    Descriptions of each of the properties are as follows:

    Table 4.4 Property descriptions

    Property

    Description

    module.category

    Specifies the category that the adapter belongs to.

    • sensor: Sensor-related plugin

    • transfer: Transfer-related plugin

    • file: File-related adapter

    • database: Database-related adapter

    • mapper: Conversion-related adapter

    *You can also define your own category name. (Only single byte characters can be used)

    component.class

    The derived class of AdapterModuleComponent is specified with a fully qualified name including a package name.

    module.label

    Specifies the label name of the adapter.

    display.name

    Specifies the display name of the adapter.