hybris/zenboot — pull request #21 by paweloczadly (2014-09-04 08:39:16+00:00)
Title: parsing script.path updated in scriptletMetadata.gsp

I had this problem on Windows, when I tried to navigate to each execution zone (for example internal):

```
2014-09-04 10:19:11,982 [http-bio-8080-exec-7] ERROR errors.GrailsExceptionResolver - PatternSyntaxException occurred when processing request: [GET] /zenboot/executionZone/show/1 - parameters:
execId: 1
scriptDir: C:\hybris\zenboot\zenboot-scripts\internal\scripts\deploy
Unexpected internal error near index 1
\
^. Stacktrace follows:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: Error executing tag : Error evaluating expression [scriptlet.script?.path.split(System.properties['file.separator'])[-2]] on line [5]: Unexpected internal error near index 1
\
^
at C__hybris_zenboot_grails_app_views_executionZone_show_gsp$_run_closure2_closure30.doCall(show.gsp:198)
at C__hybris_zenboot_grails_app_views_executionZone_show_gsp$_run_closure2.doCall(show.gsp:215)
at C__hybris_zenboot_grails_app_views_executionZone_show_gsp.run(show.gsp:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag : Error evaluating expression [scriptlet.script?.path.split(System.properties['file.separator'])[-2]] on line [5]: Unexpected internal error near index 1
\
^
at C__hybris_zenboot_grails_app_views_executionZone_ajaxGetParameters_gsp.run(ajaxGetParameters.gsp:40)
... 6 more
Caused by: org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error evaluating expression [scriptlet.script?.path.split(System.properties['file.separator'])[-2]] on line [5]: Unexpected internal error near index 1
\
^
at C__hybris_zenboot_grails_app_views_executionZone__scriptletMetadata_gsp.run(_scriptletMetadata.gsp:5)
... 7 more
Caused by: java.util.regex.PatternSyntaxException: Unexpected internal error near index 1
\
^
at java.util.regex.Pattern.error(Pattern.java:1924)
at java.util.regex.Pattern.compile(Pattern.java:1671)
at java.util.regex.Pattern.(Pattern.java:1337)
at java.util.regex.Pattern.compile(Pattern.java:1022)
at java.lang.String.split(String.java:2313)
at java.lang.String.split(String.java:2355)
at C__hybris_zenboot_grails_app_views_executionZone__scriptletMetadata_gsp$_run_closure3.doCall(_scriptletMetadata.gsp:5)
... 8 more
```

This commit fixes it.