GenRunsData.java :  » IDE-Netbeans » performance » org » netbeans » performance » impl » analysis » Java Open Source

Java Open Source » IDE Netbeans » performance 
performance » org » netbeans » performance » impl » analysis » GenRunsData.java
/*
 * GenRunsData.java
 *
 * Created on October 9, 2002, 11:24 PM
 */

package org.netbeans.performance.impl.analysis;
import java.util.*;
import org.netbeans.performance.spi.*;
import org.netbeans.performance.impl.logparsing.*;
import java.io.*;
import org.apache.tools.ant.*;
import org.apache.tools.ant.types.*;
/** Ant task to gather data from the logfiles produced by a run,
 * as pointed to in the log file generated from the initial log file
 * the ant task generates (which just contains start and end times 
 * and pointers to log files generated by the IDE's activity).
 *
 * @author  Tim Boudreau
 */
public class GenRunsData extends Analyzer {

    public String analyze() throws BuildException {
        NbRunLog log = new NbRunLog (datafile);
        try {
            log.writeToFile (outfile);
        } catch (IOException ioe) {
            ioe.printStackTrace();
            throw new BuildException ("Exception while creating run set data.", ioe);
        }
        return outfile; 
    }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.