You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there seems to be no way to build a file that has spaces in the directory file path. Even when using quotes around the file name in the command, the zAppBuild build file property shows that build file is truncated after the first space.
This may be due to a limitation of the Groovy CLIBuilder which seems to be creating a new internal string of the command arguments and parsing them from scratch. This re-introduces the space into the last argument and making it once again two arguments.
We tried escaping the quotes with other quotations like "'filePath'" and '"filePath"' and while we can see in the resulting command that a single set of quotations seem to be passed into zAppBuilder, the build file property is still truncating the file name after the first space.
A possible alternative would be to use URLEncoding / URLDecoding when passing in a file name with spaces. This would replace spaces in the file name with '+' signs. However changes will need to be made to the zAppBuild build.groovy script to support this.
Also this is the first issue discovered when using a build file with spaces in the directory path. Once resolved other issues might be encountered with build files with spaces.
The text was updated successfully, but these errors were encountered:
Currently there seems to be no way to build a file that has spaces in the directory file path. Even when using quotes around the file name in the command, the zAppBuild build file property shows that build file is truncated after the first space.
This may be due to a limitation of the Groovy CLIBuilder which seems to be creating a new internal string of the command arguments and parsing them from scratch. This re-introduces the space into the last argument and making it once again two arguments.
We tried escaping the quotes with other quotations like "'filePath'" and '"filePath"' and while we can see in the resulting command that a single set of quotations seem to be passed into zAppBuilder, the build file property is still truncating the file name after the first space.
A possible alternative would be to use URLEncoding / URLDecoding when passing in a file name with spaces. This would replace spaces in the file name with '+' signs. However changes will need to be made to the zAppBuild build.groovy script to support this.
Also this is the first issue discovered when using a build file with spaces in the directory path. Once resolved other issues might be encountered with build files with spaces.
The text was updated successfully, but these errors were encountered: