More tweaks
This commit is contained in:
parent
a923a2c142
commit
21240df8bc
6 changed files with 18 additions and 8 deletions
|
@ -140,8 +140,8 @@
|
||||||
<mkdir dir="${basedir}/target" />
|
<mkdir dir="${basedir}/target" />
|
||||||
<jar destfile="${basedir}/target/${universal.jarname}.zip" duplicate="preserve">
|
<jar destfile="${basedir}/target/${universal.jarname}.zip" duplicate="preserve">
|
||||||
<manifest>
|
<manifest>
|
||||||
<attribute name="Main-Class" value="net.minecraft.server.MinecraftServer"/>
|
<attribute name="Main-Class" value="cpw.mods.fml.relauncher.ServerLaunchWrapper"/>
|
||||||
<attribute name="Class-Path" value="minecraft_server.jar"/>
|
<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>
|
</manifest>
|
||||||
<fileset dir="${client.mcp.obfoutput}" includes="**/*.class" excludes="*.class"/>
|
<fileset dir="${client.mcp.obfoutput}" includes="**/*.class" excludes="*.class"/>
|
||||||
</jar>
|
</jar>
|
||||||
|
|
|
@ -14,4 +14,10 @@ public class ClassPatch {
|
||||||
this.existsAtTarget = existsAtTarget;
|
this.existsAtTarget = existsAtTarget;
|
||||||
this.patch = patch;
|
this.patch = patch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString()
|
||||||
|
{
|
||||||
|
return String.format("%s : %s => %s (%b) size %d", name, sourceClassName, targetClassName, existsAtTarget, patch.length);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,9 +105,10 @@ public class ClassPatchManager {
|
||||||
input.readFully(patchBytes);
|
input.readFully(patchBytes);
|
||||||
|
|
||||||
ClassPatch cp = new ClassPatch(name, sourceClassName, targetClassName, exists, 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("Read %d binary patches from %s", patches.size(), dirToScan.getAbsolutePath());
|
||||||
|
FMLLog.fine("Patch list : %s", patches);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,8 @@ import java.util.logging.LogManager;
|
||||||
import java.util.logging.LogRecord;
|
import java.util.logging.LogRecord;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
|
import com.google.common.base.Throwables;
|
||||||
|
|
||||||
public class FMLRelaunchLog
|
public class FMLRelaunchLog
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -180,8 +182,9 @@ public class FMLRelaunchLog
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Throwable t)
|
||||||
{
|
{
|
||||||
|
throw Throwables.propagate(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
resetLoggingHandlers();
|
resetLoggingHandlers();
|
||||||
|
|
|
@ -24,7 +24,7 @@ public class FMLRelauncher
|
||||||
{
|
{
|
||||||
private static FMLRelauncher INSTANCE;
|
private static FMLRelauncher INSTANCE;
|
||||||
public static String logFileNamePattern;
|
public static String logFileNamePattern;
|
||||||
private static String side;
|
static String side;
|
||||||
private RelaunchClassLoader classLoader;
|
private RelaunchClassLoader classLoader;
|
||||||
private Object newApplet;
|
private Object newApplet;
|
||||||
private Class<? super Object> appletClass;
|
private Class<? super Object> appletClass;
|
||||||
|
|
|
@ -6,17 +6,17 @@ import java.util.logging.Level;
|
||||||
|
|
||||||
import com.google.common.base.Throwables;
|
import com.google.common.base.Throwables;
|
||||||
|
|
||||||
public class LaunchWrapper {
|
public class ServerLaunchWrapper {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param args
|
* @param args
|
||||||
*/
|
*/
|
||||||
public static void main(String[] args)
|
public static void main(String[] args)
|
||||||
{
|
{
|
||||||
new LaunchWrapper().run(args);
|
new ServerLaunchWrapper().run(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
private LaunchWrapper()
|
private ServerLaunchWrapper()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue