public void ensureConfigured(ResolverSettings settings)
   {
      if (settings != null && (root == null || pattern == null))
      {
         if (root == null)
         {
            String root = settings.getVariable("ivy.ibiblio.default.artifact.root");
            if (root != null)
            {
               this.root = root;
            }
            else
            {
               settings.configureRepositories(true);
               this.root = settings.getVariable("ivy.ibiblio.default.artifact.root");
            }
         }
         if (pattern == null)
         {
            String pattern = settings.getVariable("ivy.ibiblio.default.artifact.pattern");
            if (pattern != null)
            {
               this.pattern = pattern;
            }
            else
            {
               settings.configureRepositories(false);
               this.pattern = settings.getVariable("ivy.ibiblio.default.artifact.pattern");
            }
         }
         updateWholePattern();
      }
   }