Commit 74a5e17c authored by Matt Tucker's avatar Matt Tucker Committed by matt

More work on Pack200

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3259 b35dd754-fafc-0310-a699-88a17e54d16e
parent fe098d7e
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<install4j version="3.2.2"> <install4j version="3.2.2">
<directoryPresets config="../../../../../Desktop/jre" /> <directoryPresets config="./images" />
<application name="%APP_NAME%" distributionSourceDir="" applicationId="%APPLICATION_ID%" mediaDir="../../target/release" mediaFilePattern="%FILE_PREFIX%_%VERSION_MAJOR%_%VERSION_MINOR%_%VERSION_REVISION%" compression="9" lzmaCompression="true" keepModificationTimes="true" shortName="%APP_SHORT_NAME%" publisher="%PUBLISHER%" publisherWeb="%PUBLISHER_URL%" version="%VERSION_MAJOR%.%VERSION_MINOR%.%VERSION_REVISION%" allPathsRelative="true" backupOnSave="false" autoSave="true" macSignature="????" javaMinVersion="1.5" javaMaxVersion="" allowBetaVM="false"> <application name="%APP_NAME%" distributionSourceDir="" applicationId="%APPLICATION_ID%" mediaDir="../../target/release" mediaFilePattern="%FILE_PREFIX%_%VERSION_MAJOR%_%VERSION_MINOR%_%VERSION_REVISION%" compression="9" lzmaCompression="true" keepModificationTimes="true" shortName="%APP_SHORT_NAME%" publisher="%PUBLISHER%" publisherWeb="%PUBLISHER_URL%" version="%VERSION_MAJOR%.%VERSION_MINOR%.%VERSION_REVISION%" allPathsRelative="true" backupOnSave="false" autoSave="true" macSignature="????" javaMinVersion="1.5" javaMaxVersion="" allowBetaVM="false">
<searchSequence> <searchSequence>
<registry /> <registry />
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
<includedFiles /> <includedFiles />
</launcher> </launcher>
</launchers> </launchers>
<installerGui installerType="1" runUninstallerOnUpdate="true" addOnAppId="" suggestPreviousLocations="true" allowUnattendedInstall="true" useCustomHeaderImage="false" customHeaderImage="" customSize="false" customWidth="500" customHeight="390"> <installerGui installerType="1" runUninstallerOnUpdate="true" addOnAppId="" suggestPreviousLocations="true" allowUnattendedInstall="true" useCustomHeaderImage="true" customHeaderImage="./images/wildfire_logo_small.png" customSize="false" customWidth="500" customHeight="390">
<customCode preAction="false" preActionClass="" postAction="false" postActionClass="" preUninstallAction="false" preUninstallActionClass="" postUninstallAction="false" postUninstallActionClass="" initHandler="false" initHandlerClass="" directoryValidator="false" directoryValidatorClass="" installationHandler="false" installationHandlerClass="" /> <customCode preAction="false" preActionClass="" postAction="false" postActionClass="" preUninstallAction="false" preUninstallActionClass="" postUninstallAction="false" postUninstallActionClass="" initHandler="false" initHandlerClass="" directoryValidator="false" directoryValidatorClass="" installationHandler="false" installationHandlerClass="" />
<standardScreens> <standardScreens>
<screen id="welcome" enabled="true" useCustomBanner="false" bannerImageFile="" background="255,255,255" /> <screen id="welcome" enabled="true" useCustomBanner="false" bannerImageFile="" background="255,255,255" />
...@@ -228,20 +228,6 @@ ...@@ -228,20 +228,6 @@
</exclude> </exclude>
<variables /> <variables />
</win32Archive> </win32Archive>
<macosFolder name="Mac OS X Folder" id="32" mediaFileName="" installDir="%APP_SHORT_NAME%" allLaunchers="false" customInstallBaseDir="" allowUserStartAfterFinish="false" launchExecutableId="" createUninstallIcon="true" overrideLicenseFile="false" licenseFile="" overridePreInformationFile="false" preInformationFile="" overridePostInformationFile="false" postInformationFile="" adminRequired="true" languageID="en" modeDesktopIcon="1" desktopLauncherId="" customScriptMode="1" customScriptFile="">
<selectedLaunchers>
<launcher id="22" />
</selectedLaunchers>
<messageSet language="English" />
<exclude>
<entry location="bin/extra/embedded-db-viewer.bat" launcher="false" />
<entry location="bin/wildfire.bat" launcher="false" />
<entry location="bin/wildfire.sh" launcher="false" />
</exclude>
<variables />
<excludedScreenIds />
<customScriptLines />
</macosFolder>
</mediaSets> </mediaSets>
<buildIds buildAll="false"> <buildIds buildAll="false">
<mediaSet refId="3" /> <mediaSet refId="3" />
......
...@@ -26,6 +26,7 @@ import java.util.jar.JarOutputStream; ...@@ -26,6 +26,7 @@ import java.util.jar.JarOutputStream;
* classloading facilities to ensure proper startup.<p> * classloading facilities to ensure proper startup.<p>
* *
* Tasks:<ul> * Tasks:<ul>
* <li>Unpack any pack files in the lib directory (Pack200 encoded JAR files).</li>
* <li>Add all jars in the lib directory to the classpath.</li> * <li>Add all jars in the lib directory to the classpath.</li>
* <li>Add the config directory to the classpath for loadResource()</li> * <li>Add the config directory to the classpath for loadResource()</li>
* <li>Start the server</li> * <li>Start the server</li>
...@@ -131,6 +132,7 @@ public class ServerStarter { ...@@ -131,6 +132,7 @@ public class ServerStarter {
JarOutputStream out = new JarOutputStream(new BufferedOutputStream( JarOutputStream out = new JarOutputStream(new BufferedOutputStream(
new FileOutputStream(new File(libDir, jarName)))); new FileOutputStream(new File(libDir, jarName))));
Pack200.Unpacker unpacker = Pack200.newUnpacker(); Pack200.Unpacker unpacker = Pack200.newUnpacker();
// Print something so the user knows something is happening.
System.out.print("."); System.out.print(".");
// Call the unpacker // Call the unpacker
unpacker.unpack(in, out); unpacker.unpack(in, out);
...@@ -141,11 +143,12 @@ public class ServerStarter { ...@@ -141,11 +143,12 @@ public class ServerStarter {
unpacked = true; unpacked = true;
} }
catch (Exception e) { catch (Exception e) {
e.printStackTrace(); Log.error(e);
} }
} }
// Print newline if unpacking happened.
if (unpacked) { if (unpacked) {
System.out.println("\n"); System.out.println();
} }
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment