cuba-platform / cuba

CUBA Platform is a high level framework for enterprise applications development
https://www.cuba-platform.com
Apache License 2.0
1.34k stars 219 forks source link

Long classpath leads to Cuba gradle tasks fails in Windows #3298

Closed igisho closed 1 year ago

igisho commented 1 year ago

Environment

Description of the bug

  1. Create new cuba project
  2. 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')
  3. Try to run (everything works)
  4. Add appComponent('com.haulmont.addon.tour:tour-global:1.3.0') dependency
  5. 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 1 year ago

Seems to be fixed in https://github.com/cuba-platform/cuba-gradle-plugin/issues/14 Try adding the shortClasspath=true property to the CubaWidgetSetBuilding task as described in the issue comment.

igisho commented 1 year ago

@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.