Ignore:
Timestamp:
2009-04-03T11:45:58+13:00 (15 years ago)
Author:
oranfry
Message:

allowing the use of installer argument 'text' to trigger text mode installation

File:
1 edited

Legend:

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

    r18283 r18877  
    1616    string javafile = tempdir + "/@java.installer@"; //where we will store the java tar file
    1717    bool succeeded = false;
     18    bool textMode = false;
     19
     20    //parse arguments
     21    for ( int i=0; i<argc; i++ ) {
     22        if ( strcmp( argv[i], "text" ) == 0 ) {
     23            textMode = true;
     24        }
     25    }
     26
    1827
    1928    //create the temp folder
     
    8998        cout << "Launching Installer ..." << endl;
    9099        int launch_exit_code = 0;
    91         launch_exit_code = system( (foundJvm.getExecutable() + " -Xmx85M -jar @[email protected]").c_str() );
     100        launch_exit_code = system( (foundJvm.getExecutable() + " -Xmx85M -jar @[email protected]" + (textMode?" text":"") ).c_str() );
    92101
    93102        //report how it went
Note: See TracChangeset for help on using the changeset viewer.