Show
Ignore:
Timestamp:
03.04.2009 11:45:58 (11 years ago)
Author:
oranfry
Message:

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

Files:
1 modified

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 @installer.name@.jar").c_str() ); 
     100        launch_exit_code = system( (foundJvm.getExecutable() + " -Xmx85M -jar @installer.name@.jar" + (textMode?" text":"") ).c_str() ); 
    92101 
    93102        //report how it went