Skip to content

Changes not detected/included when building .modl from perspective-component using the newer open-sourced plugin #96

@BjAlvestad

Description

@BjAlvestad

Using ./gradle zipModule (or ./gradle build w/dummy certificate) to build a module file, it will not detect and include changes done in common, designer or gateway. Only if a change has been done in web will a new modl file actually get created.

It will correctly generate a modl file upon first call after cloning the repo. But for subsequent calls, it does not detect that java/json files has changed.

Issue was not present in older version using ./gradle buildModule

Could it be linked to the following issue?
inductiveautomation/ignition-module-tools#28

On a related note:
Previously build number was added as byyyymmddHH, but for all builds with the newest version we only get b0. Is this as expected?


Steps to reproduce:

  • Check out latest version of perspective-component
  • Open git bash in repo on a PC running windows 10
  • Run ./gradlew build or ./gradlew zipModule --> A .modl file gets created
  • Make a change to common/src/main/resources/*.json
  • Run ./gradlew build or ./gradlew zipModule --> No new .modl file will be created (unless old file was deleted manually first).

You can force it to create a modl file that actually contains the changes in /common/src/main/resources by deleting /common/build before running ./gradlew build. This results in a new .modl file creation, that actually includes the changes made to the json file.
PS: designer does not notify that it requires restart - you must do that manually before changes can be seen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions