]
Tristan Tarrant closed ISPN-9934.
---------------------------------
Resolution: Duplicate Issue
ISPN-9931
infinispan-protocol-parser-generator-maven-plugin fails on Windows
------------------------------------------------------------------
Key: ISPN-9934
URL:
https://issues.jboss.org/browse/ISPN-9934
Project: Infinispan
Issue Type: Bug
Components: Build
Affects Versions: 10.0.0.Alpha3, 9.4.6.Final
Reporter: Dan Berindei
Assignee: Dan Berindei
Priority: Critical
Fix For: 10.0.0.Beta1, 9.4.7.Final
{{\[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:
{code:java}
File output = new File(outputDirectory, grammar.getPackage().replaceAll("\\.",
File.separator) + File.separator + grammar.getSimpleName() + ".java");
{code}
On Windows, {{File.separator}} is {{\}}, and {{\}} has a special
meaning in the {{replaceAll}} replacement string.