Package net.sf.rej.files

Examples of net.sf.rej.files.Folder


    public FileSet getFileSet(File f) throws IOException {
        if (f.getName().endsWith(".class")) {
            return new SingleFile(f);
        } else if (f.isDirectory()) {
            return new Folder(f);
        } else if (f.getName().endsWith(".zip") || f.getName().endsWith(".jar")) {
            return new Archive(f);
        } else {
            throw new RuntimeException("File of wrong type: " + f.getName());
        }
View Full Code Here


          JOptionPane.showMessageDialog(this, "Could not create temporary folder (" + temp.getAbsolutePath() + ") needed for batch operation.");
          return; // early return
        }

        if (batch) {
          final Folder tempFileSet = new Folder(temp);
          tempFileSet.getContentsFrom(originalFileSet);
          project.setFileSet(tempFileSet);
        }

        List<IteratorAgent> obfuscators = new ArrayList<IteratorAgent>();
        if (this.stripLineInfo.isSelected()) {
View Full Code Here

    }
   
    public static void save(IterationContext ic) {
      try {
        Folder folder = (Folder)ic.getProject().getFileSet();
        folder.partialSave(ic.getFilename(), ic.getCf().getData());
      } catch(Exception e) {
        SystemFacade.getInstance().handleException(e);
      }
    }
View Full Code Here

TOP

Related Classes of net.sf.rej.files.Folder

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.