CatalinaProperties.getProperty( "foo" );
Tomcat embeddedTomcat = new ExtendedTomcat( configurationDir );
embeddedTomcat.setBaseDir( configurationDir.getAbsolutePath() );
MemoryRealm memoryRealm = new MemoryRealm();
if ( tomcatUsers != null )
{
if ( !tomcatUsers.exists() )
{
throw new MojoExecutionException( " tomcatUsers " + tomcatUsers.getPath() + " not exists" );
}
getLog().info( "use tomcat-users.xml from " + tomcatUsers.getAbsolutePath() );
memoryRealm.setPathname( tomcatUsers.getAbsolutePath() );
}
embeddedTomcat.setDefaultRealm( memoryRealm );
Context ctx = createContext( embeddedTomcat );