Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Enhance Wildfly port detection #219

Merged

Conversation

thepetk
Copy link
Collaborator

@thepetk thepetk commented May 23, 2023

What does this PR do?

The PR follows the instructions of the related issue (#195) in order to add WildFly port detection from source code. Therefore upon wildfly_detector.DoPortsDetection() it fetches the configuration file (pom.xml) and tries to find any javaOpts under the wildfly-maven-plugin > profiles > plugin > configuration.

If it finds one it tries to look for jboss.https.port or jboss.http.port in order to see which is the port that is set up inside the file. Finally a test case is added for this enhancement with projectWildfly as test resource

Which issue(s) does this PR fix

Partially fixes #195

PR acceptance criteria

Testing and documentation do not need to be complete in order for this PR to be approved. We just need to ensure tracking issues are opened.

  • Unit/Functional tests

  • Documentation

How to test changes / Special notes to the reviewer

@thepetk thepetk requested a review from mike-hoang May 23, 2023 11:17
@thepetk thepetk self-assigned this May 23, 2023
@thepetk thepetk changed the title Feature/add wildfly port detection Enhance Wildfly port detection May 24, 2023
@thepetk thepetk requested a review from ehsavoie June 2, 2023 12:52
@thepetk thepetk force-pushed the feature/add_wildfly_port_detection branch from 2152b2c to 343abb6 Compare June 2, 2023 12:55
@thepetk thepetk changed the title Enhance Wildfly port detection WIP: Enhance Wildfly port detection Jun 13, 2023
@thepetk thepetk requested a review from mike-hoang June 13, 2023 13:14
@thepetk thepetk changed the title WIP: Enhance Wildfly port detection Enhance Wildfly port detection Jun 20, 2023
@thepetk
Copy link
Collaborator Author

thepetk commented Jun 20, 2023

@mike-hoang let's first merge the #221 and then I'll rebase this one to main, move all common functionality to detectors and then push again :)

This way I think we will avoid having duplicate code.

Signed-off-by: thepetk <thepetk@gmail.com>
Signed-off-by: thepetk <thepetk@gmail.com>
Signed-off-by: thepetk <thepetk@gmail.com>
Signed-off-by: thepetk <thepetk@gmail.com>
Signed-off-by: thepetk <thepetk@gmail.com>
Signed-off-by: thepetk <thepetk@gmail.com>
Signed-off-by: thepetk <thepetk@gmail.com>
Signed-off-by: thepetk <thepetk@gmail.com>
Signed-off-by: thepetk <thepetk@gmail.com>
Signed-off-by: thepetk <thepetk@gmail.com>
Signed-off-by: thepetk <thepetk@gmail.com>
Signed-off-by: thepetk <thepetk@gmail.com>
Signed-off-by: thepetk <thepetk@gmail.com>
Signed-off-by: thepetk <thepetk@gmail.com>
@thepetk thepetk force-pushed the feature/add_wildfly_port_detection branch from 6a7d8ee to 3fe0533 Compare June 23, 2023 11:51
@thepetk
Copy link
Collaborator Author

thepetk commented Jun 23, 2023

@mike-hoang I've made the rebase and I've made the code more dry for wildfly and JBoss thinking that we are using the same process for port detection. I've moved all common code into java_detector.go

@thepetk thepetk merged commit 451f074 into redhat-developer:main Jun 23, 2023
3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhance Wildfly & EAP port detection
2 participants