Better use of WebAppContext.getResourceFactory()
This commit is contained in:
parent
0e25d98a9d
commit
81b1a6688d
|
@ -178,7 +178,7 @@ public abstract class AbstractUnassembledWebAppMojo extends AbstractWebAppMojo
|
|||
Resource r = webApp.getResourceFactory().newResource(webXml.toPath());
|
||||
if (r.exists() && !r.isDirectory())
|
||||
{
|
||||
webApp.setDescriptor(r.toString());
|
||||
webApp.setDescriptor(r.getURI().toASCIIString());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -190,7 +190,7 @@ public abstract class AbstractUnassembledWebAppMojo extends AbstractWebAppMojo
|
|||
Resource r = webApp.getBaseResource().resolve("WEB-INF/web.xml");
|
||||
if (r.exists() && !r.isDirectory())
|
||||
{
|
||||
webApp.setDescriptor(r.toString());
|
||||
webApp.setDescriptor(r.getURI().toASCIIString());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -166,10 +166,10 @@ public abstract class AbstractUnassembledWebAppMojo extends AbstractWebAppMojo
|
|||
//Has an explicit web.xml file been configured to use?
|
||||
if (webXml != null)
|
||||
{
|
||||
Resource r = ResourceFactory.root().newResource(webXml.toPath());
|
||||
Resource r = webApp.getResourceFactory().newResource(webXml.toPath());
|
||||
if (r.exists() && !r.isDirectory())
|
||||
{
|
||||
webApp.setDescriptor(r.toString());
|
||||
webApp.setDescriptor(r.getURI().toASCIIString());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue