Skip to content

Commit

Permalink
Fix #6565 Deploy Symlinked applications
Browse files Browse the repository at this point in the history
Keep resource and file the same.

Signed-off-by: Greg Wilkins <gregw@webtide.com>
  • Loading branch information
gregw committed Aug 2, 2021
1 parent e8fe135 commit 720f513
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -271,8 +271,8 @@ public ContextHandler createContextHandler(final App app) throws Exception
// Resource aliases (after getting name) to ensure baseResource is not an alias
if (resource.isAlias())
{
resource = Resource.newResource(resource.getAlias());
file = resource.getFile().toPath().toRealPath().toFile();
file = new File(resource.getAlias()).toPath().toRealPath().toFile();
resource = Resource.newResource(file);
if (!resource.exists())
throw new IllegalStateException("App resource does not exist " + resource);
}
Expand Down

0 comments on commit 720f513

Please sign in to comment.