Project

General

Profile

« Previous | Next » 

Revision 4999

Added by Duane Costa over 14 years ago

Implement fix for Bug #4245: Harvester command line scripts don't execute.

View differences:

HarvestSiteScheduleTest.java
79 79
   * with a past date of next harvest (is due for harvest now).
80 80
   */
81 81
  protected void setUp() {
82
    boolean commandLineMode = true;
82 83
    String contactEmail = "jdoe@institution.edu";
83 84
    String dateLastHarvest = "2004-04-01 00:00:00.0";
84 85
    String dateNextHarvestFuture = "2056-01-01 00:00:00.0";
......
94 95
    int updateFrequency = 1;
95 96

  
96 97
    harvester = new Harvester();
97
    Harvester.loadProperties(test);
98
    Harvester.loadProperties(commandLineMode, test);
98 99
    harvester.getConnection();  // initializes the database connection
99 100
    harvester.initLogIDs();
100 101
    harvester.setHarvestStartTime(new Date());

Also available in: Unified diff