public void directory(final String dir) throws Exception {
        File srcDir = dirHelper.rel2abs(thisDir.getAbsolutePath(), dir);

        List<FileInformation> files = new DirectoryFilter(srcDir, dirHelper).getSelectedFiles();

        RunConfiguration runConfiguration = new RunConfiguration();
        runConfiguration.setEncoding(runner.getEncoding());
        runConfiguration.setBaseDir(srcDir);
        runConfiguration.setDestination(outDir.getPath());
        runConfiguration.setSource(files.toArray(new FileInformation[files.size()]));
        System.out.println("Run: " + files + " in " + srcDir + " to " + outDir);

        final FitRunner fitRunner = new FitRunner(dirHelper, runConfiguration);

        FitParseResult results = new FitParseResult();
        fitRunner.run(results);
        results.insertAndReplace(row);
        row.getTable().getCounts().tally(results.getCounts());
    }
public void directory(final String dir) throws Exception {
        File srcDir = dirHelper.rel2abs(thisDir.getAbsolutePath(), dir);

        List<FileInformation> files = new DirectoryFilter(srcDir, dirHelper).getSelectedFiles();

        RunConfiguration runConfiguration = new RunConfiguration();
        runConfiguration.setEncoding(runner.getEncoding());
        runConfiguration.setBaseDir(srcDir);
        runConfiguration.setDestination(outDir.getPath());
        runConfiguration.setSource(files.toArray(new FileInformation[files.size()]));
        System.out.println("Run: " + files + " in " + srcDir + " to " + outDir);

        final FitRunner fitRunner = new FitRunner(dirHelper, runConfiguration);

        FitParseResult results = new FitParseResult();
        fitRunner.run(results);
        results.insertAndReplace(row);
        row.getTable().getCounts().tally(results.getCounts());
    }
public void directory ( final String dir ) throws Exception { File srcDir = dirHelper . rel2abs ( thisDir . getAbsolutePath ( ) , dir ) ; List < FileInformation > files = new DirectoryFilter ( srcDir , dirHelper ) . getSelectedFiles ( ) ; RunConfiguration runConfiguration = new RunConfiguration ( ) ; runConfiguration . setEncoding ( runner . getEncoding ( ) ) ; runConfiguration . setBaseDir ( srcDir ) ; runConfiguration . setDestination ( outDir . getPath ( ) ) ; runConfiguration . setSource ( files . toArray ( new FileInformation [ files . size ( ) ] ) ) ; System . out . println ( "Run: " + files + " in " + srcDir + " to " + outDir ) ; final FitRunner fitRunner = new FitRunner ( dirHelper , runConfiguration ) ; FitParseResult results = new FitParseResult ( ) ; fitRunner . run ( results ) ; results . insertAndReplace ( row ) ; row . getTable ( ) . getCounts ( ) . tally ( results . getCounts ( ) ) ; }
TODO: not tested?
TODO : not tested?