Package milk.jpatch.fileLevel

Examples of milk.jpatch.fileLevel.FilesPatch


     */
    public static void generateAndApplyJarp(String origZip, String modZip,
            String inZip, String outZip) throws IOException{
        File rootOrig = Util.extractZip(new File(origZip));
        File rootMod = Util.extractZip(new File(modZip));
        FilesPatch fp = FilesPatch.generate(rootOrig, rootMod);
        File rootIn = Util.extractZip(new File(inZip));
        File rootOut = Util.getTempDir();
        fp.patchAll(rootIn, rootOut);
        Util.packZip(new File(outZip), rootOut);
        Util.remDir(rootOrig);
        Util.remDir(rootMod);
        Util.remDir(rootIn);
        Util.remDir(rootOut);
View Full Code Here


        File[] modRoots = new File[modJarps.length];
        for(int i = 0; i < modJarps.length; i++)
            modRoots[i] = Util.extractZip(new File(modJarps[i]));
        FilesPatch[] fps = new FilesPatch[modRoots.length];
        for(int i = 0; i < modRoots.length; i++)
            fps[i] = new FilesPatch(modRoots[i]);
       
        File rootIn = Util.extractZip(new File(inZip));
        File rootOut = Util.getTempDir();
       
        FilesPatch.patchAll(rootIn, rootOut, fps);
View Full Code Here

     */
    public static void createJarp(String origJar, String modJar,
            String outJar) throws IOException{
        File rootOrig = Util.extractZip(new File(origJar));
        File rootMod = Util.extractZip(new File(modJar));
        FilesPatch fp = FilesPatch.generate(rootOrig, rootMod);
        fp.serializeToZip(new File(outJar));
        Util.remDir(rootOrig);
        Util.remDir(rootMod);
    }
View Full Code Here

     */
    public static void createJarp(String origJar, String modJar, String out,
            boolean outputAsDir) throws IOException{
        File rootOrig = Util.extractZip(new File(origJar));
        File rootMod = Util.extractZip(new File(modJar));
        FilesPatch fp = FilesPatch.generate(rootOrig, rootMod);
        if(outputAsDir)
            fp.serializeToDir(new File(out));
        else
            fp.serializeToZip(new File(out));
        Util.remDir(rootOrig);
        Util.remDir(rootMod);
    }
View Full Code Here

TOP

Related Classes of milk.jpatch.fileLevel.FilesPatch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.