Ignore:
Timestamp:
2010-06-30T10:05:54+12:00 (14 years ago)
Author:
sjm84
Message:

Fixed an error with the -extract option on linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/release-kits/shared/linux/wrapper.cpp

    r22225 r22324  
    5353            text_mode = true;
    5454        } else if ( a.compare("-extract") == 0 || a.compare("--extract") || a.compare("-x")) {
    55             cout << "------------------------------" << endl;
    56             cout << "Extracting java installer...\n" << endl;
    57             cout << "------------------------------" << endl;
    58             bool result = extract_bundled_file( greenstonejar, sizeof(greenstonejar), (char*)jarfile.c_str(), false);
     55            cout << "----------------------------" << endl;
     56            cout << "Extracting java installer..." << endl;
     57            cout << "----------------------------" << endl;
     58            bool result = extract_bundled_file( greenstonejar, sizeof(greenstonejar), "greenstone.jar", false);
    5959            if(result){
    6060                cout << "\nExtraction Complete" << endl;
    61                 cout << "You can now run \"java -jar greenstone.jar text\" to run the installer from the command line\n"
     61                cout << "You can now run \"java -jar greenstone.jar text\" to run the installer from the command line\n" << endl;
    6262                return 0;
    6363            }
    6464            else{
    65                 cerr << "There was an error while extracting the java installer" << endl;
     65                cerr << "\nThere was an error while extracting the java installer" << endl;
    6666                return 1;
    6767            }
Note: See TracChangeset for help on using the changeset viewer.