Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-5695

Refactor Build Tool Handling code

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Core Engine
    • False
    • False
    • undefined

      As part of KOGITO-5663 we have added some lightweight logic to detect the build tool and do different things depending on that. In particular:

      by looking at a System property

      https://github.com/kiegroup/kogito-runtimes/pull/1506/files/2a15a92b74c341f4afb70ccaa6867cf4a465565d#diff-22b533671dd551af239e793ba1f9fd0c66a1583e631323888c36463688454ccb

      we decide whether we're running the Quarkus extension on Gradle. If the build tool is Gradle, then the AppPaths class does not add a prefix to the expected resource path.

      https://github.com/kiegroup/kogito-runtimes/pull/1506/files/2a15a92b74c341f4afb70ccaa6867cf4a465565d#diff-b551db179994c7850772d5b05e781a47ef69a7c68d7b306ed0e5d85c541e8e1d

      (1) Using the system property is quite ad-hoc
      (2) the prefix is till kind-of hardcoded

      We want to improve this detection, refactor to some class similar to https://github.com/quarkusio/quarkus/blob/main/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/utils/BuildToolHelper.java and centralize the custom logic.

      It is also desirable to improve further path handling logic: AppPaths.java is very ad-hoc.

            Unassigned Unassigned
            evacchi Edoardo Vacchi (Inactive)
            Marian Macik Marian Macik
            Marian Macik Marian Macik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: