prashant-ramcharan / courgette-jvm

Multiprocess | Parallel Cucumber-JVM | Parallelize your Java Cucumber tests on a feature level or on a scenario level.
MIT License
130 stars 38 forks source link

Getting "The filename or extension is too long" error in Azure CMD. #338

Closed bhaskarJhaPS closed 1 year ago

bhaskarJhaPS commented 2 years ago

I followed the instructions given in https://github.com/prashant-ramcharan/courgette-jvm-classpath-example. It is working fine in my local machine. But It is still failing in Azure CMD with error java.io.IOException: Cannot run program "java": CreateProcess error=206, The filename or extension is too long at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048).

The yaml that I am using is:

yamlFile

The runner file that I am using is:

runnerFile

The error that I am getting is:

CLI_error

Any suggestions?

prashant-ramcharan commented 2 years ago

I'm not sure tbh.

Can you try manually overriding the Java classpath system property to an empty value?

mvn verify -Djava.class.path=

Courgette will use the custom classpath anyway so this value is ignored / removed

bhaskarJhaPS commented 2 years ago

I tried the above suggestion. But the issue still persists.

sobi-ki commented 1 year ago

@bhaskarJhaPS please try adding the following. This is only if you are running on a Windows-based machine

gradle.plugin.ua.eshepelyuk ManifestClasspath 1.0.0
bhaskarJhaPS commented 1 year ago

@sobi-ki I couldn't able to find the maven plugin for the same.

prashant-ramcharan commented 1 year ago

@bhaskarJhaPS Did you try running any other projects (that uses Courgette and the classPath option) to see if it runs successfully on Azure CMD ?

sobi-ki commented 1 year ago

@bhaskarJhaPS Maven plugin

`

gradle.plugin.ua.eshepelyuk ManifestClasspath 1.0.0

`

prashant-ramcharan commented 1 year ago

Closing issue. Please re-open if there are any new updates.