resolve a uri issue with war files coming in from context.xml files

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@920 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Jesse McConnell 2009-09-16 19:48:31 +00:00
parent f86b4124cc
commit a0ba8a3bc3
1 changed files with 8 additions and 1 deletions

View File

@ -69,7 +69,14 @@ public class WebappVerifierConfiguration implements Configuration
RuleSet suite = RuleSet.load( configurationUri.toURL() );
WebappVerifier verifier = suite.createWebappVerifier( new URI( context.getWar() ) );
String warLocation = context.getWar();
if ( !warLocation.startsWith("file:" ) )
{
warLocation = "file:" + warLocation;
}
WebappVerifier verifier = suite.createWebappVerifier( new URI( warLocation ) );
verifier.visitAll();