Changeset 16078 for release-kits/wirk3
- Timestamp:
- 2008-06-20T09:58:58+12:00 (16 years ago)
- Location:
- release-kits/wirk3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/wirk3/ant-scripts/create-installer.xml
r15691 r16078 14 14 <addressedcall target="setup-for-installer-creation"/> 15 15 <addressedcall target="compile-installer"/> 16 <!--<addressedcall target="clean-up-after-installer-creation"/>-->17 16 </target> 18 17 … … 23 22 <copy todir="${basedir}/installer" file="${wirk3.home}/installer/antinstall-config.xml"/> 24 23 <copy todir="${basedir}/installer" file="${wirk3.home}/installer/build.xml"/> 25 <copy todir="${basedir}/installer/cp"><fileset dir="${wirk3.home}/installer/cp"/></copy> 24 <copy todir="${basedir}/installer/resources"> 25 <fileset dir="${wirk3.home}/installer/resources-windows"/> 26 <fileset dir="${wirk3.home}/installer/resources-greenstone3"/> 27 </copy> 26 28 27 29 <!-- put the concrete values of things in the config --> … … 31 33 <!-- put the concrete values of things in the text --> 32 34 <!-- default --> 33 <rsr file="${basedir}/installer/ cp/resources/LanguagePack.properties" pattern="@version@" replacement="${version}"/>34 <rsr file="${basedir}/installer/ cp/resources/LanguagePack.properties" pattern="@java.min.version@" replacement="${java.min.version}"/>35 <rsr file="${basedir}/installer/ cp/resources/LanguagePack.properties" pattern="@bundled.version.java@" replacement="${bundled.version.java}"/>36 <rsr file="${basedir}/installer/ cp/resources/LanguagePack.properties" pattern="@bundled.version.tomcat@" replacement="${bundled.version.tomcat}"/>37 <rsr file="${basedir}/installer/ cp/resources/LanguagePack.properties" pattern="@bundled.version.ant@" replacement="${bundled.version.ant}"/>35 <rsr file="${basedir}/installer/resources/LanguagePack.properties" pattern="@version@" replacement="${version}"/> 36 <rsr file="${basedir}/installer/resources/LanguagePack.properties" pattern="@java.min.version@" replacement="${java.min.version}"/> 37 <rsr file="${basedir}/installer/resources/LanguagePack.properties" pattern="@bundled.version.java@" replacement="${bundled.version.java}"/> 38 <rsr file="${basedir}/installer/resources/LanguagePack.properties" pattern="@bundled.version.tomcat@" replacement="${bundled.version.tomcat}"/> 39 <rsr file="${basedir}/installer/resources/LanguagePack.properties" pattern="@bundled.version.ant@" replacement="${bundled.version.ant}"/> 38 40 39 41 <!-- chinese --> 40 <rsr file="${basedir}/installer/ cp/resources/LanguagePack_zh_CN.properties" pattern="@version@" replacement="${version}"/>41 <rsr file="${basedir}/installer/ cp/resources/LanguagePack_zh_CN.properties" pattern="@java.min.version@" replacement="${java.min.version}"/>42 <rsr file="${basedir}/installer/ cp/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.java@" replacement="${bundled.version.java}"/>43 <rsr file="${basedir}/installer/ cp/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.tomcat@" replacement="${bundled.version.tomcat}"/>44 <rsr file="${basedir}/installer/ cp/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.ant@" replacement="${bundled.version.ant}"/>42 <rsr file="${basedir}/installer/resources/LanguagePack_zh_CN.properties" pattern="@version@" replacement="${version}"/> 43 <rsr file="${basedir}/installer/resources/LanguagePack_zh_CN.properties" pattern="@java.min.version@" replacement="${java.min.version}"/> 44 <rsr file="${basedir}/installer/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.java@" replacement="${bundled.version.java}"/> 45 <rsr file="${basedir}/installer/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.tomcat@" replacement="${bundled.version.tomcat}"/> 46 <rsr file="${basedir}/installer/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.ant@" replacement="${bundled.version.ant}"/> 45 47 46 48 … … 61 63 icons="bluecurve"> 62 64 63 <zipfileset dir="${basedir}/installer/cp" includes="**"/> 64 <zipfileset dir="${wirk3.home}/installer/cp-extra" includes="**"/> 65 <zipfileset dir="${basedir}/installer/resources" prefix="resources"><include name="**/*"/></zipfileset> 65 66 <zipfileset dir="${wirk3.home}/ant-scripts/tasks/orans"><include name="RegexSearchReplace.class"/></zipfileset> 66 67 … … 82 83 </if> 83 84 </target> 84 85 <target name="clean-up-after-installer-creation">86 <if><bool><istrue value="${execute}"/></bool>87 <delete file="${basedir}/installer/antinstall-config.xml"/>88 </if>89 </target>90 91 85 92 86 </project> -
release-kits/wirk3/installer/antinstall-config.xml
r15381 r16078 8 8 lookAndFeel="org.tp23.jgoodies.plaf.plastic.PlasticXPLookAndFeel" 9 9 name="Greenstone3 @version@ Installer" 10 windowIcon="/resources/ gs3-small.png"11 defaultImageResource="/resources/ makewavesdawn.png"10 windowIcon="/resources/icon.png" 11 defaultImageResource="/resources/header.png" 12 12 minJavaVersion="1.4"> 13 13 -
release-kits/wirk3/src/wirk3.cpp
r15691 r16078 38 38 //set the classpath 39 39 //WIRK3_HOME + "\\ant-scripts\\tasks\\orangevolt\\roxes-win32forjava-1.1.1.jar;" + WIRK3_HOME + "\\ant-scripts\\tasks\\orangevolt\\orangevolt-ant-tasks-1.3.8.jar;" + 40 classpath = pwd + "\\installer \\cp;" + JAVA_HOME + "\\lib\\tools.jar;" + WIRK3_HOME + "\\lib\\serializer.jar;" + WIRK3_HOME + "\\lib\\xalan.jar;" + WIRK3_HOME + "\\lib\\xercesImpl.jar;" + WIRK3_HOME + "\\lib\\xml-apis.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-antlr.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-bcel.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-bsf.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-log4j.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-oro.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-regexp.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-resolver.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-commons-logging.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-commons-net.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-icontract.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-jai.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-javamail.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-jdepend.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-jmf.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-jsch.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-junit.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-launcher.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-netrexx.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-nodeps.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-starteam.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-stylebook.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-swing.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-trax.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-vaj.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-weblogic.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-xalan1.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-xslp.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\xercesImpl.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\xml-apis.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\ai-icons-amaranth.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\ai-icons-bluecurve.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\ai-icons-crystalsvg.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\ai-icons-eclipse.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\ai-icons-krystaline.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\ant-installer-ext.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\ant-installer.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\jgoodies-edited-1_2_2.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\xercesImpl.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\xml-apis.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\classes";40 classpath = pwd + "\\installer;" + JAVA_HOME + "\\lib\\tools.jar;" + WIRK3_HOME + "\\lib\\serializer.jar;" + WIRK3_HOME + "\\lib\\xalan.jar;" + WIRK3_HOME + "\\lib\\xercesImpl.jar;" + WIRK3_HOME + "\\lib\\xml-apis.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-antlr.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-bcel.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-bsf.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-log4j.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-oro.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-regexp.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-apache-resolver.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-commons-logging.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-commons-net.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-icontract.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-jai.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-javamail.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-jdepend.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-jmf.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-jsch.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-junit.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-launcher.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-netrexx.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-nodeps.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-starteam.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-stylebook.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-swing.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-trax.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-vaj.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-weblogic.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-xalan1.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\ant-xslp.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\xercesImpl.jar;" + WIRK3_HOME + "\\bin\\apache-ant-1.6.5\\lib\\xml-apis.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\ai-icons-amaranth.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\ai-icons-bluecurve.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\ai-icons-crystalsvg.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\ai-icons-eclipse.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\ai-icons-krystaline.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\ant-installer-ext.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\ant-installer.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\jgoodies-edited-1_2_2.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\xercesImpl.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\lib\\xml-apis.jar;" + WIRK3_HOME + "\\bin\\ant-installer\\classes"; 41 41 putenv( ("CLASSPATH=" + classpath).c_str() ); 42 42 -
release-kits/wirk3/wrapper/wrapper.cpp
r15813 r16078 14 14 //globals 15 15 HBITMAP g_splash = NULL; //the main splash bitmap 16 HFONT g_hfFont = NULL; //the main splash bitmap 16 17 char step[10] = "TMP"; //the current step 17 18 char progress[4] = "0"; //progress in the current step … … 45 46 46 47 //extracts a resource in chunks 47 int extractResource( const char * basename, const char * type, char * file , int no_chunks) {48 int extractResource( const char * basename, const char * type, char * file ) { 48 49 49 50 HMODULE hModule = GetModuleHandle(NULL); 50 51 set_splash_progress( 0 ); 51 52 53 int no_chunks; 54 bool chunk_available = true; 55 for ( no_chunks = 0; chunk_available; no_chunks++ ) { 56 57 //construct the chunk name 58 char chunkname[127] = {0}; 59 strcpy( chunkname, basename ); 60 strcat( chunkname, "_" ); 61 char chunknum[5] = {0}; 62 itoa( no_chunks+1, chunknum, 10 ); 63 strcat( chunkname, chunknum ); 64 65 if ( FindResource(hModule, chunkname, type) == NULL ) { 66 chunk_available = false; 67 } 68 } 69 52 70 for ( int i=0; i<no_chunks; i++ ) { 53 71 54 72 //construct the chunk name 55 73 char chunkname[127] = {0}; … … 60 78 strcat( chunkname, chunknum ); 61 79 62 //MessageBox(NULL, chunkname, "chunk name", MB_OK); 63 64 //try to find it 80 //find it 65 81 HRSRC hRsrc = FindResource(hModule, chunkname, type); 66 if (hRsrc == NULL ) return -1; //couldn't find the chunk82 if (hRsrc == NULL ) return 1; //couldn't find the chunk 67 83 68 84 //load it 69 85 HGLOBAL hGlobal = LoadResource(hModule, hRsrc); 70 86 if (hGlobal == NULL) return 1; //couldn't lock 87 88 //lock it 71 89 BYTE* pBytes = (BYTE*) LockResource(hGlobal); 72 90 if (pBytes == NULL) return 1; //couldn't lock … … 98 116 //load in the reusable resources 99 117 g_splash = LoadBitmap(GetModuleHandle(NULL),"SPLASH"); 118 g_hfFont = (HFONT)GetStockObject(DEFAULT_GUI_FONT); 100 119 if(g_splash == NULL) { 101 120 MessageBox(hwnd, "Could not load splash bitmap!", "Error", MB_OK | MB_ICONEXCLAMATION); … … 146 165 SelectObject(hdcMem, g_step); 147 166 BitBlt(hdc, 0, 276, bm.bmWidth, bm.bmHeight, hdcMem, 0, 0, SRCPAINT); 167 168 //print the step with text 169 RECT rcClient; 170 GetClientRect(hwnd, &rcClient); 171 //DrawText(hdc, "This is the step", -1, &rcClient, DT_SINGLELINE | DT_CENTER | DT_VCENTER); 148 172 149 173 //restore the hdc … … 294 318 //is this an installer with the bundled JRE? 295 319 set_splash_step( "XJAVA" ); 296 int extract_result = extractResource( "JAVA", "EXE", "@java.installer@" , 2);320 int extract_result = extractResource( "JAVA", "EXE", "@java.installer@" ); 297 321 298 322 if ( extract_result == 0 ) { … … 327 351 328 352 set_splash_step( "XJAR" ); 329 extractResource( "JAR", "JAR", (char*) jarLocation.c_str() , 12);353 extractResource( "JAR", "JAR", (char*) jarLocation.c_str() ); 330 354 331 355 //launch the jar
Note:
See TracChangeset
for help on using the changeset viewer.