I have an Ascii doc reporting several times a sentence like:
You can reach the service at
https://server:8081/...
The problem I have is that the 8081
may be variable, and depends on a constant which is defined somewhere in the code:
public static final String SERVICE_PORT = "8081";
I would like to do something like:
You can reach the service at
https://server:${MyClass.SERVICE_PORT}/...
Like that, each time that the value of the variable changes in the code, it will change in the documentation dynamically.
I've read about DRY URLs, and I've been looking for something similar but with code without success.
Does anyone know if it's possible and, if so, how?