com.vaadin.flow.server.frontend.

Class FrontendToolsLocator

    • Constructor Detail

      • FrontendToolsLocator

        public FrontendToolsLocator()
    • Method Detail

      • tryLocateTool

        public Optional<File> tryLocateTool(String toolName)

        Makes an attempt to locate the tool by its name. If there are multiple tools to pick from, the first one that will be selected.

        Parameters:

        toolName - the name of a tool to locate, not null

        Returns:

        absolute path to a tool if it was located and verifyTool(File) returned true for it or Optional.empty() if there are no such tools

      • verifyTool

        public boolean verifyTool(File toolPath)

        Verifies that the tool specified works by performing its test launch.

        Parameters:

        toolPath - the path to a tool to check

        Returns:

        true if the test launch had ended with successful error code, false otherwise