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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • 9.4.7.Final, 10.0.0.Final
    • 9.4.6.Final, 10.0.0.Final
    • Build
    • None

      [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.

              dberinde@redhat.com Dan Berindei (Inactive)
              dberinde@redhat.com Dan Berindei (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: