Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-9934

infinispan-protocol-parser-generator-maven-plugin fails on Windows

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Duplicate Issue
    • Affects Version/s: 10.0.0.Alpha3, 9.4.6.Final
    • Fix Version/s: 9.4.7.Final, 10.0.0.Beta1
    • Component/s: Build
    • Labels:
      None

      Description

      [ERROR] Failed to execute goal org.infinispan:infinispan-protocol-parser-generator-maven-plugin:9.4.6.Final-redhat-00001:generate (default) on project infinispan-server-hotrod: Execution default of goal org.infinispan:infinispan-protocol-parser-generator-maven-plugin:9.4.6.Final-redhat-00001:generate failed: character to be escaped is missing -> [Help 1]

      The problem is most likely here:

      File output = new File(outputDirectory, grammar.getPackage().replaceAll("\\.", File.separator) + File.separator + grammar.getSimpleName() + ".java");
      

      On Windows, File.separator is \, and \ has a special meaning in the replaceAll replacement string.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dan.berindei Dan Berindei
                  Reporter:
                  dan.berindei Dan Berindei
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: