Changeset 4575


Ignore:
Timestamp:
Oct 13, 2008, 10:57:11 AM (14 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1121: News item 'BASE Server installed' is created after running updatedb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/core/Install.java

    r4545 r4575  
    590590      createClient(rootUser, "net.sf.basedb.clients.jobagent", "Job agent client", "This client is used by all job agents", keyJobAgentUse);
    591591 
    592       // News
    593       if (progress != null) progress.display((int)(21*progress_factor), "--Creating news...");
    594       createNews("BASE Server installed", "Welcome to your new BASE server.");
    595  
    596592      // Plugins
    597       if (progress != null) progress.display((int)(22*progress_factor), "--Creating plugin definitions...");
     593      if (progress != null) progress.display((int)(21*progress_factor), "--Creating plugin definitions...");
    598594      createPluginType("Autodetecting importer", "This interface should be implemented by all plugins that are capable of autodetect the file format by parsing an input stream.",
    599595        "net.sf.basedb.core.plugin.AutoDetectingImporter", null);
     
    663659     
    664660      // Plugin configurations
    665       if (progress != null) progress.display((int)(23*progress_factor), "--Creating example plugin configurations...");
     661      if (progress != null) progress.display((int)(22*progress_factor), "--Creating example plugin configurations...");
    666662      createPluginConfigurations("/plugin_configfile.xml", update);
    667663      createPluginConfigurations("/illumina.configurations.xml", update);
     
    671667      ColoringData NO_COLORING = new ColoringData(false, false, null, null, null);
    672668      ColoringData RATIO_COLORING = new ColoringData(true, true, -1f, 0f, 1f);
    673       if (progress != null) progress.display((int)(24*progress_factor), "--Creating formulas...");
     669      if (progress != null) progress.display((int)(23*progress_factor), "--Creating formulas...");
    674670      createFormula(Formula.Type.COLUMN_EXPRESSION, Formula.Parser.JEP, Formula.AverageMethod.GEOMETRIC_MEAN,
    675671        "Ratio, ch1 / ch2", "The ratio of channel 1 to channel 2", null, 2,
     
    710706      }
    711707 
    712       if (progress != null) progress.display((int)(25*progress_factor), "--Creating job agents...");
     708      if (progress != null) progress.display((int)(24*progress_factor), "--Creating job agents...");
    713709      // TODO
    714710     
    715711      // File set member types
    716       if (progress != null) progress.display((int)(26*progress_factor), "--Creating data file types...");
     712      if (progress != null) progress.display((int)(25*progress_factor), "--Creating data file types...");
    717713      DataFileTypeData celFile = createDataFileType(
    718714        DataFileType.AFFYMETRIX_CEL, "CEL file", "Affymetrix CEL file",
     
    747743     
    748744      // Platforms and variants
    749       if (progress != null) progress.display((int)(27*progress_factor), "--Creating platforms...");
     745      if (progress != null) progress.display((int)(26*progress_factor), "--Creating platforms...");
    750746      createPlatform("generic", "Generic", "Generic platform which expects data to be imported into the database",
    751747        false, null, 0,
     
    758754        new PlatformFT(cdfFile, true)
    759755      );
     756     
     757      // News
     758      if (progress != null) progress.display((int)(27*progress_factor), "--Creating news...");
     759      String version = "BASE " + Version.getMajor() + "." + Version.getMinor() + "." + Version.getMaintenance();
     760      if (update)
     761      {
     762        createNews("Server upgraded to " + version, "Welcome to your upgraded BASE server");
     763      }
     764      else
     765      {
     766        createNews(version + " installed", "Welcome to your new BASE server.");
     767      }
     768
    760769     
    761770      if (progress != null) progress.display(100, "Database initialised successfully.");
Note: See TracChangeset for help on using the changeset viewer.