Changeset 23970
- Timestamp:
- 2011-04-29T13:22:22+12:00 (13 years ago)
- Location:
- gs3-extensions/i-jetty/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/i-jetty/trunk/src/JAVA-TO-DEX.sh
r23931 r23970 133 133 134 134 echo "" 135 echo "Run ./DEX-TO-SDCARD.sh to install the latest DEX files on the device" 135 echo "####" 136 echo "# Run ./DEX-TO-SDCARD.sh to install the latest DEX files on the device" 137 echo "####" 136 138 echo "" -
gs3-extensions/i-jetty/trunk/src/README.txt
r23883 r23970 6 6 7 7 It relies on the environment variable ANDROID_SDK_HOME to determine 8 where Android's SDK lives on your file system (primarily to be able to 9 run 'adb' and 'dex'). If this is not set prior to running the scripts 10 this extension provides, it can be set explicitly in setup.bash/bat. 8 where the Android SDK lives on your file system, in a similar way 9 JAVA_HOME gets used by many programs to determin where Java is 10 installed on a particular computer. The key programs we need to run 11 from the Android SDK are 'adb' and 'dex'. The most straight forward 12 way to control this variable is to: 13 14 cp setup-android.bash.in setup-android.bash 15 16 and then edit 'setup-android.bash' the value of **ANDROID-SDK-HOME** 17 to be the top-level directory of where the Android SDK was installed to. 18 19 Having done this, source the main setup file: 20 21 source setup.bash 22 23 which automatically sources setup-android.bash if the ANDROID_SDK_HOME 24 environment variable isn't set. 11 25 12 26 Having sourced the setup file the two main steps are: … … 19 33 The first step typically only needs to be done once. The second step is 20 34 composed of three sub-steps, and may require the last two sub-steps to 21 be repeated if the Java code is changed.35 be repeated if the Java code has been modified. 22 36 23 37 Step 1 … … 32 46 need to have enabled it's application 'Development' mode (under 33 47 Settings->Application) 48 49 ************* 50 **Important** 51 ************* 52 53 Having installed i-jetty, find the application on the Android device 54 and launch it (but you don't have to go as far as starting the i-jetty 55 server from within this application). Launching i-jetty completes the 56 installation of the application by creating the 'jetty' folder on the 57 Android's SD-card, and populating it with the default configuration 58 files for i-jetty. The 'jetty' folder is needed for your setup procedure 59 as it is where Greenstone-3 will be installed to. 34 60 35 61 -
gs3-extensions/i-jetty/trunk/src/WEBAPP-ROOT-TO-SDCARD.sh
r23931 r23970 5 5 echo " => No valid directory to install to on Android device" 6 6 echo " => Did you run setup.bash before the Android device was in disk mode?" 7 echo " => Alternatively, set the environment variable explicitly" 7 echo " => Have you launched i-jetty at least once to create the 'jetty' directory on the sd-card?" 8 echo " => If all else fails, you can set the environment variable SDCARD_WEBAPPS explicitly" 8 9 exit -1 9 10 fi … … 18 19 mode="Updating" 19 20 fi 21 echo " => Have you launched i-jetty to create the 'jetty' directory on the sd-card? 20 22 21 23 echo "#---" … … 41 43 | xargs -I {} /bin/cp -u -v $GSDL3HOME/{} $SDCARD_GSDL3HOME/{} 42 44 45 /bin/cp resources/index.html $SDCARD_GSDL3HOME/. 46 /bin/cp resources/web.xml $SDCARD_GSDL3HOME/WEB-INF/. 43 47 44 48 if [ ! -d $SDCARD_GSDL3HOME/sites/localsite ] ; then … … 54 58 /bin/cp -u -v -r $GSDL3HOME/sites/localsite/collect/lucene-jdbm-demo $SDCARD_GSDL3HOME/sites/localsite/collect/. 55 59 60 if [ ! -d $SDCARD_GSDL3HOME/sites/localsite/collect/lucene-jdbm-demo/index ] ; then 61 pushd $SDCARD_GSDL3HOME/sites/localsite/collect/lucene-jdbm-demo 62 unzip index.zip 63 popd 64 fi 65 66 echo "" 67 echo "####" 68 echo "# If not already done so, run: " 69 echo "# ./JAVA-TO-DEX.sh" 70 echo "# to cross-compile the Greenstone code and supporting JAR files" 71 echo "####" 72 echo "" 56 73 57 74 58 75 59 -
gs3-extensions/i-jetty/trunk/src/setup.bash
r23931 r23970 57 57 echo "" 58 58 echo " Using:" 59 echo "" 59 60 echo " $SDCARD_GSDL3HOME" 61 echo "" 60 62 echo " as the installation point for the Greenstone servlet" 61 63 echo "" … … 78 80 79 81 echo "" 82 echo "======" 80 83 echo "If this is the first time you have installed Greenstone on the Android device, " 81 84 echo " run:" 85 echo "" 86 echo " adb install i-jetty-2.2-signed.apk" 87 echo "" 88 echo "to install jetty on your device, followed by" 89 echo "" 82 90 echo " ./WEBAPP-ROOT-TO-SDCARD.sh" 83 91 echo "" 92 echo "to set up tGreenstone's 'web' directory within the i-jetty webapps area." 84 93 echo "Then:" 85 94 echo "" 86 95 echo " ./JAVA-TO-DEX.sh" 96 echo "" 97 echo "to cross-compile Greenstone java code to the Android DEX format." 98 echo "" 99 echo "Finally run:" 100 echo "" 101 echo " ./DEX-TO-SDCARD.sh" 102 echo "" 103 echo "to install the cross-compiled files on the Android device" 104 echo "======" 87 105 echo "" 88 106 … … 90 108 91 109 110 111
Note:
See TracChangeset
for help on using the changeset viewer.