I have created a cx_for_spa recipe by making a copy of the cx recipe and uncommenting for spartacussampledataaddon extensions.
Following commands, I have used
1. install.bat -r cx_for_spa setup ------ run successfully
2.install.bat -r cx_for_spa initialize ----gives an error
> Task :recipes:cx_for_spa:buildSystem FAILED FAILURE: Build failed with an exception. * Where: Build file 'D:\SAP_Spartacus\SAP_2005\installer\recipes\cx_for_spa\build.gradle' line: 593 * What went wrong: Execution failed for task ':recipes:cx_for_spa:buildSystem'. > external process returned non-zero exit code, command: [cmd, /c, set "ANT_OPTS=-Xmx1024m -Dfile.encoding=UTF-8" & set "PLATFORM_HOME=D:\SAP_Spartacus\SAP_2005\hybris\bin\platform" & set "ANT_HOME=D:\SAP_Spartacus\SAP_2005\hybris\bin\platform\apache-ant" & set "PATH=D:\SAP_Spartacus\SAP_2005\hybris\bin\platform\apache-ant\bin;%PATH%" & ant clean all] * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 3m 31s 3 actionable tasks: 3 executed Problem with java process - finished with non-zero exit code (1)
I have attached build.gradle file for reference