This content has been marked as final.
Show 2 replies
-
1. Re: Define the context path of a WAR added
cmoulliard Jun 30, 2016 9:09 AM (in response to cmoulliard)Here is the solution --> archive.setContextRoot("/hawtio");
-
2. Re: Define the context path of a WAR added
mjobanek Jul 12, 2016 8:45 AM (in response to cmoulliard)Hi,
your solution is probably possible only for WARArchive from the wildfly-swarm-core library.
For the general usage (on the level of the ShrinkWrap library) I know one workaround:
WebArchive hawtioArchive = ShrinkWrap.create(WebArchive.class, "hawtio.war").merge(archive);
which basically means that you create a new empty archive with the desired name and merge it with the original archive.
Yeah, it's not nice solution but it is feasible :-).