Changeset 26642 for gs3-extensions

Show
Ignore:
Timestamp:
10.01.2013 11:59:33 (7 years ago)
Author:
davidb
Message:

Additional code to install the pre-bundled Greenstone3 war file now included in the apk.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs3-extensions/i-greenstone-server/trunk/src/CUSTOMIZATION/src/org/mortbay/ijetty/IJetty.java

    r26474 r26642  
    190190                boolean made = webappsDir.mkdirs(); 
    191191                Log.i(TAG,"Made " + webappsDir + ": " + made); 
     192                 
     193                try 
     194                { 
     195                    InputStream is = getAssets().open("webapps_greenstone.jar"); 
     196                    Installer.install(is, "/greenstone3", webappsDir, "greenstone3", false); 
     197                    Log.i("Jetty", "Loaded console webapp"); 
     198                } 
     199                catch(Exception ex) 
     200                { 
     201                    ex.printStackTrace(); 
     202                } 
    192203            } 
    193204            else