Examples of ReobfExceptor


Examples of net.minecraftforge.gradle.extrastuff.ReobfExceptor

     */
    @TaskAction
    public void doTask() throws Exception
    {
        // do stuff.
        ReobfExceptor exc = null;
        File srg = File.createTempFile("reobf-default", ".srg", getTemporaryDir());
        File extraSrg = File.createTempFile("reobf-extra", ".srg", getTemporaryDir());;

        UserExtension ext = (UserExtension) getProject().getExtensions().getByName(Constants.EXT_NAME_MC);

        if (ext.isDecomp())
        {
            exc = getExceptor();
            exc.buildSrg(getSrg(), srg);
        }
        else
            Files.copy(getSrg(), srg);
       
        // generate extraSrg
View Full Code Here

Examples of net.minecraftforge.gradle.extrastuff.ReobfExceptor

            obf.generate(exc, srg, extraSrg);
    }
   
    private ReobfExceptor getExceptor() throws IOException
    {
        ReobfExceptor exc = new ReobfExceptor();
        exc.deobfJar = getDeobfFile();
        exc.toReobfJar = getRecompFile();
        exc.excConfig = getExceptorCfg();
        exc.fieldCSV = getFieldCsv();
        exc.methodCSV = getMethodCsv();

        exc.doFirstThings();
       
        return exc;
    }
View Full Code Here

Examples of net.minecraftforge.gradle.extrastuff.ReobfExceptor

        File srg = getSrg();

        if (getExc() != null)
        {
            ReobfExceptor exceptor = new ReobfExceptor();
            exceptor.toReobfJar = inJar;
            exceptor.deobfJar = getPreFFJar();
            exceptor.excConfig = getExc();
            exceptor.fieldCSV = getFieldsCsv();
            exceptor.methodCSV = getMethodsCsv();
           
            File outSrg =  new File(this.getTemporaryDir(), "reobf_cls.srg");
           
            exceptor.doFirstThings();
            exceptor.buildSrg(srg, outSrg);
           
            srg = outSrg;
        }
       
        // append SRG
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.