Long classpath leads to Cuba gradle tasks fails in Windows
igisho opened this issue · 2 comments
igisho commented
Environment
- Platform version: 7.2.20 (originally was trying in 7.2.8, but neither works)
- Client type: Web
- Browser: Chrome
- Database: HSQL
- Operating system: Windows
Description of the bug
- Create new cuba project
- Add bunch of dependencies: appComponent("com.haulmont.cuba:cuba-global:$cubaVersion")
appComponent("com.haulmont.reports:reports-global:$cubaVersion")
appComponent('com.haulmont.addon.restapi:restapi-global:7.2.6')
appComponent('com.haulmont.addon.emailtemplates:yet-global:1.4.2')
appComponent('com.haulmont.addon.helium:helium-global:0.4.0')
appComponent('de.diedavids.cuba.dataimport:dataimport-global:0.14.1')
appComponent('de.diedavids.cuba.dblocalization:dblocalization-global:0.4.0')
appComponent('com.haulmont.addon.dnd:cuba-dnd-global:1.7.0') - Try to run (everything works)
- Add appComponent('com.haulmont.addon.tour:tour-global:1.3.0') dependency
- Try to run > CreateProcess error=206, The filename or extension is too long
Execution failed for task ':app-web-toolkit:buildWidgetSet'.
A problem occurred starting process 'command 'C:\Users\igor.sovcik.jdks\liberica-11.0.18\bin\java.exe''
gorbunkov commented
Seems to be fixed in cuba-platform/cuba-gradle-plugin#14
Try adding the shortClasspath=true property to the CubaWidgetSetBuilding task as described in the issue comment.
igisho commented
@gorbunkov thank you, worked like charm had to upgrade platform to 7.2.10 (i was avoiding this for several reasons) but this and also "shortClassPath = true" fixed issue.