Skip to content

Commit

Permalink
Merge pull request #9503 from eclipse/jetty-10.0.x-9497-effective-web…
Browse files Browse the repository at this point in the history
…-xml

Issue #9497 allow jetty:effective-web-xml for jar projects
  • Loading branch information
joakime authored Mar 20, 2023
2 parents 17aa0c5 + c357a12 commit 574ad3b
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,11 @@ public void configureWebApp() throws Exception
}
}

Path start = path.getName(0);
int count = path.getNameCount();
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"))

if ((path == null) || (path.startsWith("src") || !path.endsWith(".war")))
{
super.configureUnassembledWebApp();
}
}

/**
Expand Down

0 comments on commit 574ad3b

Please sign in to comment.