Package net.md_5.specialsource

Examples of net.md_5.specialsource.JarMapping.loadMappings()


    {
        getLogger().debug("INPUT: " + inJar);
        getLogger().debug("OUTPUT: " + outJar);
        // load mapping
        JarMapping mapping = new JarMapping();
        mapping.loadMappings(srg);

        final Map<String, String> renames = Maps.newHashMap();
        for (File f : new File[]{ getFieldCsv(), getMethodCsv() })
        {
            if (f == null) continue;
View Full Code Here


   
    private void applySpecialSource(File input, File output, File srg, File extraSrg) throws IOException
    {
        // load mapping
        JarMapping mapping = new JarMapping();
        mapping.loadMappings(srg);
        mapping.loadMappings(extraSrg);

        // make remapper
        JarRemapper remapper = new JarRemapper(null, mapping);
View Full Code Here

    private void applySpecialSource(File input, File output, File srg, File extraSrg) throws IOException
    {
        // load mapping
        JarMapping mapping = new JarMapping();
        mapping.loadMappings(srg);
        mapping.loadMappings(extraSrg);

        // make remapper
        JarRemapper remapper = new JarRemapper(null, mapping);

        // load jar
View Full Code Here

    private void obfuscate(File inJar, FileCollection classpath, File srg) throws FileNotFoundException, IOException
    {
        // load mapping
        JarMapping mapping = new JarMapping();
        mapping.loadMappings(Files.newReader(srg, Charset.defaultCharset()), null, null, reverse);

        // make remapper
        JarRemapper remapper = new JarRemapper(null, mapping);

        // load jar
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.