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

invalid number of parameters for xcopy on windows #102

Closed
timor-raiman opened this issue Mar 25, 2015 · 1 comment
Closed

invalid number of parameters for xcopy on windows #102

timor-raiman opened this issue Mar 25, 2015 · 1 comment

Comments

@timor-raiman
Copy link

For example when deploying maven on windows 8.1 with the maven cookbook on chef 12:
The package is extracted normaly in the Temp dir, and then I get:

Invalid number of parameters
---- End output of "C:\7-zip\7z.exe" e "C:\chef\cache/maven-3.1.1.tar.gz" -so | "C:\7-zip\7z.exe" x -aoa -si -ttar -o"C:/Users/traiman/AppData/Local/Temp/d20150325-43224-gdk0ta" -uy && for /f %1 in ('dir /ad /b "C:\Users\traiman\AppData\Local\Temp\d20150325-43224-gdk0ta"') do xcopy "C:\Users\traiman\AppData\Local\Temp\d20150325-43224-gdk0ta%1" "/usr/local/maven" /s /e ----
Ran "C:\7-zip\7z.exe" e "C:\chef\cache/maven-3.1.1.tar.gz" -so | "C:\7-zip\7z.exe" x -aoa -si -ttar -o"C:/Users/traiman/AppData/Local/Temp/d20150325-43224-gdk0ta" -uy && for /f %1 in ('dir /ad /b "C:\Users\traiman\AppData\Local\Temp\d20150325-43224-gdk0ta"') do xcopy "C:\Users\traiman\AppData\Local\Temp\d20150325-43224-gdk0ta%1" "/usr/local/maven" /s /e returned 4

@timor-raiman timor-raiman changed the title no sensible default for node['ark']['win_install_dir'] invalid number of parameters for xcopy on windows Mar 25, 2015
@timor-raiman
Copy link
Author

In this case, setting node['maven']['m2_home'] = 'C:\usr\local\maven', resolves the issue.
Apparently, the default unix style path '/usr/local/maven' used as the home_dir attribute manifests as this cryptic error.

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