Build a Feature file

To build the Feature file (.fo) of an Application, the SDK provides the Gradle buildFeature task. The prerequisites to use this task are:

  • The Application must contain a Java class implementing the ej.kf.FeatureEntryPoint interface.

  • The Application must contain a .kf file in the src/main/resources folder containing at least the property entryPoint set to the Fully Qualified Name of the Application Feature class, for example:

    entryPoint=com.microej.MyFeature
    
  • A Multi-Sandbox Kernel must be defined. Refer to the Select a Kernel page to learn how to provide a Kernel for a module project.

Once these prerequisites are fulfilled, the Feature file can be built:

By double-clicking on the buildFeature task in the Gradle tasks view:

../_images/intellij-buildFeature-gradle-project.png

The Feature file is generated in the build/binary folder of the project.