Ignore:
Timestamp:
2003-07-17T12:11:16+12:00 (21 years ago)
Author:
kjdon
Message:

dont use activate script for actiavte coll, use convert script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/build/GS2PerlConstructor.java

    r4852 r4970  
    169169    }
    170170
    171     // run the convert coll script to convert the gs2 coll to gs3
    172     Vector command = new Vector();
    173     command.add("activate_gs2_style_coll.pl");
    174     command.add("-collectdir");
    175     command.add(GSFile.collectDir(site_home_));
    176     command.addAll(extractParameters(process_params_));
    177     command.add(collection_name_);
    178     String [] command_str = {};
    179     command_str = (String [])command.toArray(command_str);
    180    
    181     if (!runPerlCommand(command_str)) {
    182         // an error has occurred, dont carry on
    183         return;
    184     }
    185 
    186     // now mv building to index
     171    // move building to index
    187172    File index_dir = new File(GSFile.collectionIndexDir(site_home_, collection_name_));
    188173    if (index_dir.exists()) {
     
    198183        sendMessage(new ConstructionEvent(this, GSStatus.ERROR, "index dir wasn't created!"));
    199184    }
     185
     186    // run the convert coll script to convert the gs2 coll to gs3
     187    Vector command = new Vector();
     188    command.add("convert_coll_from_gs2.pl");
     189    command.add("-collectdir");
     190    command.add(GSFile.collectDir(site_home_));
     191    command.addAll(extractParameters(process_params_));
     192    command.add(collection_name_);
     193    String [] command_str = {};
     194    command_str = (String [])command.toArray(command_str);
     195   
     196    if (!runPerlCommand(command_str)) {
     197        // an error has occurred, dont carry on
     198        return;
     199    }
     200
    200201    // success!!  - need to send the final completed message
    201202    sendProcessComplete(new ConstructionEvent(this, GSStatus.COMPLETED, ""));
Note: See TracChangeset for help on using the changeset viewer.