More tweaks

This commit is contained in:
Christian 2013-06-14 09:32:51 -04:00
parent a923a2c142
commit 21240df8bc
6 changed files with 18 additions and 8 deletions

View file

@ -140,8 +140,8 @@
<mkdir dir="${basedir}/target" />
<jar destfile="${basedir}/target/${universal.jarname}.zip" duplicate="preserve">
<manifest>
<attribute name="Main-Class" value="net.minecraft.server.MinecraftServer"/>
<attribute name="Class-Path" value="minecraft_server.jar"/>
<attribute name="Main-Class" value="cpw.mods.fml.relauncher.ServerLaunchWrapper"/>
<attribute name="Class-Path" value="minecraft_server.jar:lib/guava-14.0-rc3.jar:lib/bcprov-jdk15on-148-src.zip:lib/asm-debug-all-4.1.jar:lib/scala-library.jar:lib/argo-3.2-src.jar"/>
</manifest>
<fileset dir="${client.mcp.obfoutput}" includes="**/*.class" excludes="*.class"/>
</jar>

View file

@ -14,4 +14,10 @@ public class ClassPatch {
this.existsAtTarget = existsAtTarget;
this.patch = patch;
}
@Override
public String toString()
{
return String.format("%s : %s => %s (%b) size %d", name, sourceClassName, targetClassName, existsAtTarget, patch.length);
}
}

View file

@ -105,9 +105,10 @@ public class ClassPatchManager {
input.readFully(patchBytes);
ClassPatch cp = new ClassPatch(name, sourceClassName, targetClassName, exists, patchBytes);
patches.put(name, cp);
patches.put(sourceClassName, cp);
}
FMLLog.fine("Read %d binary patches from %s", patches.size(), dirToScan.getAbsolutePath());
FMLLog.fine("Patch list : %s", patches);
}
}

View file

@ -28,6 +28,8 @@ import java.util.logging.LogManager;
import java.util.logging.LogRecord;
import java.util.logging.Logger;
import com.google.common.base.Throwables;
public class FMLRelaunchLog
{
@ -180,8 +182,9 @@ public class FMLRelaunchLog
}
};
}
catch (Exception e)
catch (Throwable t)
{
throw Throwables.propagate(t);
}
resetLoggingHandlers();

View file

@ -24,7 +24,7 @@ public class FMLRelauncher
{
private static FMLRelauncher INSTANCE;
public static String logFileNamePattern;
private static String side;
static String side;
private RelaunchClassLoader classLoader;
private Object newApplet;
private Class<? super Object> appletClass;

View file

@ -6,17 +6,17 @@ import java.util.logging.Level;
import com.google.common.base.Throwables;
public class LaunchWrapper {
public class ServerLaunchWrapper {
/**
* @param args
*/
public static void main(String[] args)
{
new LaunchWrapper().run(args);
new ServerLaunchWrapper().run(args);
}
private LaunchWrapper()
private ServerLaunchWrapper()
{
}