Sunday, January 9, 2022

xcopy and Eclipse build path variables

When working with Eclipse on Windows, some of the system build path variables will have "/" while others have "\" as path separator:


When using xcopy in Post-build steps, there cannot be "/" in path because xcopy treats anything with a "/" as a parameter. For example if you use ${ProjDirPath} with xcopy, you will get "invalid number of parameters" error. To solve it, edit ProjDirPath and replace "/" with "\". Don't forget to do it for both Debug and Release configurations.

No comments:

Post a Comment