Skip to Content
0
Jun 25, 2015 at 01:38 PM

Build error with 5.5.1 and ant production -Dproduction.legacy.mode=false

382 Views

Hello experts,

I tried to build the Hybris 5.5.1 in the production mode with the flag: -Dproduction.legacy.mode=false on a Windows Machine (Jenkins CI-Server)

Complete call: ant clean all production -Dproduction.legacy.mode=false

The Build fails with the following exceptions:

BUILD FAILED D:\hybris\bin\platform\build.xml:391: The following error occurred while executing this line: D:\hybris\bin\platform\resources\ant\assembling.xml:597: java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 32

D:\hybris\log

at java.util.regex.Pattern.error(Pattern.java:1955) at java.util.regex.Pattern.escape(Pattern.java:2471) at java.util.regex.Pattern.atom(Pattern.java:2198) at java.util.regex.Pattern.sequence(Pattern.java:2130) at java.util.regex.Pattern.expr(Pattern.java:1996) at java.util.regex.Pattern.compile(Pattern.java:1696) at java.util.regex.Pattern.(Pattern.java:1351) at java.util.regex.Pattern.compile(Pattern.java:1028) at java.lang.String.replaceAll(String.java:2210) at de.hybris.ant.taskdefs.PlatformHomeReplaceFilter.filter(PlatformHomeReplaceFilter.java:59) at org.apache.tools.ant.filters.TokenFilter.read(TokenFilter.java:114)

Inside the PlatformHomeReplaceFilter implementation a Regex is called with the given folder paths. The standard "\" character for path separation is interpreted as Regex escape character.

Has someone a fix for this problem.

I also added the Java system property: -Dfile.separator=/ but it didn't help.

Thanks, Christian