In both the classes i want to get the sonar server url. How do i do that?
I tried using sonar.web.host and sonar.host.url. Both did not work.
Can anyone please help me
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/98d8a474-30d3-4d28-9a08-04857c9be78f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
That worked like a charm in my post job class. However getURL returned null in the web service class.
I used constructor injection. How do i get the url in the webservice class?
How can i get the server url inside the webservice?
I injected Server using constructor injection byt getURL is returning null
That worked like a charm in my post job class. However getURL returned null in the web service class.
I used constructor injection. How do i get the url in the webservice class?
sonar.web.host did not work.
Meanwhile we decided to use system properties to set and get the URL. Thank you. Will change the code again while upgrading to 5.6.