Closed vaisakhkannan closed 1 month ago
@vaisakhkannan Please modify the year in header of all the modified files.
@aparnamichael , @turkeylurkey This is a screen recording showing how the exception occurs when trying to access an invalid file.
https://github.com/user-attachments/assets/bbb35c4d-592e-4d7c-82c7-9a554540032a
Fixes #690 Fixed
Liberty Start
issue in directories with spaces in their names. During my investigation, I found that the problem occurs only with Gradle projects, and there are no issues with Maven projects. I wrote tests for Gradle projects that cover cases withspaces in app names and directory names
. Similarly, I wrote tests for Maven projects that cover cases with spaces in directory names. We can't use spaces in app names withMaven projects
, as this will result in an error in the pom.xml file stating thatthe value of the artifactId does not match the id pattern
.The problem will occur with both
Liberty: Start and Liberty: Start in Container
. I have written tests only forLiberty: Start
. If required, I can add tests for the other scenario.I have added a
new sample project
because we can't use the existing projects. We need a project with a space in its name (only for Gradle) and a space in the directory name. So, I created another directory with a space in its name.I have checked the tests to see whether they will fail (based on whether Liberty starts or not). If the bug in the issue still exists, the gradle test will fail(
No such file or directory error
, resulting inLiberty:Start
action failure, for maven there is no issue with the directory that getting ,and the functionality ingradle wrapper
andmaven wrapper
are slightly different. In maven wrapper we get a command like"./mvnw"
but in gradle wrapper , it will get path of the project aswell , that's the reason behind the failure ingradle
only), otherwise, it will succeed.Test failure in Maven projects depends on how the
Liberty:Start
action performs. IfLiberty:Start
fails, it will result in a failure error.The failure results in both the cases are same as shown in the screenshot above