Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support spaces in build file directory paths #234

Open
drbruce-git opened this issue Aug 1, 2022 · 0 comments
Open

Support spaces in build file directory paths #234

drbruce-git opened this issue Aug 1, 2022 · 0 comments

Comments

@drbruce-git
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant