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
Using paths with spaces in the *.include or *.cc variables will result in the path being used with unescaped spaces in the various commands and it will be treated as multiple paths (i.e. "C:/Program Files/jdk11/include" = "C:/Program", "Files/jdk11/include"). This results in commands failing (i.e. the jorgan-creative build fails with win.include not found - please check your build.properties).
This is particularly a pain if you try to target a system-installed JDK on Windows, since by default it installs in Program Files. I'm not that familiar with Ant, so I'm not really sure how to fix this issue; Using escaped quotes in either the commands that use these variables or the variables themselves does not work, neither does escaping the space, etc..
For a test I've added spaces to unix.cc and unix.include and some matching symlinks: the build still works fine here. I don't have a Windows system available to verify this, but I don't see why it shouldn't work on Windows too.
Maybe the is just failing for you? Add an echo before it to make sure the value is correct:
<echo message="${win.include}'" />
<fail message="win.include not found - please check your build.properties">
Using paths with spaces in the
*.include
or*.cc
variables will result in the path being used with unescaped spaces in the various commands and it will be treated as multiple paths (i.e. "C:/Program Files/jdk11/include" = "C:/Program", "Files/jdk11/include"). This results in commands failing (i.e. the jorgan-creative build fails withwin.include not found - please check your build.properties
).This is particularly a pain if you try to target a system-installed JDK on Windows, since by default it installs in Program Files. I'm not that familiar with Ant, so I'm not really sure how to fix this issue; Using escaped quotes in either the commands that use these variables or the variables themselves does not work, neither does escaping the space, etc..
This stackoverflow seems suggest a fix for the issue, but I'm not sure how to apply it to the build files: https://stackoverflow.com/questions/10709314/ant-file-set-using-path-with-spaces-in-it
The text was updated successfully, but these errors were encountered: