Issue #9497 allow jetty:effective-web-xml for jar projects
This commit is contained in:
parent
e6de81084d
commit
c357a1216d
|
@ -63,13 +63,12 @@ public class JettyEffectiveWebXml extends AbstractUnassembledWebAppMojo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Path start = path.getName(0);
|
|
||||||
int count = path.getNameCount();
|
if ((path == null) || (path.startsWith("src") || !path.endsWith(".war")))
|
||||||
Path end = path.getName(count > 0 ? count - 1 : count);
|
{
|
||||||
//if the war is not assembled, we must configure it
|
|
||||||
if (start.startsWith("src") || !end.toString().endsWith(".war"))
|
|
||||||
super.configureUnassembledWebApp();
|
super.configureUnassembledWebApp();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Override so we can call the parent's method in a different order.
|
* Override so we can call the parent's method in a different order.
|
||||||
|
|
Loading…
Reference in New Issue