Class WorkspaceInfoCollector

java.lang.Object
com.vaadin.quarkus.deployment.vaadinplugin.WorkspaceInfoCollector
All Implemented Interfaces:
io.quarkus.deployment.CodeGenProvider

public class WorkspaceInfoCollector extends Object implements io.quarkus.deployment.CodeGenProvider
Workaround to collect workspace info when it is not available at build time.

During a normal build, workspace information is available only if the quarkus.bootstrap.workspace-discovery property is set to true. This class gets executed during the code generation phase, so it has access to the workspace details and can persist them to make them available to subsequent build steps.

  • Constructor Details

    • WorkspaceInfoCollector

      public WorkspaceInfoCollector()
  • Method Details

    • providerId

      public String providerId()
      Specified by:
      providerId in interface io.quarkus.deployment.CodeGenProvider
    • inputDirectory

      public String inputDirectory()
      Specified by:
      inputDirectory in interface io.quarkus.deployment.CodeGenProvider
    • init

      public void init(io.quarkus.bootstrap.model.ApplicationModel model, Map<String,String> properties)
      Specified by:
      init in interface io.quarkus.deployment.CodeGenProvider
    • shouldRun

      public boolean shouldRun(Path sourceDir, org.eclipse.microprofile.config.Config config)
      Specified by:
      shouldRun in interface io.quarkus.deployment.CodeGenProvider
    • trigger

      public boolean trigger(io.quarkus.deployment.CodeGenContext context) throws io.quarkus.bootstrap.prebuild.CodeGenException
      Specified by:
      trigger in interface io.quarkus.deployment.CodeGenProvider
      Throws:
      io.quarkus.bootstrap.prebuild.CodeGenException