@@ -34,29 +34,17 @@ process.on('unhandledRejection', error => {
34
34
process . exit ( 1 ) ;
35
35
} ) ;
36
36
37
- const windowsPathReplacer = ( match ) => {
38
- if ( process . platform === 'win32' ) {
39
- // Escape the '|' character in a windows batch command
40
- // See https://stackoverflow.com/a/16018942/1211524
41
- if ( match === '|' ) {
42
- return '^^^|' ;
43
- }
44
- return `^${ match } ` ;
45
- }
46
- return '|' ;
47
- } ;
48
-
49
37
const NATIVE_IMAGE_BUILD_ARGS = [
50
38
'-H:+ReportUnsupportedElementsAtRuntime' ,
51
39
'-H:IncludeResourceBundles=org.kohsuke.args4j.Messages' ,
52
40
'-H:IncludeResourceBundles=org.kohsuke.args4j.spi.Messages' ,
53
41
'-H:IncludeResourceBundles=com.google.javascript.jscomp.parsing.ParserConfig' ,
54
42
'-H:+AllowIncompleteClasspath' ,
55
43
`-H:ReflectionConfigurationFiles=${ path . resolve ( __dirname , 'reflection-config.json' ) } ` ,
56
- '-H:IncludeResources=externs\.zip' . replace ( / [ \| \( \) ] / g , windowsPathReplacer ) ,
57
- '-H:IncludeResources=com\/google\/javascript\/.*\.js' . replace ( / [ \| \( \) ] / g , windowsPathReplacer ) ,
58
- '-H:IncludeResources=com\/google\/javascript\/.*\.txt' . replace ( / [ \| \( \) ] / g , windowsPathReplacer ) ,
59
- '-H:IncludeResources=com\/google\/javascript\/.*\.typedast' . replace ( / [ \| \( \) ] / g , windowsPathReplacer ) ,
44
+ '-H:IncludeResources=externs\.zip' ,
45
+ '-H:IncludeResources=com\/google\/javascript\/.*\.js' ,
46
+ '-H:IncludeResources=com\/google\/javascript\/.*\.txt' ,
47
+ '-H:IncludeResources=com\/google\/javascript\/.*\.typedast' ,
60
48
'-H:+ReportExceptionStackTraces' ,
61
49
'--initialize-at-build-time' ,
62
50
'--color=always' ,
0 commit comments