I have a WAR file which contains the version number to it. In openliberty server.xml
I had to specify the application location where the version number could be replaced by wildcard matching.
e.g., the file name is: my-company-project-vX.Y.war
and the corresponding application definition in server.xml
is:
<?xml version="1.0" encoding="UTF-8"?>
<server description="my-company">
<application context-root="my-company-project"
id="my-company-project-war" name="my-company-project-war"
type="war" location="my-company-project-vX.Y.war"></application>
</server>
Now if the project version is changed I have to always change the location
attribute in application
.
Is it possible to use some kind of wildcard so that I do not always have to replace the version?
I had tried *
as location="my-company-project-*.war"
but that did not worked and I got warning in server logs:
[WARNING ] CWWKZ0014W: The application my-company-project-war could not be started
as it could not be found at location my-company-project-*.war.
And I was expecting it to pick the my-company-project-vX.Y.war
correctly.