FileDocCategorySizeDatePackage
mergeTask.javaAPI DocAndroid 1.5 API3272Wed May 06 22:41:16 BST 2009com.vladium.emma.data

mergeTask

public final class mergeTask extends com.vladium.emma.ant.FileTask
author
Vlad Roubtsov, (C) 2003

Fields Summary
private File
m_outFile
Constructors Summary
public mergeTask(com.vladium.emma.ant.SuppressableTask parent)

        super (parent);
    
Methods Summary
public voidexecute()

        if (isEnabled ())
        {
            String [] files = getDataPath (true);
            if ((files == null) || (files.length == 0))
                throw (BuildException) newBuildException (getTaskName ()
                    + ": no valid input data files have been specified", location).fillInStackTrace ();
            
            final MergeProcessor processor = MergeProcessor.create ();
            
            processor.setDataPath (files); files = null;
            processor.setSessionOutFile (m_outFile != null ? m_outFile.getAbsolutePath () : null);
            processor.setPropertyOverrides (getTaskSettings ());
            
            processor.run ();
        }
    
public voidsetFile(java.io.File file)

        if (m_outFile != null)
            throw (BuildException) newBuildException (getTaskName ()
                + ": merge data file attribute already set", location).fillInStackTrace ();
            
        m_outFile = file;
    
public voidsetMergefile(java.io.File file)

        if (m_outFile != null)
            throw (BuildException) newBuildException (getTaskName ()
                + ": merge data file attribute already set", location).fillInStackTrace ();
            
        m_outFile = file;
    
public voidsetOutfile(java.io.File file)

        if (m_outFile != null)
            throw (BuildException) newBuildException (getTaskName ()
                + ": merge data file attribute already set", location).fillInStackTrace ();
            
        m_outFile = file;
    
public voidsetTofile(java.io.File file)

        if (m_outFile != null)
            throw (BuildException) newBuildException (getTaskName ()
                + ": merge data file attribute already set", location).fillInStackTrace ();
            
        m_outFile = file;