Skip to content

Commit

Permalink
Issue #9497 allow jetty:effective-web-xml for jar projects
Browse files Browse the repository at this point in the history
  • Loading branch information
janbartel committed Mar 15, 2023
1 parent e6de810 commit c357a12
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 c357a12

Please sign in to comment.