Exemple #1
0
 public virtual void run()
 {
     if (this.showConfig)
     {
         ConfigurationManagerUtils.showConfig(this.cm);
     }
     if (this.showHTML)
     {
         try
         {
             HTMLDumper.showConfigAsHTML(this.cm, "foo.html");
         }
         catch (IOException ex)
         {
             this.logger.warning(new StringBuilder().append("Can't open ").append(this.htmlPath).append(' ').append(ex).toString());
         }
     }
     if (this.showGDL)
     {
         try
         {
             GDLDumper.showConfigAsGDL(this.cm, this.gdlPath);
         }
         catch (IOException ex4)
         {
             this.logger.warning(new StringBuilder().append("Can't open ").append(this.gdlPath).append(' ').append(ex4).toString());
         }
     }
     if (this.saveXML)
     {
         ConfigurationManager configurationManager = this.cm;
         ConfigurationManagerUtils.save(configurationManager, new File(this.xmlPath));
     }
 }
Exemple #2
0
        public void Run()
        {
            if (_showConfig)
            {
                ConfigurationManagerUtils.ShowConfig(_cm);
            }

            if (_showHtml)
            {
                try
                {
                    HTMLDumper.ShowConfigAsHTML(_cm, "foo.html");
                }
                catch (IOException e)
                {
                    this.LogWarning("Can't open " + _htmlPath + ' ' + e);
                }
            }

            if (_showGdl)
            {
                try
                {
                    GDLDumper.ShowConfigAsGDL(_cm, _gdlPath);
                }
                catch (IOException e)
                {
                    this.LogWarning("Can't open " + _gdlPath + ' ' + e);
                }
            }

            if (_saveXML)
            {
                ConfigurationManagerUtils.Save(_cm, new FileInfo(_xmlPath));
            }
        }