Skip to content

Conversation

@nehachopra27
Copy link
Contributor

Closes #12385

The Current Quarkus container runs kc.sh in the windows machine as seen in the QE test pipeline.

Adding support for kc.bat files to be run when the environment is windows.

@nehachopra27 nehachopra27 marked this pull request as draft June 7, 2022 20:44
pedroigor
pedroigor previously approved these changes Jun 8, 2022
@pedroigor
Copy link
Contributor

@nehachopra27 Thanks.

DGuhr
DGuhr previously approved these changes Jun 9, 2022
@nehachopra27 nehachopra27 dismissed stale reviews from DGuhr and pedroigor via 2c214f9 June 9, 2022 14:27
@nehachopra27 nehachopra27 marked this pull request as ready for review June 9, 2022 14:29
@nehachopra27 nehachopra27 removed the request for review from andreaTP June 9, 2022 14:53
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please elaborate on why we need this dependency? Looks like you added after the first round of reviews?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please elaborate on why we need this dependency? Looks like you added after the first round of reviews?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pedroigor : the earlier wrapper which was used was failing the testsuite compilation and tests. So with current scenario I was trying to fix additional dependancies that were required. I realised that these should come in a separate PR. This approach created additional failures, so I am now using environment variable.

@nehachopra27 nehachopra27 changed the title [Fix keycloak#12385] Update option to run kc.bat on windows instead of kc.sh [Draft] [Fix keycloak#12385] Update option to run kc.bat on windows instead of kc.sh Jun 13, 2022
@nehachopra27 nehachopra27 marked this pull request as draft June 13, 2022 13:32
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me to not add the SystemUtils library (or the Environment wrapper we use and you used in your previous version), but then please check if "os.name" is null before lowercasing, bc. even when true for 99% of the systems, it may be (and I experienced this in the past 😅 ) that os.name is not set at all for some reason. Apache commons checks for that, and so should we :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @DGuhr, I agree it can happen. I have added the suggested constraint.

@nehachopra27 nehachopra27 changed the title [Draft] [Fix keycloak#12385] Update option to run kc.bat on windows instead of kc.sh [Fix keycloak#12385] Update option to run kc.bat on windows instead of kc.sh Jun 14, 2022
@nehachopra27 nehachopra27 marked this pull request as ready for review June 14, 2022 10:39
@abstractj abstractj merged commit 39cff07 into keycloak:main Jun 15, 2022
@pedroigor
Copy link
Contributor

Thanks, @nchopra27.

@nehachopra27
Copy link
Contributor Author

Thanks @pedroigor and @DGuhr !

@nehachopra27 nehachopra27 deleted the QuarkusWindow branch July 26, 2022 07:52
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

Successfully merging this pull request may close these issues.

Unable to start KC server for auth-server-quarkus on Windows machine

5 participants