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

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

Closed
igisho opened this issue May 12, 2023 · 2 comments
Closed

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

igisho opened this issue May 12, 2023 · 2 comments

Comments

@igisho
Copy link

igisho commented May 12, 2023

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

  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
Copy link
Contributor

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
Copy link
Author

igisho commented May 12, 2023

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

@igisho igisho closed this as completed May 12, 2023
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

2 participants